Removing all deployments envs instead of snapshot of one job
Change-Id: Id76e39428b8bd795e83477f0733816dab989541b
This commit is contained in:
parent
2dc2609854
commit
f0d6c66927
|
@ -1,14 +1,14 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
# Removes snapshots of fuel-devops envs.
|
||||
# Removes all fuel-devops deployment envs.
|
||||
|
||||
|
||||
# CONFIGURATION:
|
||||
######################################################
|
||||
FUEL_DEVOPS_INSTALLATION_DIR="/home/jenkins/venv-fuel-devops-3.0"
|
||||
: ${FUEL_DEVOPS_ENV_NAME:="ccp-simple-deployment-env"}
|
||||
: ${FUEL_SNAPSHOT_NAME:="fresh"}
|
||||
|
||||
|
||||
source "${FUEL_DEVOPS_INSTALLATION_DIR}"/bin/activate
|
||||
dos.py snapshot-delete "${FUEL_DEVOPS_ENV_NAME}" "${FUEL_SNAPSHOT_NAME}"
|
||||
for f in `dos.py list | grep deployment`; do
|
||||
dos.py erase "${f}";
|
||||
done
|
|
@ -1,12 +1,12 @@
|
|||
- job:
|
||||
name: remove-all-snapshots
|
||||
name: remove-all-simple-deployment-envs
|
||||
description: |
|
||||
This job will trigger jobs for removing K8s snaphosts on all slaves.
|
||||
This job will trigger jobs for removing all simple deployment envs on all slaves.
|
||||
builders:
|
||||
- shell: |
|
||||
echo "Removing snaphosts on slaves"
|
||||
echo "Removing simple deployment envs from all slaves"
|
||||
- trigger-builds:
|
||||
- project: "remove-snapshots-simple-deployment"
|
||||
- project: "remove-simple-deployment-envs"
|
||||
parameter-factories:
|
||||
- factory: allnodesforlabel
|
||||
name: NODE
|
|
@ -1,18 +1,18 @@
|
|||
- job:
|
||||
name: remove-snapshots-simple-deployment
|
||||
name: remove-simple-deployment-envs
|
||||
builders:
|
||||
- inject:
|
||||
properties-content: |
|
||||
FUEL_DEVOPS_ENV_NAME=ccp-simple-deployment-env
|
||||
FUEL_DEVOPS_SNAPSHOT_NAME=fresh
|
||||
- shell:
|
||||
!include-raw 'builders/remove-snapshots.sh'
|
||||
!include-raw 'builders/remove-simple-deployment-envs.sh'
|
||||
concurrent: true
|
||||
properties:
|
||||
- heavy-job:
|
||||
weight: 6
|
||||
description: |
|
||||
Removes snapshot of K8s env for fuel-ccp simple deployment test.
|
||||
Removes envs for simple deployment tests.
|
||||
logrotate:
|
||||
daysToKeep: 14
|
||||
parameters:
|
|
@ -9,7 +9,7 @@
|
|||
- shell:
|
||||
!include-raw 'builders/update-vm-ubuntu-image.sh'
|
||||
- trigger-builds:
|
||||
- project: "remove-snapshots-simple-deployment"
|
||||
- project: "remove-simple-deployment-envs"
|
||||
same-node: true
|
||||
current-parameters: true
|
||||
concurrent: true
|
||||
|
|
Loading…
Reference in New Issue