blob: d663c7afbd8d716a7ce167f011efd61b59b2a015 [file] [log] [blame]
Paul Sokolovskyd5fc7f62024-08-14 12:43:58 +03001- job:
2 name: tf-a-lts-cleanup
3 node: docker-amd64-tf-a-jammy
4 project-type: freestyle
5 concurrent: false
6 disabled: false
7 description: Cleanup stale LTS sandbox tags/branches
8 properties:
9 - build-discarder:
10 days-to-keep: 180
11 num-to-keep: 30
12 - authorization:
13 !include: authorization.yaml.inc
Paul Sokolovsky4d536d32024-08-14 14:38:47 +030014 triggers:
15 - timed: 'H 3 * * *'
Paul Sokolovskyd5fc7f62024-08-14 12:43:58 +030016 wrappers:
17 - credentials-binding:
18 - ssh-user-private-key:
19 credential-id: TFA_CI_BOT_USER_SSH_KEY
20 key-file-variable: CI_BOT_KEY
21 username-variable: CI_BOT_USERNAME
22 passphrase-variable: ''
23 - timestamps
24 builders:
25 - shell: |
26 #!/bin/bash
27 set -ex
28
29 mkdir -p ~/.ssh/
30 ssh-keyscan -p 29418 review.trustedfirmware.org >> ~/.ssh/known_hosts
31 export GIT_SSH_COMMAND="ssh -i $CI_BOT_KEY -o 'PubkeyAcceptedKeyTypes +ssh-rsa'"
32
33 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
34 cd tf-a-ci-scripts/lts
Paul Sokolovsky4d536d32024-08-14 14:38:47 +030035 ./lts-cleanup-sandbox-refs.py --user $CI_BOT_USERNAME --limit 1
Paul Sokolovskyfd18c102024-08-14 13:35:35 +030036 publishers:
37 - email:
38 recipients: 'paul.sokolovsky@linaro.org'