introduce dynamic periodic fullstack job
[infra/cicd.git] / jjb / metal3 / job_ironic_image_build_test.yml
index 1ce9c90488f298ffc16c4a9e5c6f04975b8cb86f..5ccd5e23e94866ef9a5c20c63166897a13bbc3dd 100644 (file)
@@ -1,4 +1,3 @@
----
 #
 # ============LICENSE_START=======================================================
 #  Copyright (C) 2019 Nordix Foundation.
         name: PROJECT_REPO_NAME
         default: '{repo}'
         description: 'Project github repo name'
+    - string:
+        name: ghprbActualCommit
+        default: 'main'
+        description: 'CI Repo branch for triggering manual build'
+    - string:
+        name: ghprbAuthorRepoGitUrl
+        default: 'https://github.com/{org}/{repo}.git'
+        description: 'CI Repo URL for triggering manual build'
+    - string:
+        name: ghprbTargetBranch
+        default: 'main'
+        description: 'Target branch of the PR'
     - string:
         name: PATCHFILE_CONTENT
         default: ''
     triggers:
     - github-pull-request:
         admin-list:
-          - '{ci_github_admin_user}'
+        - '{ci_github_admin_user}'
         org-list: "{ci_github_whitelist_org}"
         auth-id: "{ci_ghprb_auth_id}"
-        trigger-phrase: '((.|\n)*\s)?/test-ironic-image-build(\s(.|\n)*)?'
+        trigger-phrase: '.*?/test-ironic-image-build.*?'
+        cron: 'H/5 * * * *'
         only-trigger-phrase: True
         github-hooks: True
         permit-all: False
         auto-close-on-fail: False
         allow-whitelist-orgs-as-admins: True
-        white-list-target-branches: "main"
+        white-list-target-branches:
+        - 'main'
+        - 'release-23.1'
+        - 'release-24.0'
+        - 'release-24.1'
         status-context: "test-ironic-image-build"
         success-status: "Passed"
         failure-status: "Failed"
@@ -79,7 +95,7 @@
           url: "{ci_github_repo}"
           credentials-id: "{ci_github_jenkins_credentials_id}"
           branches:
-            - '{branch|main}'
+          - '{branch|main}'
           name: 'origin'
           refspec: '+refs/heads/*:refs/remotes/origin/*'
           wipe-workspace: True