Skip to content

Instantly share code, notes, and snippets.

@manuelleduc
Created October 20, 2022 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manuelleduc/88ce2908f82e41313280d3862665a097 to your computer and use it in GitHub Desktop.
Save manuelleduc/88ce2908f82e41313280d3862665a097 to your computer and use it in GitHub Desktop.
#!/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"
@manuelleduc
Copy link
Author

Dependencies:

  • notify-send
  • jq

@manuelleduc
Copy link
Author

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