tried to fix jenkinsfile again
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good

This commit is contained in:
2021-01-05 01:28:51 +01:00
parent 3f93ca3957
commit 2812ae5519

View File

@@ -4,10 +4,13 @@ pipeline {
stages { stages {
stage('Build') { stage('Build') {
steps { steps {
cleanWs() // Build SH script
sh '''export PATH=$PATH:/usr/local/go/bin sh '''export PATH=$PATH:/usr/local/go/bin
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''
// Archive Build file
archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true
// Cleaning WorkSpace
cleanWs()
} }
} }
} }