Skip to content
Snippets Groups Projects
Commit c26ea9f7 authored by Holger Levsen's avatar Holger Levsen
Browse files

deploy_jdn: allow to deploy only on some nodes, but not jenkins


Signed-off-by: default avatarHolger Levsen <holger@layer-acht.org>
parent a4ce754d
No related branches found
No related tags found
No related merge requests found
......@@ -25,8 +25,14 @@
# ./deploy_jdn jenkins o167 - deploy on jenkins and osuosl167
# ./deploy_jdn jenkins c9 - deploy on jenkins and codethink9
# ./deploy_jdn jenkins 10 - deploy on jenkins and ionos10
# ./deploy_jdn jenkins 5 6 - deploy on jenkins and ionos6 and ionos6
# ./deploy_jdn jenkins 5 6 - deploy on jenkins and ionos5 and ionos6
# ./deploy_jdn jenkins amd64 - deploy on jenkins and all amd64 nodes
# ./deploy_jdn only ionos10 - deploy on ionos10
# ./deploy_jdn only o167 - deploy on osuosl167
# ./deploy_jdn only c9 - deploy on codethink9
# ./deploy_jdn only 10 - deploy on ionos10
# ./deploy_jdn only 5 6 - deploy on ionos5 and ionos6
# ./deploy_jdn only amd64 - deploy on all amd64 only
# ./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
......@@ -101,8 +107,12 @@ elif [ "$1" = "check" ] ; then
elif [ "$1" = "" ] ; then
HOSTS=(root@jenkins.debian.net)
echo -n "Running j.d.n.git updates on ${HOSTS[@]} now"
elif [ "$1" = "jenkins" ] ; then
HOSTS=(root@jenkins.debian.net)
elif [ "$1" = "jenkins" ] || [ "$1" = "only" ] ; then
if [ "$1" = "jenkins" ] ; then
HOSTS=(root@jenkins.debian.net)
else
HOSTS=()
fi
shift
for i in "$@" ; do
case "$i" in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment