Unverified Commit bd9b6c25 authored by Keshav Prasad's avatar Keshav Prasad Committed by GitHub
Browse files

fix: updating if logic

No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment