+- lf_packer_file_paths: &lf_packer_file_paths
+ name: lf-packer-file-paths
+ file-paths:
+ # Common files for all projects
+ - compare-type: ANT
+ pattern: 'packer/vars/{platforms}.json'
+ - compare-type: ANT
+ pattern: 'packer/templates/{templates}.json'
+ - compare-type: ANT
+ pattern: 'packer/provision/{templates}.sh'
+ - compare-type: ANT
+ pattern: 'packer/provision/lib/**'
+
+- lf_jjb_merge_builders: &lf_jjb_merge_builders
+ name: lf-jjb-merge-builders
+ builders:
+ - lf-infra-jjbini
+ - shell: !include-raw-escape:
+ - ../shell/jjb-install.sh
+ - ../shell/jjb-merge-job.sh
+
+- lf_jjb_verify_builders: &lf_jjb_verify_builders
+ name: lf-jjb-verfy-builders
+ builders:
+ - lf-infra-jjbini
+ - shell: !include-raw-escape:
+ - ../shell/git-validate-jira-urls.sh
+ - ../shell/jjb-install.sh
+ - ../shell/jjb-verify-job.sh
+ - ../shell/jjb-check-unicode.sh
+ - lf-infra-gpg-verify-git-signature
+
+- lf_packer: &lf_packer_common
+ name: lf-packer-common
+ # Adds wrappers and parameters sections common to packer jobs.
+ wrappers:
+ - lf-infra-wrappers:
+ build-timeout: 60
+ jenkins-ssh-credential: '{jenkins-ssh-credential}'
+
+ parameters:
+ - lf-infra-parameters:
+ project: '{project}'
+ stream: '{stream}'
+ branch: '{branch}'
+ - lf-infra-packer-parameters:
+ packer-version: '{packer-version}'
+
+- lf_packer_merge_builders: &lf_packer_merge_builders
+ name: lf-packer-merge-builders
+ # Adds builders section common to merge packer jobs.
+ builders:
+ - lf-infra-packer-validate:
+ os-cloud-file-id: '{os-cloud-file-id}'
+ packer-version: '{packer-version}'
+ - lf-infra-packer-build:
+ platform: '{platforms}'
+ template: '{templates}'
+ os-cloud-file-id: '{os-cloud-file-id}'
+ packer-version: '{packer-version}'
+
+- lf_packer_verify_builders: &lf_packer_verify_builders
+ # Adds builders section common to verify packer jobs.
+ name: lf-packer-verify-builders
+ builders:
+ - lf-infra-packer-validate:
+ os-cloud-file-id: '{os-cloud-file-id}'
+ packer-version: '{packer-version}'
+