zengzhixiang пре 2 година
родитељ
комит
6d3a79a59c
1 измењених фајлова са 2 додато и 2 уклоњено
  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
           '''