Files
JenkinsGoTest/jenkinsfile
Bram Prieshof 9c47960d0a
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit
Fixed error and updated jenkinsfile
2021-01-05 01:15:36 +01:00

14 lines
354 B
Plaintext

pipeline {
agent { label 'golang' }
stages {
stage('Build') {
cleanWs()
steps {
sh '''export PATH=$PATH:/usr/local/go/bin
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''
archiveArtifacts artifacts: 'HelloWorld-amd64*', followSymlinks: false
}
}
}
}