Update rtd-merge to also trigger on tag changes 27/15227/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 8 Apr 2019 03:41:07 +0000 (11:41 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 8 Apr 2019 03:43:57 +0000 (11:43 +0800)
When we release a tag, it should also trigger a rtd-merge build
so that the doc release note link is updated appropriately.

Change-Id: I49f6555b707018cca4042917c4193138456dafeb
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/lf-rtd-jobs.yaml
releasenotes/notes/rtd-merge-tag-build-cd44aa744c58b27b.yaml [new file with mode: 0644]

index d1333d3..9f686e2 100644 (file)
@@ -79,6 +79,7 @@
       - change-merged-event
       - comment-added-contains-event:
           comment-contains-value: remerge$
+      - ref-updated-event
 
     #####################
     # Job Configuration #
               branches:
                 - branch-compare-type: 'ANT'
                   branch-pattern: '**/{branch}'
+                - branch-compare-type: 'ANT'
+                  branch-pattern: 'refs/tags/**'
               file-paths: '{obj:gerrit_trigger_file_paths}'
 
 - job-template:
diff --git a/releasenotes/notes/rtd-merge-tag-build-cd44aa744c58b27b.yaml b/releasenotes/notes/rtd-merge-tag-build-cd44aa744c58b27b.yaml
new file mode 100644 (file)
index 0000000..9312e1f
--- /dev/null
@@ -0,0 +1,5 @@
+---
+fixes:
+  - |
+    Tag releases will now trigger a docs build to regenerate and update the
+    release note link.