Skip to content

Commit

Permalink
ci: add option to not run CI
Browse files Browse the repository at this point in the history
update rules

Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
  • Loading branch information
Vitor Bandeira committed Jul 30, 2024
1 parent fc71aaa commit 2b08774
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions jenkins/public_tests_all.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@Library('utils@orfs-v2.1.0') _
@Library('utils@orfs-dev') _

node {

Expand All @@ -11,8 +11,8 @@ node {
branches: [[name: scm.branches[0].name]],
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'CloneOption', noTags: false],
[$class: 'SubmoduleOption', recursiveSubmodules: true]
[$class: 'CloneOption', noTags: false],
[$class: 'SubmoduleOption', recursiveSubmodules: true]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
Expand All @@ -21,11 +21,10 @@ node {
else {
checkout scm;
}
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;
}
}

if (skipCI()) {
return;
}

def DOCKER_IMAGE;
Expand Down

0 comments on commit 2b08774

Please sign in to comment.