Skip to content

Commit

Permalink
fix: use the right Go version in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed May 13, 2021
1 parent d6e8cd3 commit 40e6fb3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ pipeline {
deleteDir()
gitCheckout(basedir: "${BASE_DIR}")
stash allowEmpty: true, name: 'source', useDefaultExcludes: false
setEnvVar("GO_VERSION", readFile("${env.WORKSPACE}/${env.BASE_DIR}/.go-version").trim())
}
}
stage('Check') {
options { skipDefaultCheckout() }
steps {
cleanup()
withGoEnv(){
withGoEnv(version: "${GO_VERSION}"){
dir("${BASE_DIR}"){
sh(label: 'check',script: 'make check')
}
Expand All @@ -51,7 +52,7 @@ pipeline {
options { skipDefaultCheckout() }
steps {
cleanup()
withGoEnv(){
withGoEnv(version: "${GO_VERSION}"){
dir("${BASE_DIR}"){
sh(label: 'local',script: 'make local')
}
Expand All @@ -62,7 +63,7 @@ pipeline {
options { skipDefaultCheckout() }
steps {
cleanup()
withGoEnv(){
withGoEnv(version: "${GO_VERSION}"){
dir("${BASE_DIR}"){
retryWithSleep(retries: 2, seconds: 5, backoff: true){ sh(label: "Install Docker", script: '.ci/scripts/install-docker-compose.sh') }
sh(label: 'test', script: 'make test')
Expand Down

0 comments on commit 40e6fb3

Please sign in to comment.