From 67c33075c5ea27373de654f7f032960dcb762c99 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Tue, 5 Jan 2021 22:13:21 +0100 Subject: [PATCH] added go to tools --- jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index 9acbe09..9b8c585 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -1,5 +1,6 @@ pipeline { - agent { label 'golang' } + agent { label 'linux' } + tool name: 'Latest', type: 'go' options { buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) } @@ -7,8 +8,7 @@ pipeline { stage('Build') { steps { // Build SH script - sh '''export PATH=$PATH:/usr/local/go/bin - go build -o "HelloWorld-amd64-$BUILD_DISPLAY_NAME" + sh '''go build -o "HelloWorld-amd64-$BUILD_DISPLAY_NAME" cp HelloWorld-amd64-$BUILD_DISPLAY_NAME HelloWorld-amd64-Latest ''' // Archive Build file