added JenkinsFile
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good

This commit is contained in:
2021-01-05 01:04:16 +01:00
parent 3c74d30efb
commit 06e25aa871

13
jenkinsfile Normal file
View File

@@ -0,0 +1,13 @@
pipeline {
agent { label 'golang' }
stages {
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
}
}
}
}