updated jenkinsfile again
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user