Trigger node image building when there is a change in github repo 84/11084/7
authorSunnatillo <sunnat.samadov@est.tech>
Wed, 3 Nov 2021 11:02:59 +0000 (13:02 +0200)
committerSunnatillo <sunnat.samadov@est.tech>
Wed, 3 Nov 2021 12:59:13 +0000 (14:59 +0200)
This commit adds automation to start a job when there is a change
in ci/images/ and ci/scripts/image_scripts/ folders.

Change-Id: Ie870efa0027028000a93e585cd335762eb3df88d

jjb/airship/job_openstack_node_image_building.yml

index 8e257ee83acabe8c38ea16f627b7f7db75a491ec..1f1d23ac68ba48832368d9923ad2eec45d9de852 100644 (file)
@@ -47,6 +47,7 @@
 
     triggers:
       - timed: "0 5 */15 * *"
+      - github
 
     pipeline-scm:
       scm:
@@ -60,5 +61,8 @@
           wipe-workspace: True
           honor-refspec: True
           shallow-clone: False
+          included-regions:
+              - "ci/images/.*"
+              - "ci/scripts/image_scripts/.*"
       script-path: 'ci/jobs/{id}.pipeline'
       lightweight-checkout: False