diff options
author | Trevor Bramwell <tbramwell@linuxfoundation.org> | 2017-05-22 21:52:27 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-05-22 21:52:27 +0000 |
commit | 3d39c8ea99b850b728f2b7753e139943bdcc0807 (patch) | |
tree | 5e3750938e361319bc5502d8dd2880cc32c79571 /jjb | |
parent | d040efc3be330026148c83e434a5d2b80c1543dc (diff) | |
parent | 04a5f0c39cbcfb7a4f47eccc6c9ecb297df346f1 (diff) |
Merge "Remove old GS-Cleanup Job from Apex"
Diffstat (limited to 'jjb')
-rwxr-xr-x | jjb/apex/apex-gs-cleanup.sh | 19 | ||||
-rw-r--r-- | jjb/apex/apex.yml | 34 |
2 files changed, 0 insertions, 53 deletions
diff --git a/jjb/apex/apex-gs-cleanup.sh b/jjb/apex/apex-gs-cleanup.sh deleted file mode 100755 index 1629aa85e..000000000 --- a/jjb/apex/apex-gs-cleanup.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash -set -o errexit -set -o nounset -set -o pipefail - -# log info to console -echo "Cleaning Google Storage" -echo "-----------------------" -echo - -thirty_days_ago=$(date -d "30 days ago" +"%Y%m%d") - -for i in $(gsutil ls gs://$GS_URL/*201?*); do - filedate=$(date -d "$(echo $i | grep -Eo 201[0-9]-?[0-9][0-9]-?[0-9][0-9])" +"%Y%m%d") - if [ $filedate -lt $thirty_days_ago ]; then - # gsutil indicates what it is removing so no need for output here - gsutil rm $i - fi -done diff --git a/jjb/apex/apex.yml b/jjb/apex/apex.yml index 495612388..861b713a0 100644 --- a/jjb/apex/apex.yml +++ b/jjb/apex/apex.yml @@ -1290,30 +1290,6 @@ abort-all-job: true git-revision: false -- job-template: - name: 'apex-gs-clean-{stream}' - - # Job template for clean - # - # Required Variables: - # stream: branch with - in place of / (eg. stable) - node: '{slave}' - - disabled: false - - parameters: - - project-parameter: - project: '{project}' - branch: '{branch}' - - apex-parameter: - gs-pathname: '{gs-pathname}' - - builders: - - 'apex-gs-clean' - - triggers: - - 'apex-gs-clean-{stream}' - ######################## # parameter macros ######################## @@ -1390,12 +1366,6 @@ !include-raw: ./apex-download-artifact.sh - builder: - name: 'apex-gs-cleanup' - builders: - - shell: - !include-raw: ./apex-gs-cleanup.sh - -- builder: name: 'apex-deploy' builders: - shell: @@ -1412,7 +1382,3 @@ name: 'apex-danube' triggers: - timed: '0 12 * * *' -- trigger: - name: 'apex-gs-clean-{stream}' - triggers: - - timed: '0 2 * * *'
\ No newline at end of file |