Remove ghprb and add prow pareameters in bml jobs
[infra/cicd.git] / jjb / metal3 / job_bml_periodic_integration_tests.yml
index 667a326c520f3c025b14899415a16a38f5985a38..dd366020c6bc2989c6a9522d169ef6f39ea638f7 100644 (file)
 
 - job-template:
     id: bml_periodic_integration_tests
-    name: '{job_prefix}_periodic_bml_integration_tests_{image_os}'
-    description: "CAPM3 v1beta1 main integration tests for {org}/{repo} on {image_os} in Bare Metal Lab."
+    name: '{job_prefix}-periodic-bml-integration_tests-{image_os}'
+    description: "CAPM3 v1beta1 periodic integration tests on {image_os} in Bare Metal Lab."
     project-type: pipeline
     defaults: global
     disabled: False
     concurrent: True
     parameters:
+    # Parameters set by Prow
     - string:
-        name: PROJECT_REPO_ORG
-        default: '{org}'
+        name: BUILD_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: PROW_JOB_ID
+        description: 'Used by Prow when triggering jobs'
+    - string:
+        name: REPO_OWNER
+        default: 'metal3-io'
         description: 'Project github repo org name'
     - string:
-        name: PROJECT_REPO_NAME
-        default: '{repo}'
+        name: REPO_NAME
+        default: 'metal3-dev-env'
         description: 'Project github repo name'
     - string:
-        name: ghprbActualCommit
+        name: PULL_BASE_REF
         default: 'main'
-        description: 'CI Repo branch for triggering manual build'
+        description: 'Ref name of the base branch'
     - string:
-        name: ghprbAuthorRepoGitUrl
-        default: 'https://github.com/{org}/{repo}.git'
-        description: 'CI Repo URL for triggering manual build'
-    - string:
-        name: ghprbTargetBranch
+        name: PULL_PULL_SHA
         default: 'main'
-        description: 'Target branch of the PR'
+        description: 'Pull request head SHA'
+    - string:
+        name: PULL_NUMBER
+        description: 'Pull request number'
+    # End of Prow parameters
     - string:
         name: IMAGE_OS
         default: '{image_os}'
     - string:
         name: CAPI_VERSION
         default: 'v1beta1'
-        description: 'Cluster API version.'
+        description: 'Cluster API version. E.g. v1beta1.'
     - string:
         name: CAPM3_VERSION
         default: 'v1beta1'
-        description: 'Cluster API provider Metal3 version.'
+        description: 'Cluster API provider Metal3 version. E.g. v1beta1.'
     - string:
         name: TARGET_NODE_MEMORY
         default: 4096
@@ -81,7 +88,7 @@
     - string:
         name: NUM_NODES
         default: 2
-        description: 'Number of baremetal servers.'
+        description: 'Number of baremetal servers'
 
     properties:
     - build-discarder: