Skip to content

Commit

Permalink
ci: run packaging if changes in the .go-version file (#32268)
Browse files Browse the repository at this point in the history
We have discovered recently that after upgrading to 1.17.11 some errors started to happen related to the DEV and CGO
  • Loading branch information
v1v authored and chrisberkhout committed Jun 1, 2023
1 parent d9bab4f commit f8dde5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pipeline {
// Skip all the stages except docs for PR's with asciidoc, md or deploy k8s templates changes only
setEnvVar('ONLY_DOCS', isGitRegionMatch(patterns: [ '(.*\\.(asciidoc|md)|deploy/kubernetes/.*-kubernetes\\.yaml)' ], shouldMatchAll: true).toString())
setEnvVar('GO_MOD_CHANGES', isGitRegionMatch(patterns: [ '^go.mod' ], shouldMatchAll: false).toString())
setEnvVar('PACKAGING_CHANGES', isGitRegionMatch(patterns: [ '^dev-tools/packaging/.*' ], shouldMatchAll: false).toString())
setEnvVar('PACKAGING_CHANGES', isGitRegionMatch(patterns: [ '(^dev-tools/packaging/.*|.go-version)' ], shouldMatchAll: false).toString())
setEnvVar('GO_VERSION', readFile(".go-version").trim())
withEnv(["HOME=${env.WORKSPACE}"]) {
retryWithSleep(retries: 2, seconds: 5){ sh(label: "Install Go ${env.GO_VERSION}", script: '.ci/scripts/install-go.sh') }
Expand Down

0 comments on commit f8dde5f

Please sign in to comment.