Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Frédéric Pierret
jenkins.debian.net
Commits
c26ea9f7
Commit
c26ea9f7
authored
Feb 26, 2021
by
Holger Levsen
Browse files
deploy_jdn: allow to deploy only on some nodes, but not jenkins
Signed-off-by:
Holger Levsen
<
holger@layer-acht.org
>
parent
a4ce754d
Changes
1
Hide whitespace changes
Inline
Side-by-side
deploy_jdn
View file @
c26ea9f7
...
@@ -25,8 +25,14 @@
...
@@ -25,8 +25,14 @@
# ./deploy_jdn jenkins o167 - deploy on jenkins and osuosl167
# ./deploy_jdn jenkins o167 - deploy on jenkins and osuosl167
# ./deploy_jdn jenkins c9 - deploy on jenkins and codethink9
# ./deploy_jdn jenkins c9 - deploy on jenkins and codethink9
# ./deploy_jdn jenkins 10 - deploy on jenkins and ionos10
# ./deploy_jdn jenkins 10 - deploy on jenkins and ionos10
# ./deploy_jdn jenkins 5 6 - deploy on jenkins and ionos
6
and ionos6
# ./deploy_jdn jenkins 5 6 - deploy on jenkins and ionos
5
and ionos6
# ./deploy_jdn jenkins amd64 - deploy on jenkins and all amd64 nodes
# ./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 upgrade|u - run "apt-get update && upgrade && clean" everywhere
# ./deploy_jdn upgradey|uy - run "apt-get upgrade -y" everywhere
# ./deploy_jdn upgradey|uy - run "apt-get upgrade -y" everywhere
# ./deploy_jdn rmstamp|rm - delete stamp files everywhere
# ./deploy_jdn rmstamp|rm - delete stamp files everywhere
...
@@ -101,8 +107,12 @@ elif [ "$1" = "check" ] ; then
...
@@ -101,8 +107,12 @@ elif [ "$1" = "check" ] ; then
elif
[
"
$1
"
=
""
]
;
then
elif
[
"
$1
"
=
""
]
;
then
HOSTS
=(
root@jenkins.debian.net
)
HOSTS
=(
root@jenkins.debian.net
)
echo
-n
"Running j.d.n.git updates on
${
HOSTS
[@]
}
now"
echo
-n
"Running j.d.n.git updates on
${
HOSTS
[@]
}
now"
elif
[
"
$1
"
=
"jenkins"
]
;
then
elif
[
"
$1
"
=
"jenkins"
]
||
[
"
$1
"
=
"only"
]
;
then
HOSTS
=(
root@jenkins.debian.net
)
if
[
"
$1
"
=
"jenkins"
]
;
then
HOSTS
=(
root@jenkins.debian.net
)
else
HOSTS
=()
fi
shift
shift
for
i
in
"
$@
"
;
do
for
i
in
"
$@
"
;
do
case
"
$i
"
in
case
"
$i
"
in
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment