From: Anil Belur Date: Mon, 29 Jul 2019 01:33:00 +0000 (+1000) Subject: Log $JOB_NAME with the jjb-deploy X-Git-Tag: v0.40.0~1^2 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F48%2F16348%2F3;p=releng%2Fglobal-jjb.git Log $JOB_NAME with the jjb-deploy Change-Id: Ifb2715402dc1dcb21708e4dc8851e0c621d59145 Signed-off-by: Anil Belur --- diff --git a/releasenotes/notes/add-job-name-in-logs-9c993fa59310d9c7.yaml b/releasenotes/notes/add-job-name-in-logs-9c993fa59310d9c7.yaml new file mode 100644 index 00000000..66536cdc --- /dev/null +++ b/releasenotes/notes/add-job-name-in-logs-9c993fa59310d9c7.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + There is no way on finding out the $JOB_NAME pushed to sandbox with the + jjb-deploy command in the logs. The change outputs the $JOB_NAME to the + logs, which is useful for debugging purposes. diff --git a/shell/jjb-deploy-job.sh b/shell/jjb-deploy-job.sh index 99ef3678..5efb9f48 100644 --- a/shell/jjb-deploy-job.sh +++ b/shell/jjb-deploy-job.sh @@ -35,4 +35,5 @@ if [ -z "${JOB_NAME//\*/}" ]; then exit 1 fi +echo "Deploying Job $JOB_NAME to sandbox" jenkins-jobs -s sandbox update --jobs-only --recursive --workers 4 jjb/ "$JOB_NAME"