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
2ebabf56
Unverified
Commit
2ebabf56
authored
4 years ago
by
Keshav Prasad
Committed by
GitHub
4 years ago
Browse files
Options
Download
Patches
Plain Diff
fix: revert slot 2 variables
parent
7ff48237
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
+1
-4
vars/pre_checks.groovy
with
1 addition
and
4 deletions
+1
-4
vars/pre_checks.groovy
+
1
−
4
View file @
2ebabf56
...
...
@@ -16,10 +16,7 @@ def call() {
end
=
Date
.
parse
(
"HH:mm:ss"
,
env
.
END_TIME
)
current
=
Date
.
parse
(
"HH:mm:ss"
,
current
)
start1
=
Date
.
parse
(
"HH:mm:ss"
,
env
.
START_TIME1
)
end1
=
Date
.
parse
(
"HH:mm:ss"
,
env
.
END_TIME1
)
if
((
current
.
after
(
start
)
||
current
.
after
(
start1
))
&&
(
current
.
before
(
end
)
||
current
.
before
(
end1
)))
{
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
.
automated_public_repo_branch
)
||
!
tag_name
.
contains
(
"_RC"
))
{
...
...
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