Add trigger-with-no-params for join-trigger

Change-Id: I4d4f3b5b4cc22b5f0f26cb6d1f7ee1fb93316e8d
This commit is contained in:
Dawid Malinowski 2015-07-28 02:59:57 +02:00
parent f1c34249cc
commit e757129c7b
3 changed files with 7 additions and 2 deletions

View File

@ -263,6 +263,8 @@ def trigger_parameterized_builds(parser, xml_parent, data):
:arg str property-file: Use properties from file (optional)
:arg bool fail-on-missing: Blocks the triggering of the downstream jobs
if any of the files are not found in the workspace (default 'False')
:arg bool trigger-with-no-params: Trigger a build even when there are
currently no parameters defined (default 'False')
:arg str restrict-matrix-project: Filter that restricts the subset
of the combinations that the downstream project will run (optional)
:arg str node-label-name: Specify the Name for the NodeLabel parameter.
@ -364,7 +366,8 @@ def trigger_parameterized_builds(parser, xml_parent, data):
condition.text = project_def.get('condition', 'ALWAYS')
trigger_with_no_params = XML.SubElement(tconfig,
'triggerWithNoParameters')
trigger_with_no_params.text = 'false'
trigger_with_no_params.text = str(
project_def.get('trigger-with-no-params', False)).lower()
def trigger(parser, xml_parent, data):

View File

@ -12,7 +12,7 @@
</configs>
<projects>archive</projects>
<condition>ALWAYS</condition>
<triggerWithNoParameters>false</triggerWithNoParameters>
<triggerWithNoParameters>true</triggerWithNoParameters>
</hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
<hudson.plugins.parameterizedtrigger.BuildTriggerConfig>
<configs>

View File

@ -8,5 +8,7 @@ publishers:
- trigger-parameterized-builds:
- project: archive
current-parameters: true
trigger-with-no-params: true
- project: cleanup
current-parameters: true
trigger-with-no-params: false