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
bd9b6c25
Unverified
Commit
bd9b6c25
authored
4 years ago
by
Keshav Prasad
Committed by
GitHub
4 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: updating if logic
parent
3516eb55
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/stagingRC.groovy
+1
-1
vars/stagingRC.groovy
with
1 addition
and
1 deletion
+1
-1
vars/stagingRC.groovy
+
1
−
1
View file @
bd9b6c25
...
...
@@ -20,7 +20,7 @@ def call() {
current
=
Date
.
parse
(
"HH:mm:ss"
,
current
)
if
((
current
.
after
(
start
)
||
current
.
after
(
start1
))
&&
(
current
.
before
(
end
)
||
current
.
before
(
end1
)))
{
if
((
current
.
after
(
start
)
&&
current
.
before
(
end
))
||
(
current
.
after
(
start1
)
||
current
.
before
(
end1
)))
{
println
(
ANSI_BOLD
+
ANSI_GREEN
+
"Tigger is in the deployment window.. Check if the branch entered matches the current release branch.."
+
ANSI_NORMAL
)
if
(
params
.
release_branch
!=
env
.
public_repo_branch
)
{
println
(
ANSI_BOLD
+
ANSI_RED
+
"Oh Uh! The branch you entered does not match the staging release branch: "
+
env
.
public_repo_branch
+
ANSI_NORMAL
)
...
...
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