Sfoglia il codice sorgente

test: jenkins file

Douglas A 4 anni fa
parent
commit
88a46a72e1
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      jenkins/Jenkinsfile

+ 3 - 1
jenkins/Jenkinsfile

@@ -16,7 +16,9 @@ pipeline {
                 }
                 stage('Test') {
                         steps {
-                                sh 'go test -v ./...'
+                                withEnv(["GOROOT=${root}, "PATH+GO=${root}/bin:${HOME}/go/bin"]) {
+                                        sh "go test -v ./..."
+                                }
                         }
                 }
         }