Skip to content

Commit

Permalink
Use withMageEnv to get the Beats version
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Apr 18, 2021
1 parent 2e31c9a commit 2491c27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ pipeline {
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') }
}
}
withMageEnv(version: "${env.GO_VERSION}"){
dir("${BASE_DIR}"){
setEnvVar('VERSION', sh(label: 'Get beat version', script: 'make get-version', returnStdout: true)?.trim())
}
}
Expand Down

0 comments on commit 2491c27

Please sign in to comment.