Commit c7b78ae6 authored by Muhammad Suleman's avatar Muhammad Suleman

Update Jenkinsfile

parent 84e653b6
...@@ -17,13 +17,13 @@ pipeline { ...@@ -17,13 +17,13 @@ pipeline {
echo branchName; echo branchName;
if (branchName == 'dev') { if (branchName == 'dev') {
imageName = 'sulemantalpur6/frontend:dev-${BUILD_NUMBER}' imageName = 'sulemantalpur6/frontend:dev${BUILD_NUMBER}'
} else if (branchName == 'master') { } else if (branchName == 'master') {
imageName = 'sulemantalpur6/frontend:master-${BUILD_NUMBER}' imageName = 'sulemantalpur6/frontend:master${BUILD_NUMBER}'
} else if (branchName == 'QA') { } else if (branchName == 'QA') {
imageName = 'sulemantalpur6/frontend:QA-${BUILD_NUMBER}' imageName = 'sulemantalpur6/frontend:QA${BUILD_NUMBER}'
} else if (branchName == 'UAT') { } else if (branchName == 'UAT') {
imageName = 'sulemantalpur6/frontend:UAT-${BUILD_NUMBER}' imageName = 'sulemantalpur6/frontend:UAT${BUILD_NUMBER}'
} else { } else {
echo "Branch $branchName not configured for Docker image build." echo "Branch $branchName not configured for Docker image build."
currentBuild.result = 'FAILURE' currentBuild.result = 'FAILURE'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment