delivery-pipeline: support task description template

as documented in

    https://github.com/Diabol/delivery-pipeline-plugin/pull/138

Change-Id: Ic6d7e54ea55c235deeb80240bb5c10e84bcff30d
This commit is contained in:
Guido Günther 2015-12-09 11:46:15 +01:00
parent 5fe5b6089d
commit 65b868a0b6
4 changed files with 7 additions and 0 deletions

View File

@ -579,6 +579,8 @@ def delivery_pipeline(parser, xml_parent, data):
Requires the Jenkins :jenkins-wiki:`Delivery Pipeline Plugin
<Delivery+Pipeline+Plugin>`.
:arg str description: task description template for this job
(default: '')
:arg str stage: Name of the stage for this job (default: '')
:arg str task: Name of the task for this job (default: '')
@ -593,6 +595,8 @@ def delivery_pipeline(parser, xml_parent, data):
'PipelineProperty')
XML.SubElement(pipeline, 'stageName').text = data.get('stage', '')
XML.SubElement(pipeline, 'taskName').text = data.get('task', '')
XML.SubElement(pipeline, 'descriptionTemplate').text = str(
data.get('description', ''))
def zeromq_event(parser, xml_parent, data):

View File

@ -4,6 +4,7 @@
<se.diabol.jenkins.pipeline.PipelineProperty>
<stageName>Stage</stageName>
<taskName>Task</taskName>
<descriptionTemplate>Task-Description</descriptionTemplate>
</se.diabol.jenkins.pipeline.PipelineProperty>
</properties>
</project>

View File

@ -2,3 +2,4 @@ properties:
- delivery-pipeline:
stage: Stage
task: Task
description: Task-Description

View File

@ -4,6 +4,7 @@
<se.diabol.jenkins.pipeline.PipelineProperty>
<stageName/>
<taskName/>
<descriptionTemplate/>
</se.diabol.jenkins.pipeline.PipelineProperty>
</properties>
</project>