From d1c42d5a3593398def1aa3f699dbf0f0c5ce15e9 Mon Sep 17 00:00:00 2001 From: nhyatt Date: Fri, 12 Apr 2024 07:03:17 -0500 Subject: [PATCH] moves if statement --- notify-bitwarden.jenkins | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/notify-bitwarden.jenkins b/notify-bitwarden.jenkins index ecf5a3f..9373797 100644 --- a/notify-bitwarden.jenkins +++ b/notify-bitwarden.jenkins @@ -96,9 +96,9 @@ pipeline { } } - if (bitwardenInstalled != bitwardenLatestServer || bitwardenInstalled != bitwardenLatestWeb) { - stage ("Send Mail") { - steps { + stage ("Send Mail") { + steps { + if (bitwardenInstalled != bitwardenLatestServer || bitwardenInstalled != bitwardenLatestWeb) { script { mailBody = """Dear Bitwarden Admin, A new version of bitwarden was released: @@ -128,10 +128,10 @@ Docker Containers to: "nhyatt@smoothnet.org", ) } + } else { + println "Bitwarden is up to date!" } } - } else { - println "Bitwarden is up to date!" } } }