Skip to content

Commit

Permalink
Properly set Go version in CI (#58)
Browse files Browse the repository at this point in the history
Also make sure the notice file is up to date.
  • Loading branch information
cmacknz authored Jun 7, 2022
1 parent ac6538b commit 718cb6f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .ci/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,18 @@ pipeline {
deleteDir()
gitCheckout(basedir: "${BASE_DIR}", githubNotifyFirstTimeContributor: true)
stash allowEmpty: true, name: 'source', useDefaultExcludes: false
dir("${BASE_DIR}"){
setEnvVar('GO_VERSION', readFile(".go-version").trim())
}
}
}
stage('Lint'){
steps {
withGithubNotify(context: "Lint") {
dir("${BASE_DIR}"){
withMageEnv(){
sh(label: 'Mage check', script: 'mage -v check')
withMageEnv(version: "${env.GO_VERSION}"){
cmd(label: 'Mage notice', script: 'mage notice')
cmd(label: 'Mage check', script: 'mage -v check')
}
}
}
Expand Down

0 comments on commit 718cb6f

Please sign in to comment.