X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;ds=inline;f=jjb%2Flf-macros.yaml;h=d59a96449bfd972cb3fa1825c18e059f74b335fb;hb=refs%2Fchanges%2F72%2F12672%2F3;hp=10b070d88504825d590267ff1378f6692c827784;hpb=a9a25596239cc8b5fd374cf742764fe5a9c2a3d7;p=releng%2Fglobal-jjb.git diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index 10b070d8..d59a9644 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -497,6 +497,24 @@ - '**/*.jenkins-trigger' fail-build: false +- publisher: + name: lf-stack-delete + publishers: + - postbuildscript: + builders: + - role: BOTH + build-on: + - ABORTED + - FAILURE + - SUCCESS + - UNSTABLE + build-steps: + - shell: | + #!/bin/bash -l + echo "Deleting $STACK_NAME" + lftools openstack stack delete "$STACK_NAME" + mark-unstable-if-failed: false + ####### # SCM # #######