######################
build-timeout: 45
+ packer-cloud-settings: packer-cloud-env
wrappers:
- lf-infra-wrappers:
- lf_packer_merge_builders: &lf_packer_merge_builders
name: lf-packer-merge-builders
# Adds builders section common to merge packer jobs.
+ # {packer-cloud-settings} is passed from the project, defines the managed
+ # file-id name created in Jenkins
+ # (default: packer-cloud-env)
+ # {packer-version}: is global defined in job group level, the version number
+ # can be updated to install the latest version of packer.
+ # {platforms}: defines the packer platform file, passed from the project.
+ # {template}: defines the packer template file, passed from the project.
builders:
- lf-infra-packer-validate:
+ packer-cloud-settings: '{packer-cloud-settings}'
packer-version: '{packer-version}'
- lf-infra-packer-build:
+ packer-cloud-settings: '{packer-cloud-settings}'
+ packer-version: '{packer-version}'
platform: '{platforms}'
template: '{templates}'
- packer-version: '{packer-version}'
- lf_packer_verify_builders: &lf_packer_verify_builders
# Adds builders section common to verify packer jobs.
+ # {packer-cloud-settings} is passed from the project, defines the managed
+ # file-id name created in Jenkins
+ # (default: packer-cloud-env)
+ # {packer-version}: is global defined in job group level, the version number
+ # can be updated to install the latest version of packer.
name: lf-packer-verify-builders
builders:
- lf-infra-packer-validate:
+ packer-cloud-settings: '{packer-cloud-settings}'
packer-version: '{packer-version}'
- parameter:
jobs:
- "{project-name}-packer-jobs"
+ packer-cloud-settings: ci-packer-cloud-env
project-name: gerrit-ciman
platforms:
- centos
jobs:
- "{project-name}-github-packer-jobs"
+ packer-cloud-settings: ci-packer-cloud-env
project-name: github-ciman
platforms:
- centos