Fix automation of node image building
[infra/cicd.git] / jjb / airship / job_openstack_node_image_building.yml
index 1f1d23ac68ba48832368d9923ad2eec45d9de852..f19144a8b114472b6cafc7ae90abe622918e3d6a 100644 (file)
@@ -37,7 +37,7 @@
         name: KUBERNETES_VERSION
         default: "v1.22.0"
         description: 'Kubernetes version'
-  
+
     properties:
     - build-discarder:
         days-to-keep: 30
 
     triggers:
       - timed: "0 5 */15 * *"
-      - github
+      - github-pull-request:
+          included-regions:
+                - "ci/images/.*"
+                - "ci/scripts/image_scripts/.*"
 
     pipeline-scm:
       scm:
@@ -61,8 +64,5 @@
           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