:build-days-to-keep: Days to keep build logs in Jenkins. (default: 7)
:build-timeout: Timeout in minutes before aborting build. (default: 10)
:git-url: URL clone project from. (default: $GIT_URL/$PROJECT)
+ :openstack: Packer template uses an OpenStack builder (default: true).
+ :openstack-cloud: Sets OS_CLOUD variable to the value of this parameter.
+ (default: vex).
:packer-cloud-settings: Name of settings file containing credentials
for the cloud that packer will build on. (default: packer-cloud-env)
:packer-version: Version of packer to install / use in build. (default: 1.0.2)
:Required parameters:
+ :openstack: Packer template uses an OpenStack builder (true|false).
+ :openstack-cloud: Sets OS_CLOUD variable to the value of this parameter.
:packer-cloud-settings: Cloud configuration file. Loaded on the build
server as CLOUDENV environment variable.
:packer-version: Version of packer to use.
######################
build-timeout: 10
+ openstack: true
+ openstack-cloud: vex
gerrit_verify_triggers:
- patchset-created-event:
builders:
- lf-infra-packer-validate:
+ openstack: '{openstack}'
+ openstack-cloud: '{openstack-cloud}'
packer-cloud-settings: '{packer-cloud-settings}'
packer-version: '{packer-version}'
- builder:
name: lf-infra-packer-validate
builders:
+ - conditional-step:
+ condition-kind: boolean-expression
+ condition-expression: '{openstack}'
+ steps:
+ - config-file-provider:
+ files:
+ - file-id: clouds-yaml
+ target: '$HOME/.config/openstack/clouds.yaml'
+ - inject:
+ properties-content: OS_CLOUD={openstack-cloud}
- config-file-provider:
files:
- file-id: '{packer-cloud-settings}'
- variable: 'CLOUDENV'
+ variable: CLOUDENV
- inject:
properties-content: |
PACKER_VERSION={packer-version}
--- /dev/null
+---
+fixes:
+ - |
+ Fix packer-verify job to correctly work with ``clouds.yaml`` config model
+ implemented in global-jjb v0.25.0.