Add packer image $NAME in description setting 15/16315/3
authorAnil Belur <abelur@linuxfoundation.org>
Wed, 24 Jul 2019 12:17:27 +0000 (22:17 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 24 Jul 2019 12:17:27 +0000 (22:17 +1000)
Add packer image $NAME in description setting so that the image name
is displayed above the job logs URL. This saves a little time from
looking for the image name in the console logs.

Tested:
https://jenkins.opendaylight.org/releng/view/packer/job/builder-packer-merge-centos-7-builder/57/

Issue: RELENG-2230
Change-Id: Id86ee9795e1bfd50850c4833fc6f90545367f113
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
jjb/lf-ci-jobs.yaml
releasenotes/notes/add-image-name-to-desc-90aa357d3e65af3e.yaml [new file with mode: 0644]

index 45691fb..a90424c 100644 (file)
           platform: "{platforms}"
           template: "{templates}"
       - description-setter:
-          description: ".*Creating the image:(.*)"
+          regexp: '(\s+.*)(ZZCI\s+.*\d+-\d+\.\d+)'
+          description: 'Image: \2'
 
 - job-template:
     name: "{project-name}-packer-merge-{platforms}-{templates}"
diff --git a/releasenotes/notes/add-image-name-to-desc-90aa357d3e65af3e.yaml b/releasenotes/notes/add-image-name-to-desc-90aa357d3e65af3e.yaml
new file mode 100644 (file)
index 0000000..2344295
--- /dev/null
@@ -0,0 +1,6 @@
+---
+features:
+  - |
+    Add packer image $NAME to the description setting so that the image name
+    is displayed above the job logs URL. This saves a some time from
+    looking for the image name in the jobs logs.