- lf_packer: &lf_packer_common
name: lf-packer-common
# Adds wrappers and parameters sections common to packer jobs.
+
+ ######################
+ # Default parameters #
+ ######################
+
+ build-timeout: 45
+ packer-cloud-settings: packer-cloud-env
+
wrappers:
- lf-infra-wrappers:
- build-timeout: 60
+ build-timeout: '{build-timeout}'
jenkins-ssh-credential: '{jenkins-ssh-credential}'
parameters:
- 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:
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
+ - timed: '00 10 1 * *'
- gerrit:
server-name: '{gerrit-server-name}'
trigger-on:
# Default parameters #
######################
+ build-timeout: 10
git-url: '$GIT_URL/$GERRIT_PROJECT'
#####################
jenkins-ssh-credential: '{jenkins-ssh-credential}'
triggers:
+ - timed: '00 10 1 * *'
- github
- pollscm:
cron: ''
# yamllint disable-line rule:key-duplicates
<<: *lf_packer_verify_builders
+ ######################
+ # Default parameters #
+ ######################
+
+ build-timeout: 10
+
#####################
# Job Configuration #
#####################