updated jenkinsfile again
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit

This commit is contained in:
2021-01-05 01:25:54 +01:00
parent 6dd5ffc4b5
commit 3f93ca3957

View File

@@ -2,12 +2,12 @@ pipeline {
agent { label 'golang' } agent { label 'golang' }
stages { stages {
cleanWs()
stage('Build') { stage('Build') {
steps { steps {
cleanWs()
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"'''
archiveArtifacts artifacts: 'HelloWorld-amd64*', followSymlinks: false archiveArtifacts artifacts: 'HelloWorld-amd64*', onlyIfSuccessful: true
} }
} }
} }