Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit
14 lines
350 B
Plaintext
14 lines
350 B
Plaintext
pipeline {
|
|
agent { label 'golang' }
|
|
|
|
stages {
|
|
cleanWs()
|
|
stage('Build') {
|
|
steps {
|
|
sh '''export PATH=$PATH:/usr/local/go/bin
|
|
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''
|
|
archiveArtifacts artifacts: 'HelloWorld-amd64*', followSymlinks: false
|
|
}
|
|
}
|
|
}
|
|
} |