Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DevOps Assignment
frontend
Commits
c7b78ae6
Commit
c7b78ae6
authored
1 year ago
by
Muhammad Suleman
Browse files
Options
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
84e653b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+4
-4
Jenkinsfile
with
4 additions
and
4 deletions
+4
-4
Jenkinsfile
+
4
-
4
View file @
c7b78ae6
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help