tried to fix jenkinsfile again
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user