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
9bc3fa96
Unverified
Commit
9bc3fa96
authored
4 years ago
by
Keshav Prasad
Committed by
GitHub
4 years ago
Browse files
Options
Download
Patches
Plain Diff
feat: adding second slot time check
parent
5a676bf9
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
+4
-1
vars/pre_checks.groovy
with
4 additions
and
1 deletion
+4
-1
vars/pre_checks.groovy
+
4
−
1
View file @
9bc3fa96
...
...
@@ -15,8 +15,11 @@ def call() {
start
=
Date
.
parse
(
"HH:mm:ss"
,
env
.
START_TIME
)
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
.
before
(
end
))
{
if
(
(
current
.
after
(
start
)
||
current
.
after
(
start1
))
&&
(
current
.
before
(
end
)
||
current
.
before
(
end1
)
)
{
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