Fixed jenkins file
Some checks failed
GiteaTest/JenkinsGoTest/pipeline/head There was a failure building this commit

This commit is contained in:
2021-01-05 01:17:03 +01:00
parent 9c47960d0a
commit 6dd5ffc4b5

View File

@@ -2,8 +2,8 @@ pipeline {
agent { label 'golang' } agent { label 'golang' }
stages { stages {
cleanWs()
stage('Build') { stage('Build') {
cleanWs()
steps { steps {
sh '''export PATH=$PATH:/usr/local/go/bin sh '''export PATH=$PATH:/usr/local/go/bin
go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"''' go build -o "HelloWorld-amd64$BUILD_DISPLAY_NAME"'''