Commit Graph

9 Commits

Author SHA1 Message Date
Eren ATAS 15ee9899b8 Added property-multiline for parameterized build trigger plugin
Updated test cases as well, The tag has been introduced after 2.35.2
therefore the parameter is also >=2.35.2

Change-Id: Ie0801108a16969b420b341e2deaa6ba62deb116c
Signed-off-by: Eren ATAS <eatas.contractor@libertyglobal.com>
2020-07-31 14:12:00 +02:00
Tomas Hartmann ff2d631d1a Add trigger-from-child-projects option.
Update trigger-parameterized-job arguments, to include
trigger from child projects.

Closes-Bug: story/2002157
Change-Id: Iae0610ee942dd2cad95e3fcaa8b70b16f42b3c50
2018-06-08 09:06:39 +00:00
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
Darragh Bailey e5738d0852 Allow whitespace to be significant
Remove the test options suppressing ignoring differences in whitespace
outputted in the XML to allow capturing of issues where the code
incorrectly adds or removes significant whitespace.

Add a helper function to deal with the edge case of parsing XML directly
that contains non significant whitespace to avoid accidentally adding
excess whitespace when minidom outputs the resulting document.

Change-Id: I9936042cd82c204ba2b3c19f575703e33564f7fd
2015-08-11 18:31:48 +01:00
Wayne 34cdace000 Support use of lists in trigger-build publisher.
Since Jenkins parameterized build trigger publisher supports comma-separated
list of jobs to build, this simply joins a list of jobs specified in JJB yaml on
a comma.

Change-Id: I4fefeeaae1b39b7932d11ce88f1d75a9ca5faff5
2015-06-01 20:49:27 -07:00
Jenkins d6a5f1c5d4 Merge "Add examples for 'predefined-parameters'" 2014-12-08 12:29:14 +00:00
Andrey Pavlov 047fd60f7e Add examples for 'predefined-parameters'
There was no example how to make multiline 'predefined-parameters'.

Change-Id: Ic287cd37ff928e34d80104085a3aca6f5d34865a
Closes-Bug: 1381079
2014-11-29 12:05:34 +03:00
Andrey Pavlov 1b2af8186e Add parameter to trigger_parameterized_builds
For supporting ability to run downstream project on the same node
parameter 'NodeParameters' should be present in output xml.
Adding same parameter to 'trigger_parameterized_builds' publisher.

Change-Id: I7769507d8da138fe0944e1b5bc24ab595e787587
2014-11-27 09:11:06 +03:00
Barnaby Court 2f6ac5781e Add support for the NodeLabel Parameter plugin
Add support for using the NodeLabel Parameter plugin to
specify which node should run a job when triggering a
parameterized build.

Requires the Jenkins NodeLabel Parameter Plugin:
https://wiki.jenkins-ci.org/display/JENKINS/NodeLabel+Parameter+Plugin

Change-Id: Ie947a2a3069b477419db7eaa35307088712467e3
2014-10-24 04:57:00 -04:00