We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb8d00b commit 7792b01Copy full SHA for 7792b01
jenkins/public_tests_all.Jenkinsfile
@@ -5,7 +5,22 @@ node {
5
properties([copyArtifactPermission('${JOB_NAME},'+env.BRANCH_NAME)]);
6
7
stage('Checkout') {
8
- checkout scm;
+ checkout([
9
+ $class: 'GitSCM',
10
+ branches: [[name: scm.branches[0].name]],
11
+ doGenerateSubmoduleConfigurations: false,
12
+ extensions: [
13
+ [$class: 'CloneOption', noTags: false],
14
+ [$class: 'SubmoduleOption', recursiveSubmodules: true]
15
+ ],
16
+ submoduleCfg: [],
17
+ userRemoteConfigs: scm.userRemoteConfigs
18
+ ]);
19
+ def description = sh(script: "git log -1 --pretty=%B", returnStdout: true).trim();
20
+ if (description.contains('ci') && description.contains('skip')) {
21
+ currentBuild.result = 'SKIPPED'; // 'SUCCESS', 'SKIPPED'
22
+ return;
23
+ }
24
}
25
26
def DOCKER_IMAGE;
0 commit comments