Add branch name and remove triggers in metal3 container image build job 68/19768/3
authorHuy Mai <huy.mai@est.tech>
Fri, 27 Oct 2023 11:07:53 +0000 (14:07 +0300)
committerHuy Mai <huy.mai@est.tech>
Fri, 27 Oct 2023 12:12:21 +0000 (15:12 +0300)
Change-Id: I6dd2900fb2e924e28b798ad55d5717b8097984ba

jjb/metal3/job_container_image_building.yaml

index 9ab8cfc480db8bebfeff5e4596b63c4c18913777..989351f3323c1037e1b3ee05d4606483c51f84c6 100644 (file)
@@ -27,7 +27,7 @@
 - job-template:
     id: container_image_building
     name: '{job_prefix}_{image_name}_container_image_building'
-    description: "Builder job for container images for Metal3 CI"
+    description: 'Builder job for {image_name} container image for Metal3'
     project-type: pipeline
     defaults: global
     disabled: False
     parameters:
     - string:
         name: BUILD_CONTAINER_IMAGE_NAME
-        default: '${image_name}'
+        default: '{image_name}'
         description: 'Name of the container image to build'
+    - string:
+        name: BUILD_CONTAINER_IMAGE_BRANCH
+        default: 'main'
+        description: 'Target branch of the build'
 
     properties:
     - build-discarder:
@@ -47,9 +51,7 @@
     - github:
         url: '{repo}'
 
-    triggers:
-      - github
-
+    # No triggers. This job will be triggered by github actions
     pipeline-scm:
       scm:
       - git: