6 Commits

Author SHA1 Message Date
d8210a06e1 fixed jenkinsfile
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
2021-01-05 22:17:59 +01:00
67c33075c5 added go to tools
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit
2021-01-05 22:13:21 +01:00
ebf15e1389 Update 'main.go'
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
2021-01-05 04:10:41 +00:00
82bab86e4f Update 'main.go' 2021-01-05 04:07:30 +00:00
981c100866 Update 'main.go'
All checks were successful
GiteaTest/JenkinsGoTest/pipeline/head This commit looks good
2021-01-05 04:04:18 +00:00
9bd1c16489 Update 'main.go' 2021-01-05 04:03:11 +00:00
2 changed files with 7 additions and 5 deletions

View File

@@ -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

View File

@@ -8,6 +8,6 @@ func main() {
fmt.Println("See if this stiks") fmt.Println("See if this stiks")
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 Rel") fmt.Println("Added on new branch main")
fmt.Println("Update counter rel1") fmt.Println("Update counter 2")
} }