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