Enable configuring the concurrency of jjb-verify 72/13672/6 v0.28.0
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 27 Nov 2018 22:10:30 +0000 (14:10 -0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 30 Nov 2018 04:45:08 +0000 (12:45 +0800)
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 <tbramwell@linuxfoundation.org>
docs/jjb/lf-ci-jobs.rst
jjb/lf-ci-jobs.yaml
releasenotes/notes/jjb-concurrency-a9826cfeb15b4ad2.yaml [new file with mode: 0644]

index f55b5dc..299d201 100644 (file)
@@ -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)
index 85a44f8..e02d753 100644 (file)
     # Default parameters #
     ######################
 
+    build-concurrent: true
+
     gerrit_verify_triggers:
       - patchset-created-event:
           exclude-drafts: true
     # 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 (file)
index 0000000..6e496a2
--- /dev/null
@@ -0,0 +1,4 @@
+---
+features:
+  - |
+    Concurrency for the gerrit-jjb-verify job can now be configured by setting the 'build-concurrent' parameter.