From 3f93ca3957a71d565233b73615a522e8c8842786 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Tue, 5 Jan 2021 01:25:54 +0100 Subject: [PATCH] updated jenkinsfile again --- jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jenkinsfile b/jenkinsfile index d0f3724..f64d5dd 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -2,12 +2,12 @@ pipeline { agent { label 'golang' } stages { - cleanWs() stage('Build') { steps { + cleanWs() sh '''export PATH=$PATH:/usr/local/go/bin go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' - archiveArtifacts artifacts: 'HelloWorld-amd64*', followSymlinks: false + archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true } } }