@@ -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
'''