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