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:
parent
5fe5b6089d
commit
65b868a0b6
@ -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):
|
||||
|
@ -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>
|
||||
|
@ -2,3 +2,4 @@ properties:
|
||||
- delivery-pipeline:
|
||||
stage: Stage
|
||||
task: Task
|
||||
description: Task-Description
|
||||
|
@ -4,6 +4,7 @@
|
||||
<se.diabol.jenkins.pipeline.PipelineProperty>
|
||||
<stageName/>
|
||||
<taskName/>
|
||||
<descriptionTemplate/>
|
||||
</se.diabol.jenkins.pipeline.PipelineProperty>
|
||||
</properties>
|
||||
</project>
|
||||
|
Loading…
Reference in New Issue
Block a user