From: Anil Belur Date: Wed, 9 May 2018 01:35:58 +0000 (+1000) Subject: Use --jobs-only option with jjb-deploy X-Git-Tag: v0.20.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F43%2F10543%2F1;p=releng%2Fglobal-jjb.git Use --jobs-only option with jjb-deploy JJB 2.0.3 implementation allows views to be managed by code. The default behaviour is to update the job along with all the views in the repository. This takes a longer if the project has many views managed by code. Therefore, use the flag --jobs-only to updated on a given job in sandbox. Change-Id: Ifaaf60f3479e7485e1dbb5618c6cbcce31525278 Signed-off-by: Anil Belur --- diff --git a/shell/jjb-deploy-job.sh b/shell/jjb-deploy-job.sh index 3db95062..771f17b4 100644 --- a/shell/jjb-deploy-job.sh +++ b/shell/jjb-deploy-job.sh @@ -32,4 +32,4 @@ if [ -z "${JOB_NAME//\*/}" ]; then exit 1 fi -jenkins-jobs update --recursive --workers 4 jjb/ "$JOB_NAME" +jenkins-jobs update --jobs-only --recursive --workers 4 jjb/ "$JOB_NAME"