# The pipeline scripts are maintained in Nordix/metal3-dev-tools repository.
- job-template:
- id: fullstack_project-infra_building
- name: '{job_prefix}_fullstack_project-infra_building'
+ id: fullstack_project_infra_building_test_prow
+ name: '{job_prefix}-project-infra-fullstack-test'
description: "Build and test a Metal3 cluster stack from source."
project-type: pipeline
defaults: global
name: IPA_REPO
default: 'https://opendev.org/openstack/ironic-python-agent.git'
description: "The default Git repository of IPA"
- - string:
- name: IPA_REF
- default: 'HEAD'
- description: 'Ironic Python Agent repository reference to use for the build. Example: refs/changes/84/800084/22'
- string:
name: IPA_BRANCH
default: 'master'
default: 'HEAD'
description: 'Cluster API Git repository commit hash to build'
- string:
- name: PROJECT_REPO_ORG
- default: '{repo[org]}'
+ name: STAGING
+ default: 'false'
+ description: 'Configures IPA builder upload mode (staging/review)'
+ # Parameters set by Prow
+ - string:
+ 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]}'
+ name: REPO_NAME
+ default: 'project-infra'
description: 'Project github repo name'
- string:
- name: ghprbActualCommit
+ name: PULL_BASE_REF
default: 'main'
- description: 'CI Repo branch for triggering manual build'
- - string:
- name: ghprbAuthorRepoGitUrl
- default: 'https://github.com/{repo[org]}/{repo[name]}.git'
- description: 'CI Repo URL for triggering manual build'
+ description: 'Ref name of the base branch'
- string:
- name: ghprbTargetBranch
+ name: PULL_PULL_SHA
default: 'main'
- description: 'Target branch of the PR'
+ description: 'Pull request head SHA'
- string:
- name: STAGING
- default: 'false'
- description: 'Configures IPA builder upload mode (staging/review)'
+ name: PULL_NUMBER
+ description: 'Pull request number'
+ # End of Prow parameters
properties:
- build-discarder:
num-to-keep: 300
artifact-days-to-keep: -1
artifact-num-to-keep: -1
- - github:
- url: https://github.com/{repo[org]}/{repo[name]}
- triggers:
- - github-pull-request:
- admin-list:
- - '{ci_github_admin_user}'
- org-list: "{ci_github_whitelist_org}"
- cron: 'H/5 * * * *'
- auth-id: "{ci_ghprb_auth_id}"
- trigger-phrase: '.*?/test-metal3-fullstack.*?'
- skip-build-phrase: '/skip-test'
- 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'
- status-context: "test-metal3-fullstack"
- success-status: "Passed"
- failure-status: "Failed"
- error-status: "Error"
- cancel-builds-on-update: True
+ triggers: []
+
pipeline-scm:
scm:
- git:
honor-refspec: True
shallow-clone: False
included-regions:
- - "jenkins/scripts/ipa_builder_elements/.*"
- - "jenkins/scripts/build_ipa.sh"
- - "jenkins/scripts/run_build_ironic.sh"
- - "jenkins/scripts/start_centos_fullstack_build.sh"
- script-path: "jenkins/jobs/fullstack_building.pipeline"
+ - "jenkins/scripts/artifactory/.*"
+ - "jenkins/scripts/harbor/.*"
+ - "jenkins/scripts/dynamic_worker_workflow/ipa_builder_elements/.*"
+ - "jenkins/scripts/dynamic_worker_workflow/build_ipa.sh"
+ - "jenkins/scripts/dynamic_worker_workflow/fullstack.sh"
+ - "jenkins/scripts/dynamic_worker_workflow/fullstack_build_ironic.sh"
+ script-path: "jenkins/jobs/dynamic_fullstack_building.pipeline"
lightweight-checkout: False
name: IPA_REPO
default: 'https://opendev.org/openstack/ironic-python-agent.git'
description: "The default Git repository of IPA"
- - string:
- name: IPA_REF
- default: 'HEAD'
- description: 'Ironic Python Agent repository reference to use for the build. Example: refs/changes/84/800084/22'
- string:
name: IPA_BRANCH
default: 'master'
name: STAGING
default: 'true'
description: 'Configures IPA builder upload mode (staging/review)'
+ # Fakeing Prow parameters
+ - string:
+ name: REPO_OWNER
+ default: 'metal3-io'
+ description: 'Project github repo org name'
+ - string:
+ name: REPO_NAME
+ default: 'project-infra'
+ description: 'Project github repo name'
+ - string:
+ name: PULL_BASE_REF
+ default: 'main'
+ description: 'Ref name of the base branch'
+ - string:
+ name: PULL_PULL_SHA
+ default: 'main'
+ description: 'Pull request head SHA'
+ # End of fakeing Prow parameters
properties:
- github: