From 2812ae5519edf2338ea3dd674d9f417a4f422dc4 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Tue, 5 Jan 2021 01:28:51 +0100 Subject: [PATCH] tried to fix jenkinsfile again --- jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jenkinsfile b/jenkinsfile index f64d5dd..5b43f35 100644 --- a/jenkinsfile +++ b/jenkinsfile @@ -4,10 +4,13 @@ pipeline { stages { stage('Build') { steps { - cleanWs() + // Build SH script sh '''export PATH=$PATH:/usr/local/go/bin go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' + // Archive Build file archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true + // Cleaning WorkSpace + cleanWs() } } }