diff options
-rw-r--r-- | screwdriver.yaml | 2 | ||||
-rwxr-xr-x | screwdriver/delete-old-artifactory-artifacts.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/screwdriver.yaml b/screwdriver.yaml index 0e2d55f2ad1..04dccf2c493 100644 --- a/screwdriver.yaml +++ b/screwdriver.yaml @@ -131,5 +131,5 @@ jobs: secrets: - JFROG_API_TOKEN steps: - - mirror: | + - cleanup: | screwdriver/delete-old-artifactory-artifacts.sh diff --git a/screwdriver/delete-old-artifactory-artifacts.sh b/screwdriver/delete-old-artifactory-artifacts.sh index 062e37fdaa1..431dbd221bf 100755 --- a/screwdriver/delete-old-artifactory-artifacts.sh +++ b/screwdriver/delete-old-artifactory-artifacts.sh @@ -25,7 +25,7 @@ for VERSION in $VERSIONS_TO_DELETE; do curl -sSL -H "content-type:text/plain" -H "Authorization: Bearer $JFROG_API_TOKEN" \ --data "items.find({ \"repo\": { \"\$eq\": \"vespa\" }, \"name\": {\"\$match\": \"vespa*$VERSION*\"} }).include(\"repo\", \"path\", \"name\")" \ "$ARTIFACTORY_URL/api/search/aql" \ - | jq -re ".results[]|\"$ARTIFACTORY_URL/artifactory/\(.repo)/\(.path)/\(.name)\"" >> $RPMS_TO_DELETE + | jq -re ".results[]|\"$ARTIFACTORY_URL/\(.repo)/\(.path)/\(.name)\"" >> $RPMS_TO_DELETE done echo "Deleting the following RPMs:" |