All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
17 lines
454 B
Plaintext
17 lines
454 B
Plaintext
pipeline {
|
|
agent { label 'golang' }
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
// 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()
|
|
}
|
|
}
|
|
}
|
|
} |