Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d8210a06e1 | |||
| 67c33075c5 | |||
| ebf15e1389 | |||
| 82bab86e4f | |||
| 981c100866 | |||
| 9bd1c16489 |
@@ -1,5 +1,8 @@
|
||||
pipeline {
|
||||
agent { label 'golang' }
|
||||
agent { label 'linux' }
|
||||
tools {
|
||||
go 'Latest'
|
||||
}
|
||||
options {
|
||||
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
||||
}
|
||||
@@ -7,8 +10,7 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
// Build SH script
|
||||
sh '''export PATH=$PATH:/usr/local/go/bin
|
||||
go build -o "HelloWorld-amd64-$BUILD_DISPLAY_NAME"
|
||||
sh '''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