This commit is contained in:
Hyatt 2024-04-12 07:09:31 -05:00
parent d1c42d5a35
commit 9bc26437f7
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -98,9 +98,9 @@ pipeline {
stage ("Send Mail") { stage ("Send Mail") {
steps { steps {
if (bitwardenInstalled != bitwardenLatestServer || bitwardenInstalled != bitwardenLatestWeb) {
script { script {
mailBody = """Dear Bitwarden Admin, if (bitwardenInstalled != bitwardenLatestServer || bitwardenInstalled != bitwardenLatestWeb) {
mailBody = """Dear Bitwarden Admin,
A new version of bitwarden was released: A new version of bitwarden was released:
Server: v${bitwardenLatestServer} Server: v${bitwardenLatestServer}
Web: v${bitwardenLatestWeb} Web: v${bitwardenLatestWeb}
@ -119,17 +119,17 @@ Docker Containers
web: https://hub.docker.com/r/bitwarden/web/tags web: https://hub.docker.com/r/bitwarden/web/tags
""" """
echo mailBody echo mailBody
emailext( emailext(
body: mailBody, body: mailBody,
mimeType: 'text/plain', mimeType: 'text/plain',
replyTo: '${DEFAULT_REPLYTO}', replyTo: '${DEFAULT_REPLYTO}',
subject: '${DEFAULT_SUBJECT}', subject: '${DEFAULT_SUBJECT}',
to: "nhyatt@smoothnet.org", to: "nhyatt@smoothnet.org",
) )
} else {
println "Bitwarden is up to date!"
} }
} else {
println "Bitwarden is up to date!"
} }
} }
} }