blob: d516177e6d9a907b6f700e0067564f602855e3b0 [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
14 wrappers:
15 - credentials-binding:
16 - ssh-user-private-key:
17 credential-id: TFA_CI_BOT_USER_SSH_KEY
18 key-file-variable: CI_BOT_KEY
19 username-variable: CI_BOT_USERNAME
20 passphrase-variable: ''
21 - timestamps
22 builders:
23 - shell: |
24 #!/bin/bash
25 set -ex
26
27 mkdir -p ~/.ssh/
28 ssh-keyscan -p 29418 review.trustedfirmware.org >> ~/.ssh/known_hosts
29 export GIT_SSH_COMMAND="ssh -i $CI_BOT_KEY -o 'PubkeyAcceptedKeyTypes +ssh-rsa'"
30
31 git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
32 cd tf-a-ci-scripts/lts
33 ./lts-cleanup-sandbox-refs.py --dry-run --user $CI_BOT_USERNAME --limit 1