Skip to content

Commit

Permalink
Rewrite artifact-cleanup jobs
Browse files Browse the repository at this point in the history
Change-Id: I7f8766ed3d8fef0e1ab781a065d55f9a133f2fee
Signed-off-by: Cédric Ollivier <[email protected]>
  • Loading branch information
collivier committed Jan 6, 2023
1 parent 92324d1 commit 3cd4d94
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 40 deletions.
40 changes: 0 additions & 40 deletions jjb/releng/artifact-cleanup.yaml

This file was deleted.

31 changes: 31 additions & 0 deletions jjb/releng/releng-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -453,3 +453,34 @@
google-cloud-sdk -y
cd $WORKSPACE/utils/
./artifacts.opnfv.org.sh
- project:
name: releng-artifact-cleanup
jobs:
- releng-artifact-cleanup

- job-template:
name: releng-artifact-cleanup
scm:
- releng-scm:
ref: master
parameters:
- releng-jjb-node:
node: opnfv-build
triggers:
- timed: '@daily'
builders:
- releng-artifact-cleanup

- builder:
name: releng-artifact-cleanup
builders:
- shell: |
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee \
/etc/apt/sources.list.d/google-cloud-sdk.list
sudo apt-get -o DPkg::Lock::Timeout=300 update && \
sudo DEBIAN_FRONTEND=noninteractive apt-get \
-o DPkg::Lock::Timeout=300 install \
google-cloud-sdk -y
$WORKSPACE/utils/retention_script.sh

0 comments on commit 3cd4d94

Please sign in to comment.