Skip to content

Commit a9ae7d6

Browse files
committed
Added support to call CLI on all instances
1 parent d5a206f commit a9ae7d6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

jenkins-cli.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,13 @@ if [ -z "${instance}" ]; then
2323
exit 1
2424
fi
2525

26-
if [ ! -d "${instance}" ]; then
26+
if [[ ${instance} == "ALL" ]]; then
27+
for i in ${SCRIPT_FOLDER}/instances/*; do
28+
>&2 echo "Calling CLI for '$(basename ${i})'..."
29+
"${0}" "${i}" "${@:2}" || :
30+
done
31+
exit 0
32+
elif [[ ! -d "${instance}" ]]; then
2733
echo "ERROR: no 'instance' at '${instance}'"
2834
exit 1
2935
fi

0 commit comments

Comments
 (0)