We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac6538b commit 718cb6fCopy full SHA for 718cb6f
.ci/Jenkinsfile
@@ -30,14 +30,18 @@ pipeline {
30
deleteDir()
31
gitCheckout(basedir: "${BASE_DIR}", githubNotifyFirstTimeContributor: true)
32
stash allowEmpty: true, name: 'source', useDefaultExcludes: false
33
+ dir("${BASE_DIR}"){
34
+ setEnvVar('GO_VERSION', readFile(".go-version").trim())
35
+ }
36
}
37
38
stage('Lint'){
39
steps {
40
withGithubNotify(context: "Lint") {
41
dir("${BASE_DIR}"){
- withMageEnv(){
- sh(label: 'Mage check', script: 'mage -v check')
42
+ withMageEnv(version: "${env.GO_VERSION}"){
43
+ cmd(label: 'Mage notice', script: 'mage notice')
44
+ cmd(label: 'Mage check', script: 'mage -v check')
45
46
47
0 commit comments