Remove old GS-Cleanup Job from Apex 71/34571/2
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 10 May 2017 19:37:05 +0000 (12:37 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Wed, 17 May 2017 20:27:59 +0000 (13:27 -0700)
This job template isn't attached to a job, so it doesn't even get
executed; Further, artifact cleanup is take care of by
'releng-artifact-cleanup-daily-{stream}'

Change-Id: I3e4d0339650f0507b8a3cd1512c2ca643f4fe75a
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb/apex/apex-gs-cleanup.sh [deleted file]
jjb/apex/apex.yml

diff --git a/jjb/apex/apex-gs-cleanup.sh b/jjb/apex/apex-gs-cleanup.sh
deleted file mode 100755 (executable)
index 1629aa8..0000000
+++ /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
index d8b9eb1..a964607 100644 (file)
                 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
 ########################
         - shell:
             !include-raw: ./apex-download-artifact.sh
 
-- builder:
-    name: 'apex-gs-cleanup'
-    builders:
-        - shell:
-            !include-raw: ./apex-gs-cleanup.sh
-
 - builder:
     name: 'apex-deploy'
     builders:
     name: 'apex-danube'
     triggers:
         - timed: '0 12 * * *'
-- trigger:
-    name: 'apex-gs-clean-{stream}'
-    triggers:
-        - timed: '0 2 * * *'
\ No newline at end of file