X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=sidebyside;f=jjb%2Flf-ci-jobs.yaml;h=2ede3e7b4b01df747b4bf88e160a58b278e00d18;hb=e35f8aa01680e9a8e86f0a9fc3091a8007a8ed21;hp=217879e07a9ffd98e74cc0dad7a7f8412db75dc9;hpb=af44374df0c6e82dac61918b5148c57c217a4900;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 217879e0..2ede3e7b 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -1241,6 +1241,7 @@ openstack-cloud: vex openstack-image-cleanup: true openstack-image-cleanup-age: 30 + openstack-image-protect: true stream: master submodule-timeout: 10 @@ -1286,7 +1287,11 @@ - 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}'