Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Migrate cleanup-stale-stacks cron script
[releng/global-jjb.git]
/
jjb
/
lf-ci-jobs.yaml
diff --git
a/jjb/lf-ci-jobs.yaml
b/jjb/lf-ci-jobs.yaml
index
b639775
..
61e74f3
100644
(file)
--- a/
jjb/lf-ci-jobs.yaml
+++ b/
jjb/lf-ci-jobs.yaml
@@
-1234,7
+1234,7
@@
branch: master
build-days-to-keep: 7
build-timeout: 10
branch: master
build-days-to-keep: 7
build-timeout: 10
- cron: '@
dai
ly'
+ cron: '@
hour
ly'
disable-job: false
git-url: '$GIT_URL/$PROJECT'
github-url: 'https://github.com'
disable-job: false
git-url: '$GIT_URL/$PROJECT'
github-url: 'https://github.com'
@@
-1242,6
+1242,7
@@
openstack-image-cleanup: true
openstack-image-cleanup-age: 30
openstack-image-protect: true
openstack-image-cleanup: true
openstack-image-cleanup-age: 30
openstack-image-protect: true
+ openstack-stack-cleanup: true
openstack-volume-cleanup: true
stream: master
submodule-timeout: 10
openstack-volume-cleanup: true
stream: master
submodule-timeout: 10
@@
-1265,6
+1266,11
@@
stream: '{stream}'
branch: '{branch}'
lftools-version: '{lftools-version}'
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:
wrappers:
- lf-infra-wrappers:
@@
-1287,6
+1293,12
@@
- lf-infra-pre-build
- inject:
properties-content: OS_CLOUD={openstack-cloud}
- 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
# Volumes
- conditional-step:
condition-kind: boolean-expression
# Volumes
- conditional-step:
condition-kind: boolean-expression