Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
5a676bf9
Unverified
Commit
5a676bf9
authored
4 years ago
by
Keshav Prasad
Committed by
GitHub
4 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: use automated_public_repo_branch instead of public_repo_branch
parent
fc6d0f83
release-3.4.0-shared-lib
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vars/pre_checks.groovy
+2
-2
vars/pre_checks.groovy
with
2 additions
and
2 deletions
+2
-2
vars/pre_checks.groovy
+
2
−
2
View file @
5a676bf9
...
...
@@ -19,8 +19,8 @@ def call() {
if
(
current
.
after
(
start
)
&&
current
.
before
(
end
))
{
println
ANSI_BOLD
+
ANSI_GREEN
+
"Tigger is in the deployment window.. Check if tag matches our pattern.."
+
ANSI_NORMAL
tag_name
=
env
.
JOB_NAME
.
split
(
"/"
)[-
1
]
if
(!
tag_name
.
contains
(
env
.
public_repo_branch
)
||
!
tag_name
.
contains
(
"_RC"
))
{
println
(
ANSI_BOLD
+
ANSI_RED
+
"Error.. Tag does not contain "
+
env
.
public_repo_branch
+
" or is not a RC tag"
+
ANSI_NORMAL
)
if
(!
tag_name
.
contains
(
env
.
automated_
public_repo_branch
)
||
!
tag_name
.
contains
(
"_RC"
))
{
println
(
ANSI_BOLD
+
ANSI_RED
+
"Error.. Tag does not contain "
+
env
.
automated_
public_repo_branch
+
" or is not a RC tag"
+
ANSI_NORMAL
)
error
"Oh ho! Tag is not a release candidate.. Skipping build"
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets