Created
October 20, 2022 11:33
-
-
Save manuelleduc/88ce2908f82e41313280d3862665a097 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
branch="$1" | |
build="$2" | |
url="https://ci.xwiki.org/job/XWiki/job/xwiki-platform/job/${branch}/${build}/api/json" | |
building_status() { | |
curl -s -XGET $1 | jq '.building' | |
} | |
while [ "$(building_status $url)" == "true" ]; do | |
sleep 1m | |
done | |
notify-send -u critical "$branch $build DONE" |
Usage example: jenkinNotification stable-14.9.x 6
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dependencies: