Skip to content
GitLab
Menu
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
86c39a6f
Commit
86c39a6f
authored
1 year ago
by
Muhammad Suleman
1
Browse files
Options
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
fec4f85e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+5
-6
Jenkinsfile
with
5 additions
and
6 deletions
+5
-6
Jenkinsfile
+
5
-
6
View file @
86c39a6f
...
@@ -12,18 +12,17 @@ pipeline {
...
@@ -12,18 +12,17 @@ pipeline {
steps
{
steps
{
script
{
script
{
def
branchName
=
BRANCH_NAME
def
branchName
=
BRANCH_NAME
def
buildNumber
=
BUILD_NUMBER
def
imageName
def
imageName
echo
branchName
;
if
(
branchName
==
'dev'
)
{
if
(
branchName
==
'dev'
)
{
imageName
=
'sulemantalpur6/frontend:
dev-${BUILD_NUMBER}
'
imageName
=
'sulemantalpur6/frontend:
$branchName$buildNumber
'
}
else
if
(
branchName
==
'master'
)
{
}
else
if
(
branchName
==
'master'
)
{
imageName
=
'sulemantalpur6/frontend:
master-${BUILD_NUMBER}
'
imageName
=
'sulemantalpur6/frontend:
$branchName$buildNumber
'
}
else
if
(
branchName
==
'QA'
)
{
}
else
if
(
branchName
==
'QA'
)
{
imageName
=
'sulemantalpur6/frontend:
QA-${BUILD_NUMBER}
'
imageName
=
'sulemantalpur6/frontend:
$branchName$buildNumber
'
}
else
if
(
branchName
==
'UAT'
)
{
}
else
if
(
branchName
==
'UAT'
)
{
imageName
=
'sulemantalpur6/frontend:
UAT-${BUILD_NUMBER}
'
imageName
=
'sulemantalpur6/frontend:
$branchName$buildNumber
'
}
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.
Muhammad Suleman
@musuleman
mentioned in commit
84e653b6
·
1 year ago
mentioned in commit
84e653b6
mentioned in commit 84e653b600da2c96eb151202932d7d2fd7dfb2f3
Toggle commit list
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