Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
administration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OZG-Cloud
app
administration
Commits
b5566408
Commit
b5566408
authored
5 months ago
by
Martin
Browse files
Options
Downloads
Patches
Plain Diff
OZG-7324 adjust JenkinsFile
parent
15b83a48
Loading
Loading
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+7
-7
7 additions, 7 deletions
Jenkinsfile
with
7 additions
and
7 deletions
Jenkinsfile
+
7
−
7
View file @
b5566408
...
...
@@ -44,7 +44,7 @@ pipeline {
when
{
not
{
anyOf
{
branch
'ma
ster
'
branch
'ma
in
'
branch
'release'
}
}
...
...
@@ -87,7 +87,7 @@ pipeline {
stage
(
'Sonar Checks'
)
{
when
{
branch
'ma
ster
'
branch
'ma
in
'
}
steps
{
script
{
...
...
@@ -158,7 +158,7 @@ pipeline {
stage
(
'Trigger Dev rollout'
)
{
when
{
branch
'ma
ster
'
branch
'ma
in
'
}
steps
{
script
{
...
...
@@ -197,7 +197,7 @@ pipeline {
}
failure
{
script
{
if
(
isMa
ster
Branch
()
||
isReleaseBranch
())
{
if
(
isMa
in
Branch
()
||
isReleaseBranch
())
{
sendFailureMessage
()
}
}
...
...
@@ -249,7 +249,7 @@ String getPomVersion() {
}
String
getBuildProfile
()
{
if
(
isMa
ster
Branch
())
{
if
(
isMa
in
Branch
())
{
return
"-P dev"
}
else
if
(
isReleaseBranch
())
{
return
"-P release"
...
...
@@ -354,8 +354,8 @@ Boolean hasAdministrationValuesFileChanged(String environment) {
return
sh
(
script:
"git status | grep '${environment}/application/values/administration-values.yaml'"
,
returnStatus:
true
)
==
env
.
SH_SUCCESS_STATUS_CODE
as
Integer
}
Boolean
isMa
ster
Branch
()
{
return
env
.
BRANCH_NAME
==
'ma
ster
'
Boolean
isMa
in
Branch
()
{
return
env
.
BRANCH_NAME
==
'ma
in
'
}
Boolean
isReleaseBranch
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment