Files
JenkinsGoTest/jenkinsfile
Bram Prieshof 2812ae5519
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
tried to fix jenkinsfile again
2021-01-05 01:28:51 +01:00

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()
}
}
}
}