jenkins-job-builder/jenkins_jobs/modules
Christoffer Skeppstedt 50bc586ec5 Serialize combine-queued-commits for git-revision
When configuring the trigger_builds Builder in the Jenkins web
interface, you can add the parameter "Pass-through Git Commit that was
built". You could not configure this in a jobs.yml.

This commit adds that functionality (both to the builder
"trigger_builds " and the publisher "trigger_parameterized_builds").

I still want to be backwards compatible with the old version
(true/false) and maintain the similarity with the svn-revision param.
Which means that you can either configure it as

  git-revision: true/false

  or

  git-revision:
    combine-queued-commits: true/false

There were no prior case of shared code between builders and
publishers, so (by recommendation) I put the common logic in
builders.py, and then imported it in publishers.py.

I added thorough tests for the feature in the builders fixtures,
and only a basic test in the publishers fixtures, as suggested.

Change-Id: I72cdcae3fac1094ffcc9367369556b8bcbe2d5d7
2016-04-25 19:04:11 +01:00
..
__init__.py Refactor modules and templating. 2012-08-10 16:00:42 +00:00
base.py Make reuse of builders/publishers inside other components easier. 2013-04-24 17:50:32 +00:00
builders.py Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
general.py Adding the build-discarder property 2016-03-02 12:17:45 +01:00
helpers.py Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
hipchat_notif.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
hudson_model.py Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
metadata.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
notifications.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
parameters.py Merge "Add Promoted Build parameter." 2016-04-23 23:25:02 +00:00
project_externaljob.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_flow.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_freestyle.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_matrix.py Partial support Yaml Axis Plugin 2016-03-01 16:52:28 +01:00
project_maven.py Merge "Convert remaining Jenkins wiki URLs to sphinx roles" 2016-04-22 15:46:59 +00:00
project_multijob.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
project_workflow.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
properties.py Merge "Be able to handle Slack Plugin 2.0 configuration" 2016-04-22 21:04:54 +00:00
publishers.py Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
reporters.py Reorder imports to match hacking guidelines 2015-12-23 15:23:42 -08:00
scm.py Update Urls for redirects and broken 2016-04-22 15:11:47 +01:00
triggers.py Update Urls for redirects and broken 2016-04-22 15:11:47 +01:00
wrappers.py Merge "Adding Build Keeper plugin." 2016-04-23 14:53:03 +00:00
zuul.py Replace ci.o.o links with docs.o.o/infra 2015-05-28 06:28:47 +00:00