jenkins-job-builder/tests/builders/fixtures
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
..
trigger-builds Support the use of lists in trigger-build builder. 2015-04-17 13:51:47 -07:00
trigger-remote Allow whitespace to be significant 2015-08-11 18:31:48 +01:00
ant001.xml Add additional yaml/xml tests, literalinclude them 2014-04-29 11:57:15 -07:00
ant001.yaml Add additional yaml/xml tests, literalinclude them 2014-04-29 11:57:15 -07:00
ant002.xml Ensure dict orders are deterministic 2014-09-01 14:15:10 +01:00
ant002.yaml Add additional yaml/xml tests, literalinclude them 2014-04-29 11:57:15 -07:00
artifact-resolver.xml Add more tests 2014-04-29 10:34:22 -07:00
artifact-resolver.yaml Add more tests 2014-04-29 10:34:22 -07:00
batch.xml Add additional yaml/xml tests, literalinclude them 2014-04-29 11:57:15 -07:00
batch.yaml Add additional yaml/xml tests, literalinclude them 2014-04-29 11:57:15 -07:00
beaker-content.xml Adding support for Beaker Builder Plugin 2015-05-04 13:31:14 +02:00
beaker-content.yaml Adding support for Beaker Builder Plugin 2015-05-04 13:31:14 +02:00
beaker-path.xml Adding support for Beaker Builder Plugin 2015-05-04 13:31:14 +02:00
beaker-path.yaml Adding support for Beaker Builder Plugin 2015-05-04 13:31:14 +02:00
build-name-setter001.xml Add Build Name Setter to Builders 2016-04-24 09:38:12 -04:00
build-name-setter001.yaml Add Build Name Setter to Builders 2016-04-24 09:38:12 -04:00
build-name-setter002.xml Add Build Name Setter to Builders 2016-04-24 09:38:12 -04:00
build-name-setter002.yaml Add Build Name Setter to Builders 2016-04-24 09:38:12 -04:00
builders-from.xml Add more tests 2014-04-29 10:34:22 -07:00
builders-from.yaml Add more tests 2014-04-29 10:34:22 -07:00
changeassemblyversion001.xml Adds support for Change Assembly Version plugin 2014-09-02 08:20:12 +01:00
changeassemblyversion001.yaml Adds support for Change Assembly Version plugin 2014-09-02 08:20:12 +01:00
changeassemblyversion002.xml Adds support for Change Assembly Version plugin 2014-09-02 08:20:12 +01:00
changeassemblyversion002.yaml Adds support for Change Assembly Version plugin 2014-09-02 08:20:12 +01:00
cloudformation.xml Add Ability to use the AWS Cloudformation Plugin 2015-08-31 07:45:52 -05:00
cloudformation.yaml Add Ability to use the AWS Cloudformation Plugin 2015-08-31 07:45:52 -05:00
cmake-common.xml builders: add cmakebuilder plugin support 2015-01-27 17:43:37 -02:00
cmake-common.yaml builders: add cmakebuilder plugin support 2015-01-27 17:43:37 -02:00
cmake-complete.xml builders: add cmakebuilder plugin support 2015-01-27 17:43:37 -02:00
cmake-complete.yaml builders: add cmakebuilder plugin support 2015-01-27 17:43:37 -02:00
conditional-step-and.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-and.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-build-cause.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-build-cause.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week001.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week001.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week002.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week002.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week003.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-day-of-week003.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-execution-node.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-execution-node.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-files-match.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-files-match.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-not-file-exists.xml adds support for not condition in conditional_step 2015-02-12 11:59:20 -06:00
conditional-step-not-file-exists.yaml adds support for not condition in conditional_step 2015-02-12 11:59:20 -06:00
conditional-step-notbuild-aborted.xml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-notbuild-aborted.yaml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-num-comp.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-num-comp.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-or.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-or.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-regex-match.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-regex-match.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-strings-match.xml Add strings-match conditional step 2014-10-27 17:07:14 -06:00
conditional-step-strings-match.yaml Add strings-match conditional step 2014-10-27 17:07:14 -06:00
conditional-step-success-failure.xml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-success-failure.yaml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-success-unstable.xml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-success-unstable.yaml Add best and worst status details for conditional-step plugin. 2014-02-10 12:08:40 -05:00
conditional-step-time.xml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
conditional-step-time.yaml Support for more conditions type in conditions-buildstep plugin 2015-07-13 23:35:24 +05:30
config-file-provider01.xml Add support to CFP in builders sections 2015-04-20 21:09:59 -04:00
config-file-provider01.yaml Add support to CFP in builders sections 2015-04-20 21:09:59 -04:00
copy-artifact001.xml Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
copy-artifact001.yaml Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
copy-artifact002.xml Add 'do-not-fingerprint' to 'copyartifact' builder 2015-11-19 17:16:20 -05:00
copy-artifact002.yaml Add 'last-completed' to copyartifact 'which-build' values 2015-02-13 16:11:20 +03:00
copy-artifact003.xml Added "Downstream build of" build selector 2015-12-14 12:49:44 +08:00
copy-artifact003.yaml Added "Downstream build of" build selector 2015-12-14 12:49:44 +08:00
critical-block-end.xml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
critical-block-end.yaml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
critical-block-start.xml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
critical-block-start.yaml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
critical-block.xml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
critical-block.yaml Added support for Exclusion plugin 2014-04-21 13:14:47 -04:00
description-setter001.xml Description Setter Plugin support as builder 2016-02-19 04:20:56 +00:00
description-setter001.yaml Description Setter Plugin support as builder 2016-02-19 04:20:56 +00:00
docker-builder001.xml Add support for docker builder plugin 2016-04-22 21:15:22 +01:00
docker-builder001.yaml Add support for docker builder plugin 2016-04-22 21:15:22 +01:00
doxygen001.xml Add doxygen builder support 2016-01-29 12:28:57 +08:00
doxygen001.yaml Add doxygen builder support 2016-01-29 12:28:57 +08:00
doxygen002.xml Add doxygen builder support 2016-01-29 12:28:57 +08:00
doxygen002.yaml Add doxygen builder support 2016-01-29 12:28:57 +08:00
dsl001.xml BugFix: Target field in Job-DSL plugin was not being populated 2015-08-24 22:34:19 -04:00
dsl001.yaml BugFix: Target field in Job-DSL plugin was not being populated 2015-08-24 22:34:19 -04:00
dsl002.xml BugFix: Target field in Job-DSL plugin was not being populated 2015-08-24 22:34:19 -04:00
dsl002.yaml BugFix: Target field in Job-DSL plugin was not being populated 2015-08-24 22:34:19 -04:00
github-notifier.xml Add support for github commit status pending 2015-02-23 08:25:16 +02:00
github-notifier.yaml Add support for github commit status pending 2015-02-23 08:25:16 +02:00
gradle.xml Add more tests 2014-04-29 10:34:22 -07:00
gradle.yaml Add more tests 2014-04-29 10:34:22 -07:00
grails.xml Add more tests 2014-04-29 10:34:22 -07:00
grails.yaml Add more tests 2014-04-29 10:34:22 -07:00
groovy001.xml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
groovy001.yaml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
groovy002.xml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
groovy002.yaml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
inject.xml Add support for scripts in the inject builder 2014-10-24 10:48:31 +01:00
inject.yaml Add support for scripts in the inject builder 2014-10-24 10:48:31 +01:00
managed-script.xml Add support for Managed Script Plugin 2014-07-08 13:44:05 +03:00
managed-script.yaml Add support for Managed Script Plugin 2014-07-08 13:44:05 +03:00
managed-winbatch.xml Add support for Managed Script Plugin 2014-07-08 13:44:05 +03:00
managed-winbatch.yaml Add support for Managed Script Plugin 2014-07-08 13:44:05 +03:00
maven-builder001.xml Adding Maven3 Builder Targets 2015-06-03 22:03:16 +02:00
maven-builder001.yaml Adding Maven3 Builder Targets 2015-06-03 22:03:16 +02:00
maven-target-doc.xml Allow whitespace to be significant 2015-08-11 18:31:48 +01:00
maven-target-doc.yaml add private-repository, java-opts, settings and global-settings to maven-target 2013-12-09 22:53:44 +01:00
maven-target001.xml Fix multibyte character problem 2014-01-21 22:34:30 +09:00
maven-target001.yaml add private-repository, java-opts, settings and global-settings to maven-target 2013-12-09 22:53:44 +01:00
maven-target002.xml Add support for Config File Provider to Maven Project module 2015-03-03 16:01:23 -05:00
maven-target002.yaml Add support for Config File Provider to Maven Project module 2015-03-03 16:01:23 -05:00
msbuild.xml Add more tests 2014-04-29 10:34:22 -07:00
msbuild.yaml Add more tests 2014-04-29 10:34:22 -07:00
multibuild.xml Merge "add support for node-parameters option for multijob builder" 2016-04-23 17:23:19 +00:00
multibuild.yaml Merge "add support for node-parameters option for multijob builder" 2016-04-23 17:23:19 +00:00
openshift-build-verify001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-build-verify001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-build-verify002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-build-verify002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-builder001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-builder001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-builder002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-builder002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-creator001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-creator001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-creator002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-creator002.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-dep-verify001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-dep-verify001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-dep-verify002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-dep-verify002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-deployer001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-deployer001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-deployer002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-deployer002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-img-tagger001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-img-tagger001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-img-tagger002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-img-tagger002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-scaler001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-scaler001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-scaler002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-scaler002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
openshift-svc-verify001.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-svc-verify001.yaml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-svc-verify002.xml Updated to support changes to openshift pipeline plugin 2016-01-06 11:37:53 -05:00
openshift-svc-verify002.yaml Implements: additions for OS3 plugin entry points in builders and scm 2015-10-08 16:17:12 +01:00
powershell.xml Adding support for the Powershell plugin. 2014-09-12 15:58:14 +01:00
powershell.yaml Adding support for the Powershell plugin. 2014-09-12 15:58:14 +01:00
python.xml Allow whitespace to be significant 2015-08-11 18:31:48 +01:00
python.yaml add support for python builder 2014-04-26 18:04:44 -07:00
runscope.xml Add support for runscope plugin 2015-11-04 11:28:28 -06:00
runscope.yaml Add support for runscope plugin 2015-11-04 11:28:28 -06:00
sbt.xml Add more tests 2014-04-29 10:34:22 -07:00
sbt.yaml Add more tests 2014-04-29 10:34:22 -07:00
shell.xml Allow whitespace to be significant 2015-08-11 18:31:48 +01:00
shell.yaml add tests for shell builder 2014-04-26 18:07:34 -07:00
shining-panda-customenv.xml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
shining-panda-customenv.yaml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
shining-panda-pythonenv.xml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
shining-panda-pythonenv.yaml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
shining-panda-virtualenv.xml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
shining-panda-virtualenv.yaml Added support for python virtualenv plugin 2014-02-20 21:50:26 +01:00
sonar.xml Add support for Sonar analysis builder 2015-03-12 21:10:59 +01:00
sonar.yaml Add support for Sonar analysis builder 2015-03-12 21:10:59 +01:00
sonatype-clm01.xml Add support for Sonatype CLM plugin 2015-04-22 15:53:08 +00:00
sonatype-clm01.yaml Add support for Sonatype CLM plugin 2015-04-22 15:53:08 +00:00
ssh-builder.xml Adding builder for SSH plugin 2015-06-03 08:16:19 +03:00
ssh-builder.yaml Adding builder for SSH plugin 2015-06-03 08:16:19 +03:00
system-groovy001.xml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
system-groovy001.yaml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
system-groovy002.xml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
system-groovy002.yaml Add support for builder Groovy and System Groovy 2014-07-07 17:39:07 +01:00
tox001.xml Add support for "tox" builder 2015-12-12 19:40:21 +00:00
tox001.yaml Add support for "tox" builder 2015-12-12 19:40:21 +00:00
tox002.xml Add support for "tox" builder 2015-12-12 19:40:21 +00:00
tox002.yaml Add support for "tox" builder 2015-12-12 19:40:21 +00:00
trigger-builds-configfactory-allnodesforlabel-optionals.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-allnodesforlabel-optionals.yaml Add support for 'All Nodes For Label Factory' 2015-01-22 21:21:51 +03:00
trigger-builds-configfactory-allnodesforlabel.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-allnodesforlabel.yaml Add support for 'All Nodes For Label Factory' 2015-01-22 21:21:51 +03:00
trigger-builds-configfactory-binaryfile-optionals.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-binaryfile-optionals.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-binaryfile.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-binaryfile.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-counterbuild-optionals.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-counterbuild-optionals.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-counterbuild.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-counterbuild.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-filebuild-optionals.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-filebuild-optionals.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-filebuild.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-filebuild.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds-configfactory-multi.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds-configfactory-multi.yaml Add support for 'All Nodes For Label Factory' 2015-01-22 21:21:51 +03:00
trigger-builds001.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds001.yaml Enhance coverage for builder trigger-builds 2014-04-05 22:37:39 +02:00
trigger-builds002.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds002.yaml triggered-builds: Support property file injection 2014-04-04 12:58:53 +02:00
trigger-builds003.xml Add support to configure boolean parameter in PBT 2015-03-18 18:09:46 -04:00
trigger-builds003.yaml Add support to configure boolean parameter in PBT 2015-03-18 18:09:46 -04:00
trigger-builds004.xml Add support to customize trigger-builds block thresholds 2015-03-03 09:01:54 +00:00
trigger-builds004.yaml Extend trigger_builds functionality 2014-09-16 09:26:42 +02:00
trigger-builds005.xml Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
trigger-builds005.yaml Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
trigger-builds006.xml added support for NodeLabel parameter in trigger-builds 2015-04-08 15:58:49 -05:00
trigger-builds006.yaml added support for NodeLabel parameter in trigger-builds 2015-04-08 15:58:49 -05:00
trigger-builds007.xml Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00
trigger-builds007.yaml Serialize combine-queued-commits for git-revision 2016-04-25 19:04:11 +01:00