Explorar o código

feat(jenkins): upd

zengzhixiang %!s(int64=2) %!d(string=hai) anos
pai
achega
6d3a79a59c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Jenkinsfile

+ 2 - 2
Jenkinsfile

@@ -38,9 +38,9 @@ pipeline {
       steps {
         nodejs('v16'){
           sh '''
-            if [ "$branch" == "feature/jenkinsfile" ]; then
+            if [ "${BRANCH_NAME}" == "feature/jenkinsfile" ]; then
               npm run build:test
-            elif [ "$branch" == "feature/jenkinsfile2" ]; then
+            elif [ "${BRANCH_NAME}" == "feature/jenkinsfile2" ]; then
               npm run build:uat
             fi
           '''