浏览代码

gobin everywhere

jamesread 5 年之前
父节点
当前提交
823a32eebe
共有 1 个文件被更改,包括 7 次插入 和 3 次删除
  1. 7 3
      Jenkinsfile

+ 7 - 3
Jenkinsfile

@@ -23,13 +23,17 @@ pipeline {
             parallel { 
             parallel { 
                 stage('Codestyle') {
                 stage('Codestyle') {
                     steps {
                     steps {
-                        sh 'make daemon-codestyle'
-                        sh 'make webui-codestyle'
+						withEnv(["PATH+GO=/root/go/bin/"]) {
+                        	sh 'make daemon-codestyle'
+                        	sh 'make webui-codestyle'
+						}
                     }
                     }
                 }
                 }
                 stage('UnitTests') {
                 stage('UnitTests') {
                     steps {
                     steps {
-                        sh 'make daemon-unittests'
+						withEnv(["PATH+GO=/root/go/bin/"]) {
+	                        sh 'make daemon-unittests'
+						}
                     }
                     }
                 }
                 }
             }
             }