[Qa-jenkins-scm] [Git][qa/jenkins.debian.net][master] deploy_jdn: add support for some short options

Holger Levsen gitlab at salsa.debian.org
Thu Feb 11 20:12:33 GMT 2021



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
01a5042d by Holger Levsen at 2021-02-11T21:12:11+01:00
deploy_jdn: add support for some short options

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- deploy_jdn


Changes:

=====================================
deploy_jdn
=====================================
@@ -1,7 +1,7 @@
 #!/bin/bash
 # vim: set noexpandtab:
 #
-# Copyright 2014-2020 Holger Levsen <holger at layer-acht.org>
+# Copyright 2014-2021 Holger Levsen <holger at layer-acht.org>
 #           ©    2018 Mattia Rizzolo <mattia at debian.org>
 #
 # released under the GPLv2
@@ -27,9 +27,9 @@
 # ./deploy_jdn jenkins 10	- deploy on jenkins and ionos10
 # ./deploy_jdn jenkins 5 6	- deploy on jenkins and ionos6 and ionos6
 # ./deploy_jdn jenkins amd64	- deploy on jenkins and all amd64 nodes
-# ./deploy_jdn upgrade		- run "apt-get update && upgrade && clean" everywhere
-# ./deploy_jdn upgradey		- run "apt-get upgrade -y" everywhere
-# ./deploy_jdn rmstamp		- delete stamp files everywhere
+# ./deploy_jdn upgrade|u	- run "apt-get update && upgrade && clean" everywhere
+# ./deploy_jdn upgradey|uy	- run "apt-get upgrade -y" everywhere
+# ./deploy_jdn rmstamp|rm	- delete stamp files everywhere
 #
 # rebooting all of them, except jenkins is easily done like this
 # $ parallel -j 8 -i sh -c 'ssh {} sudo reboot' -- $(./nodes/list_nodes | grep -v jenkins)
@@ -84,13 +84,13 @@ elif [ "$1" = "all" ] ; then
 		echo -n "Running '$real_command' on ${HOSTS[@]} now."
 		real_command="$@ && echo '__reallyreally=ok__'"
 	fi
-elif [ "$1" = "upgrade" ] ; then
+elif [ "$1" = "upgrade" ] || [ "$1" = "u" ] ; then
 	real_command="export LANG=C && sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get clean"
 	shift
-elif [ "$1" = "upgradey" ] ; then
+elif [ "$1" = "upgradey" ] || [ "$1" = "uy" ] ; then
 	real_command="export LANG=C && sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y dist-upgrade && sudo apt-get clean"
 	shift
-elif [ "$1" = "rmstamp" ] ; then
+elif [ "$1" = "rmstamp" ] || [ "$1" = "rm" ] ; then
 	real_command="sudo rm -f /var/log/jenkins/*stamp && echo '__reallyreally=ok__'"
 	reset_clock=false
 	shift



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/01a5042df7d0d23723525099f2c5e60bd8094d85

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/01a5042df7d0d23723525099f2c5e60bd8094d85
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20210211/09b23e9b/attachment-0001.html>


More information about the Qa-jenkins-scm mailing list