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
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -9,5 +9,5 @@ func main() {
|
|||||||
fmt.Println("This nice missing end, Fixed it")
|
fmt.Println("This nice missing end, Fixed it")
|
||||||
fmt.Println("Added on new branch")
|
fmt.Println("Added on new branch")
|
||||||
fmt.Println("Added on new branch main")
|
fmt.Println("Added on new branch main")
|
||||||
fmt.Println("Pull requestTest")
|
fmt.Println("Update counter 2")
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user