summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorJan Dittberner <jandd@cacert.org>2021-03-07 20:22:06 +0100
committerJan Dittberner <jandd@cacert.org>2021-03-07 20:22:06 +0100
commitfdc5c5cc61a9c74e96521cd6b5e16bb9735a6536 (patch)
tree3004efd80c3e17a90190995bb02d49c332280c3c /Jenkinsfile
parent23d586e99d1372f7ab439da793d7b6e4546b5774 (diff)
downloadcacert-boardvoting-fdc5c5cc61a9c74e96521cd6b5e16bb9735a6536.tar.gz
cacert-boardvoting-fdc5c5cc61a9c74e96521cd6b5e16bb9735a6536.tar.xz
cacert-boardvoting-fdc5c5cc61a9c74e96521cd6b5e16bb9735a6536.zip
Use tools section for Jenkins
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile8
1 files changed, 4 insertions, 4 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index bd3c772..02e2392 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -17,12 +17,12 @@ limitations under the License.
pipeline {
agent any
- def root = tool type: 'go', name: 'Go 1.16'
+ tools {
+ go "Go 1.16"
+ }
environment {
- GOROOT= "${root}"
- GOPATH = "${pwd(tmp: true)}/gocode"
- PATH = "${root}/bin:${PATH}"
+ GO11MODULE = "on"
}
stages {