Paul Sokolovsky | d5fc7f6 | 2024-08-14 12:43:58 +0300 | [diff] [blame] | 1 | - 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 Babu | 75aafc9 | 2025-02-11 10:04:19 +0000 | [diff] [blame] | 12 | # triggers: |
| 13 | # - timed: 'H 3 * * 0,3' |
Paul Sokolovsky | d5fc7f6 | 2024-08-14 12:43:58 +0300 | [diff] [blame] | 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 |
Paul Sokolovsky | 4d536d3 | 2024-08-14 14:38:47 +0300 | [diff] [blame] | 33 | ./lts-cleanup-sandbox-refs.py --user $CI_BOT_USERNAME --limit 1 |