From b85c9c7ae7f8ca641e26be9abba9a7a31bede5cb Mon Sep 17 00:00:00 2001 From: Anil Belur Date: Mon, 29 Jul 2019 11:33:00 +1000 Subject: [PATCH] Log $JOB_NAME with the jjb-deploy Change-Id: Ifb2715402dc1dcb21708e4dc8851e0c621d59145 Signed-off-by: Anil Belur --- releasenotes/notes/add-job-name-in-logs-9c993fa59310d9c7.yaml | 6 ++++++ shell/jjb-deploy-job.sh | 1 + 2 files changed, 7 insertions(+) create mode 100644 releasenotes/notes/add-job-name-in-logs-9c993fa59310d9c7.yaml 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" -- 2.16.6