diff options
Diffstat (limited to 'deployment/onap-lab-ci/jobs/dublin/queue_all_jobs.sh')
-rwxr-xr-x | deployment/onap-lab-ci/jobs/dublin/queue_all_jobs.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/deployment/onap-lab-ci/jobs/dublin/queue_all_jobs.sh b/deployment/onap-lab-ci/jobs/dublin/queue_all_jobs.sh new file mode 100755 index 000000000..e993d54b3 --- /dev/null +++ b/deployment/onap-lab-ci/jobs/dublin/queue_all_jobs.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [ $# -ne 1 ] || [ ! -f $1 ]; then + echo file not found + exit 1 +fi + +PODS_FILE=$1 +DIR=$(dirname "$(readlink -f "$PODS_FILE")") +JOB=$(basename $DIR) +echo $JOB +for POD_TO_DELETE in $(cat $PODS_FILE); do + echo build "$JOB $POD_TO_DELETE" + java -jar ~/jenkins-cli.jar -s http://localhost:8080/jenkins -auth jenkins:g2jenkins build $JOB -p POD_TO_DELETE=$POD_TO_DELETE +done |