diff --git a/.ci/Jenkinsfile b/.ci/Jenkinsfile index 87dd8060cf6..a24a94e6193 100644 --- a/.ci/Jenkinsfile +++ b/.ci/Jenkinsfile @@ -41,6 +41,10 @@ pipeline { deleteDir() gitCheckout(basedir: "${BASE_DIR}") stashV2(name: 'source', bucket: "${JOB_GCS_BUCKET}", credentialsId: "${JOB_GCS_CREDENTIALS}") + dir("${BASE_DIR}"){ + // Skip all the stages except check Go sources for changeset's with ^docs/*.md or ^.github only + setEnvVar('ONLY_DOCS', isGitRegionMatch(patterns: [ '(^docs/.*\\.md|^\\.github/.*)' ], shouldMatchAll: true).toString()) + } } } stage('Check Go sources') { @@ -54,6 +58,9 @@ pipeline { } } stage('Check integrations') { + when { + expression { return env.ONLY_DOCS == "false" } + } steps { script { dir("${BASE_DIR}/packages") { @@ -115,7 +122,9 @@ pipeline { } post { always { - publishCoverageReports() + whenTrue(env.ONLY_DOCS == "false") { + publishCoverageReports() + } } cleanup { notifyBuildResult(prComment: true)