Skip to content

Commit

Permalink
ci: try speed up checkout
Browse files Browse the repository at this point in the history
Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Jul 5, 2024
1 parent df44ec8 commit 06ee3ca
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion jenkins/public_tests_all.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@ node {
properties([copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME)]);

stage('Checkout') {
checkout scm;
checkout([
$class: 'GitSCM',
branches: [[name: scm.branches[0].name]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', noTags: false],
[$class: 'SubmoduleOption', recursiveSubmodules: true]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
]);
def description = sh(script: "git log -1 --pretty=%B", returnStdout: true).trim();
if (description.contains('ci') && description.contains('skip')) {
currentBuild.result = 'SKIPPED'; // 'SUCCESS', 'SKIPPED'
return;
}
}

def DOCKER_IMAGE;
Expand Down

0 comments on commit 06ee3ca

Please sign in to comment.