Change-Id: Ie15fc59fba1a4efc475136bf30ed4c94045203d2
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
openstack-cloud: example-cloud
openstack-image-cleanup: false
openstack-image-cleanup-age: 42
openstack-cloud: example-cloud
openstack-image-cleanup: false
openstack-image-cleanup-age: 42
+ openstack-image-protect: false
(default: true)
:openstack-image-cleanup-age: Age in days of image before marking it for
removal. (default: 30)
(default: true)
:openstack-image-cleanup-age: Age in days of image before marking it for
removal. (default: 30)
+ :openstack-image-protect: Whether or not to run the image protect script.
+ (default: true)
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
:stream: Keyword that can be used to represent a release code-name.
Often the same as the branch. (default: master)
:submodule-recursive: Whether to checkout submodules recursively.
openstack-cloud: vex
openstack-image-cleanup: true
openstack-image-cleanup-age: 30
openstack-cloud: vex
openstack-image-cleanup: true
openstack-image-cleanup-age: 30
+ openstack-image-protect: true
stream: master
submodule-timeout: 10
stream: master
submodule-timeout: 10
- inject:
properties-content: OS_CLOUD={openstack-cloud}
# Images
- inject:
properties-content: OS_CLOUD={openstack-cloud}
# Images
- - shell: !include-raw-escape: ../shell/openstack-protect-in-use-images.sh
+ - conditional-step:
+ condition-kind: boolean-expression
+ condition-expression: '{openstack-image-protect}'
+ steps:
+ - shell: !include-raw-escape: ../shell/openstack-protect-in-use-images.sh
- conditional-step:
condition-kind: boolean-expression
condition-expression: '{openstack-image-cleanup}'
- conditional-step:
condition-kind: boolean-expression
condition-expression: '{openstack-image-cleanup}'