diff --git a/jenkins_jobs/modules/properties.py b/jenkins_jobs/modules/properties.py index a7c505d7b..fc3677581 100644 --- a/jenkins_jobs/modules/properties.py +++ b/jenkins_jobs/modules/properties.py @@ -579,6 +579,8 @@ def delivery_pipeline(parser, xml_parent, data): Requires the Jenkins :jenkins-wiki:`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): diff --git a/tests/properties/fixtures/delivery-pipeline1.xml b/tests/properties/fixtures/delivery-pipeline1.xml index 94ff3ef15..c62e23f90 100644 --- a/tests/properties/fixtures/delivery-pipeline1.xml +++ b/tests/properties/fixtures/delivery-pipeline1.xml @@ -4,6 +4,7 @@ Stage Task + Task-Description diff --git a/tests/properties/fixtures/delivery-pipeline1.yaml b/tests/properties/fixtures/delivery-pipeline1.yaml index 661388016..c8013bcba 100644 --- a/tests/properties/fixtures/delivery-pipeline1.yaml +++ b/tests/properties/fixtures/delivery-pipeline1.yaml @@ -2,3 +2,4 @@ properties: - delivery-pipeline: stage: Stage task: Task + description: Task-Description diff --git a/tests/properties/fixtures/delivery-pipeline2.xml b/tests/properties/fixtures/delivery-pipeline2.xml index 2a41a7560..f34569ff2 100644 --- a/tests/properties/fixtures/delivery-pipeline2.xml +++ b/tests/properties/fixtures/delivery-pipeline2.xml @@ -4,6 +4,7 @@ +