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 } } }