浏览代码

test logs

root 5 年之前
父节点
当前提交
b24275505c
共有 1 个文件被更改,包括 7 次插入3 次删除
  1. 7 3
      env/test.jenkins

+ 7 - 3
env/test.jenkins

@@ -10,9 +10,13 @@ pipeline {
     stages {
     stages {
       stage("build project") {
       stage("build project") {
         steps {
         steps {
-          sh 'go build main.go webPage.go'
-          echo "${currentBuild.currentResult}"
-	       }
+          try{
+            sh 'go build main.go webPage.go'
+	         }
+          catch (e){
+            
+          }
+        }
       } 
       } 
     }
     }
 }
 }