Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| ce00f3379c |
@@ -1,8 +1,5 @@
|
||||
pipeline {
|
||||
agent { label 'linux' }
|
||||
tools {
|
||||
go 'Latest'
|
||||
}
|
||||
agent { label 'golang' }
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||
}
|
||||
@@ -10,7 +7,8 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
// Build SH script
|
||||
sh '''go build -o "HelloWorld-amd64-$BUILD_DISPLAY_NAME"
|
||||
sh '''export PATH=$PATH:/usr/local/go/bin
|
||||
go build -o "HelloWorld-amd64-$BUILD_DISPLAY_NAME"
|
||||
cp HelloWorld-amd64-$BUILD_DISPLAY_NAME HelloWorld-amd64-Latest
|
||||
'''
|
||||
// Archive Build file
|
||||
|
||||
Reference in New Issue
Block a user