From: Trevor Bramwell Date: Tue, 27 Nov 2018 22:10:30 +0000 (-0800) Subject: Enable configuring the concurrency of jjb-verify X-Git-Tag: v0.28.0^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=8ed761356296d6dfb78f01bbe44d5bbb75be11a1;p=releng%2Fglobal-jjb.git Enable configuring the concurrency of jjb-verify The JJB verify job always runs concurrently. By turning the concurrency setting into a variable, users will be able to run the job serially, which may be required on static nodes. Issue: RELENG-1509 Change-Id: I4f2b51924a71674bbf2d4bbf8acc637971470eec Signed-off-by: Trevor Bramwell --- diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index f55b5dce..299d201d 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -439,6 +439,8 @@ Runs `jenkins-jobs test` to validate JJB syntax :Optional parameters: :branch: Git branch to fetch for the build. (default: master) + :build-concurrent: Whether or not to allow this job to run multiple jobs + simultaneously. (default: true) :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 10) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 85a44f83..e02d7531 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -805,6 +805,8 @@ # Default parameters # ###################### + build-concurrent: true + gerrit_verify_triggers: - patchset-created-event: exclude-drafts: true @@ -818,7 +820,7 @@ # Job Configuration # ##################### - concurrent: true + concurrent: '{build-concurrent}' builders: - lf-infra-pre-build diff --git a/releasenotes/notes/jjb-concurrency-a9826cfeb15b4ad2.yaml b/releasenotes/notes/jjb-concurrency-a9826cfeb15b4ad2.yaml new file mode 100644 index 00000000..6e496a2b --- /dev/null +++ b/releasenotes/notes/jjb-concurrency-a9826cfeb15b4ad2.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Concurrency for the gerrit-jjb-verify job can now be configured by setting the 'build-concurrent' parameter.