From 2b0877416eca98ae02a440cbd1d9b3ce13b8aff1 Mon Sep 17 00:00:00 2001 From: Vitor Bandeira <vvbandeira@precisioninno.com> Date: Tue, 9 Jul 2024 10:51:49 -0300 Subject: [PATCH] ci: add option to not run CI update rules Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com> --- jenkins/public_tests_all.Jenkinsfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/jenkins/public_tests_all.Jenkinsfile b/jenkins/public_tests_all.Jenkinsfile index 3a99aec191..d1e70c5d9e 100644 --- a/jenkins/public_tests_all.Jenkinsfile +++ b/jenkins/public_tests_all.Jenkinsfile @@ -1,4 +1,4 @@ -@Library('utils@orfs-v2.1.0') _ +@Library('utils@orfs-dev') _ node { @@ -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 @@ -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;