X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=jjb%2Flf-ci-jobs.yaml;h=9b862bfea2800318485f5f3c33d1ae34beb863ea;hb=ec94b22a64e710af14e6f4f862a4d7ccb3a8e030;hp=217879e07a9ffd98e74cc0dad7a7f8412db75dc9;hpb=af8e2b4d31bbeae125bd09290acd0b55fa6ff7a7;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index 217879e0..9b862bfe 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -1234,13 +1234,17 @@ branch: master build-days-to-keep: 7 build-timeout: 10 - cron: '@daily' + cron: '@hourly' disable-job: false git-url: '$GIT_URL/$PROJECT' github-url: 'https://github.com' openstack-cloud: vex openstack-image-cleanup: true openstack-image-cleanup-age: 30 + openstack-image-protect: true + openstack-server-cleanup: true + openstack-stack-cleanup: true + openstack-volume-cleanup: true stream: master submodule-timeout: 10 @@ -1263,6 +1267,11 @@ stream: '{stream}' branch: '{branch}' lftools-version: '{lftools-version}' + - string: + name: JENKINS_URLS + default: '{jenkins-urls}' + description: | + Space separated list of Jenkins URLs to check for active builds. wrappers: - lf-infra-wrappers: @@ -1285,8 +1294,30 @@ - lf-infra-pre-build - inject: properties-content: OS_CLOUD={openstack-cloud} + # Stacks + - conditional-step: + condition-kind: boolean-expression + condition-expression: '{openstack-stack-cleanup}' + steps: + - shell: !include-raw-escape: ../shell/openstack-cleanup-orphaned-stacks.sh + # Servers + - conditional-step: + condition-kind: boolean-expression + condition-expression: '{openstack-server-cleanup}' + steps: + - shell: !include-raw-escape: ../shell/openstack-cleanup-orphaned-servers.sh + # Volumes + - conditional-step: + condition-kind: boolean-expression + condition-expression: '{openstack-volume-cleanup}' + steps: + - shell: !include-raw-escape: ../shell/openstack-cleanup-orphaned-volumes.sh # 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}'