Paul Sokolovsky | b943e2c | 2023-02-28 20:19:54 +0700 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts-triage |
Paul Sokolovsky | e81da1f | 2023-08-07 00:28:18 +0300 | [diff] [blame] | 3 | node: docker-amd64-tf-a-jammy |
Paul Sokolovsky | b943e2c | 2023-02-28 20:19:54 +0700 | [diff] [blame] | 4 | project-type: freestyle |
| 5 | concurrent: true |
Arthur She | a0bacdd | 2024-04-11 13:28:45 -0700 | [diff] [blame] | 6 | disabled: true |
Paul Sokolovsky | b943e2c | 2023-02-28 20:19:54 +0700 | [diff] [blame] | 7 | defaults: global |
Paul Sokolovsky | d9f65b5 | 2024-10-22 13:50:58 +0700 | [diff] [blame] | 8 | description: | |
Paul Sokolovsky | 7aaf9fe | 2023-08-07 00:08:47 +0300 | [diff] [blame] | 9 | Job which triages incoming TF-A patches for suitability for LTS branch (https://linaro.atlassian.net/browse/TFC-395) |
Paul Sokolovsky | b943e2c | 2023-02-28 20:19:54 +0700 | [diff] [blame] | 10 | properties: |
| 11 | - build-discarder: |
| 12 | days-to-keep: 45 |
| 13 | num-to-keep: 200 |
| 14 | artifact-num-to-keep: 100 |
Paul Sokolovsky | b943e2c | 2023-02-28 20:19:54 +0700 | [diff] [blame] | 15 | parameters: |
| 16 | - string: |
| 17 | name: GERRIT_HOST |
| 18 | default: 'review.trustedfirmware.org' |
| 19 | - string: |
| 20 | name: GERRIT_PROJECT |
| 21 | default: 'TF-A/trusted-firmware-a' |
| 22 | description: | |
| 23 | Git project to build (also set by Gerrit trigger) |
| 24 | - string: |
| 25 | name: GERRIT_BRANCH |
| 26 | default: 'integration' |
| 27 | description: | |
| 28 | Git branch to build (also set by Gerrit trigger) |
| 29 | - string: |
| 30 | name: GERRIT_REFSPEC |
| 31 | default: '' |
| 32 | triggers: |
| 33 | - gerrit: |
| 34 | silent: true |
| 35 | server-name: 'review.trustedfirmware.org' |
| 36 | projects: |
| 37 | - branches: |
| 38 | - branch-compare-type: PLAIN |
| 39 | branch-pattern: integration |
| 40 | project-compare-type: PLAIN |
| 41 | project-pattern: 'TF-A/trusted-firmware-a' |
| 42 | trigger-on: |
| 43 | - patchset-created-event |
| 44 | wrappers: |
| 45 | - timestamps |
| 46 | - timeout: |
| 47 | timeout: 30 |
| 48 | fail: true |
| 49 | - credentials-binding: |
| 50 | - ssh-user-private-key: |
| 51 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 52 | key-file-variable: CI_BOT_KEY |
| 53 | username-variable: CI_BOT_USERNAME |
| 54 | passphrase-variable: '' |
| 55 | builders: |
| 56 | - shell: | |
| 57 | #!/bin/bash |
| 58 | set -ex |
| 59 | env | grep GERRIT |
| 60 | |
| 61 | sudo apt-get update -q |
| 62 | sudo apt-get install -y -q python3-git |
| 63 | pip install unidiff>=0.7.4 |
| 64 | |
| 65 | START_PATH=$(pwd) |
| 66 | LTS_TMP_DIR=$(mktemp -d -p ./) |
| 67 | cd $LTS_TMP_DIR |
| 68 | |
| 69 | git clone https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git |
| 70 | |
| 71 | TFA_TMP_DIR=$(mktemp -d -p ./) |
| 72 | cd $TFA_TMP_DIR |
| 73 | git clone https://${GERRIT_HOST}/${GERRIT_PROJECT} -b ${GERRIT_BRANCH} ./ |
| 74 | if [ -n "${GERRIT_REFSPEC}" ]; then |
| 75 | ( |
| 76 | # cd $(basename ${GERRIT_PROJECT}) |
| 77 | git fetch https://${GERRIT_HOST}/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD |
| 78 | git checkout -b to_check |
| 79 | ) |
| 80 | fi |
| 81 | |
| 82 | LTS_REPO_PATH=$(pwd) |
| 83 | # (cd $(basename ${GERRIT_PROJECT}); git log --oneline -n5) |
| 84 | cd - |
| 85 | |
| 86 | python3 tf-a-ci-scripts/lts/lts-triage.py --repo $LTS_REPO_PATH --email_path $START_PATH/email.txt --debug |
| 87 | |
| 88 | cd $START_PATH |
| 89 | rm -rf $LTS_TMP_DIR |
| 90 | publishers: |
| 91 | - conditional-publisher: |
| 92 | - condition-kind: file-exists |
| 93 | on-evaluation-failure: dont-run |
| 94 | condition-filename: email.txt |
| 95 | condition-basedir: workspace |
| 96 | action: |
| 97 | - email-ext: |
| 98 | always: true |
| 99 | subject: "TF-A LTS Triage Email" |
| 100 | body: '${FILE, path="email.txt"}' |
Govindraj Raja | 3ceffb0 | 2025-06-13 11:28:23 -0500 | [diff] [blame] | 101 | recipients: okash@google.com, bipin.ravi@arm.com, vwadekar@nvidia.com, joanna.farley@arm.com, lauren.wehrmeister@arm.com jidong@google.com |