blob: 03183cd1e327fc0c18614cd7a0e9f2521861f7ff [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
Saheer Babu75aafc92025-02-11 10:04:19 +000012 # triggers:
13 # - timed: 'H 3 * * 0,3'
Paul Sokolovskyd5fc7f62024-08-14 12:43:58 +030014 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
Paul Sokolovsky4d536d32024-08-14 14:38:47 +030033 ./lts-cleanup-sandbox-refs.py --user $CI_BOT_USERNAME --limit 1