+- builder:
+ name: lf-infra-packer-build
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: '{packer-cloud-settings}'
+ variable: CLOUDENV
+ - inject:
+ properties-content: |
+ PACKER_PLATFORM={platform}
+ PACKER_TEMPLATE={template}
+ PACKER_VERSION={packer-version}
+ - shell: !include-raw-escape:
+ - ../shell/packer-install.sh
+ - ../shell/packer-build.sh
+ - shell: !include-raw:
+ - ../shell/packer-clear-credentials.sh
+
+- builder:
+ name: lf-infra-packer-validate
+ builders:
+ - config-file-provider:
+ files:
+ - file-id: '{packer-cloud-settings}'
+ variable: 'CLOUDENV'
+ - inject:
+ properties-content: |
+ PACKER_VERSION={packer-version}
+ - shell: !include-raw-escape:
+ - ../shell/packer-install.sh
+ - ../shell/packer-validate.sh
+ - shell: !include-raw:
+ - ../shell/packer-clear-credentials.sh
+
+- builder:
+ name: lf-infra-push-gerrit-patch
+ builders:
+ - inject:
+ properties-content: |
+ PROJECT='{project}'
+ GERRIT_COMMIT_MESSAGE='{gerrit-commit-message}'
+ GERRIT_HOST='{gerrit-host}'
+ GERRIT_TOPIC='{gerrit-topic}'
+ GERRIT_USER='{gerrit-user}'
+ REVIEWERS_EMAIL='{reviewers-email}'
+ - shell: !include-raw-escape: ../shell/gerrit-push-patch.sh
+