summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-27 22:19:31 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-27 22:19:31 +0200
commit62f0ee6956fd0fc459355822d188b7da30460fd8 (patch)
treef98c3d4627ab2c7d8c4cb3b73316e67ba3d3a040 /bin
parente55b827e33419850cd2ba7cb5d377d7486fa582e (diff)
downloadjenkins.debian.net-62f0ee6956fd0fc459355822d188b7da30460fd8.tar.xz
reproducble: introduce options: --notify and --artifacts
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_schedule_on_demand.sh28
1 files changed, 9 insertions, 19 deletions
diff --git a/bin/reproducible_schedule_on_demand.sh b/bin/reproducible_schedule_on_demand.sh
index 6e2aca81..d9f50626 100755
--- a/bin/reproducible_schedule_on_demand.sh
+++ b/bin/reproducible_schedule_on_demand.sh
@@ -15,6 +15,15 @@ common_init "$@"
# main
#
set +x
+ARTIFACTS=0
+NOTIFY=''
+if [ "$1" = "--notify" ] ; then
+ NOTIFY=true
+ shift
+elif [ "$1" = "--artifacts" ] ; then
+ ARTIFACTS=1
+ NOTIFY=true
+fi
SUITE="$1"
shift
if [ "$SUITE" = "sid" ] ; then
@@ -22,25 +31,6 @@ if [ "$SUITE" = "sid" ] ; then
SUITE=unstable
fi
-case "$1" in
- "artifacts")
- ARTIFACTS=1
- NOTIFY=true
- shift
- printf "\nThe artifacts of the build(s) will be saved to the location mentioned at the end of the build log(s).\n\n"
- ;;
- "notify")
- ARTIFACTS=0
- NOTIFY=true
- shift
- printf "\nThe IRC channel will be notified once the build(s) finished.\n\n"
- ;;
- *)
- ARTIFACTS=0
- NOTIFY=''
- ;;
-esac
-
CANDIDATES="$@"
if [ ${#} -gt 50 ] && [ "$NOTIFY" = "true" ] ; then
echo