added JenkinsFile
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
This commit is contained in:
13
jenkinsfile
Normal file
13
jenkinsfile
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user