Arthur She | eb8a9d0 | 2024-03-13 09:06:21 -0700 | [diff] [blame] | 1 | - job: |
| 2 | name: tf-a-lts-triage-v2 |
| 3 | node: docker-amd64-tf-a-jammy |
| 4 | project-type: freestyle |
| 5 | concurrent: true |
| 6 | disabled: false |
| 7 | defaults: global |
Paul Sokolovsky | c6c0d86 | 2024-10-22 14:59:12 +0700 | [diff] [blame] | 8 | description: | |
Paul Sokolovsky | d9f65b5 | 2024-10-22 13:50:58 +0700 | [diff] [blame] | 9 | Generate LTS triage report every Friday |
Arthur She | eb8a9d0 | 2024-03-13 09:06:21 -0700 | [diff] [blame] | 10 | properties: |
| 11 | - build-discarder: |
| 12 | days-to-keep: 45 |
| 13 | num-to-keep: 200 |
| 14 | artifact-num-to-keep: 100 |
| 15 | parameters: |
| 16 | - string: |
| 17 | name: TFA_REPO |
| 18 | default: 'https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git' |
| 19 | description: The trusted-firmware-a repo to clone from |
| 20 | - string: |
| 21 | name: TFA_CI_SCRIPT_REPO |
| 22 | default: 'https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git' |
| 23 | description: The tf-a-ci-script repo to clone from |
| 24 | - string: |
| 25 | name: LTS_BRANCHES |
Yann Gautier | ebc55d9 | 2025-02-14 18:37:29 +0100 | [diff] [blame] | 26 | default: 'lts-v2.8 lts-v2.10 lts-v2.12' |
Arthur She | eb8a9d0 | 2024-03-13 09:06:21 -0700 | [diff] [blame] | 27 | description: | |
| 28 | LTS branch |
Saheer Babu | 75aafc9 | 2025-02-11 10:04:19 +0000 | [diff] [blame] | 29 | # triggers: |
| 30 | # - timed: "H 5 * * 5" # Run the job at 00:00 every Friday @CTS timezone |
Arthur She | eb8a9d0 | 2024-03-13 09:06:21 -0700 | [diff] [blame] | 31 | wrappers: |
| 32 | - timestamps |
| 33 | - timeout: |
| 34 | timeout: 30 |
| 35 | fail: true |
| 36 | - credentials-binding: |
| 37 | - ssh-user-private-key: |
| 38 | credential-id: TFA_CI_BOT_USER_SSH_KEY |
| 39 | key-file-variable: CI_BOT_KEY |
| 40 | username-variable: CI_BOT_USERNAME |
| 41 | passphrase-variable: '' |
| 42 | builders: |
| 43 | - shell: | |
| 44 | #!/bin/bash |
| 45 | set -ex |
| 46 | |
| 47 | DATE=$(date +'%Y-%m-%d') |
| 48 | START_PATH=$(pwd) |
| 49 | LTS_TMP_DIR=$(mktemp -d -p ./) |
| 50 | cd $LTS_TMP_DIR |
| 51 | |
| 52 | git clone ${TFA_CI_SCRIPT_REPO} |
| 53 | |
| 54 | TFA_TMP_DIR=$(mktemp -d -p ./) |
| 55 | cd ${TFA_TMP_DIR} |
| 56 | git clone ${TFA_REPO} -b integration ./ |
| 57 | LTS_REPO_PATH=$(pwd) |
| 58 | cd - |
| 59 | for b in ${LTS_BRANCHES}; |
| 60 | do |
| 61 | CSV_REPORT="${b}_${DATE}.csv" |
| 62 | git -C ${LTS_REPO_PATH} checkout -b ${b} origin/${b} |
| 63 | |
| 64 | python3 tf-a-ci-scripts/lts/lts-triage-v2.py --repo ${LTS_REPO_PATH} --csv_path ${START_PATH}/${CSV_REPORT} \ |
| 65 | --lts ${b} --gerrit_user ${CI_BOT_USERNAME} --ssh_keyfile ${CI_BOT_KEY} --debug |
| 66 | [ -f "${START_PATH}/${CSV_REPORT}" ] && echo "${CSV_REPORT}" >> ${START_PATH}/got_report.txt |
| 67 | done |
| 68 | |
| 69 | cd ${START_PATH} |
| 70 | rm -rf ${LTS_TMP_DIR} |
Saheer Babu | f545d7a | 2025-02-11 10:11:10 +0000 | [diff] [blame] | 71 | # publishers: |
| 72 | # - conditional-publisher: |
| 73 | # - condition-kind: file-exists |
| 74 | # on-evaluation-failure: dont-run |
| 75 | # condition-filename: got_report.txt |
| 76 | # condition-basedir: workspace |
| 77 | # action: |
| 78 | # - archive: |
| 79 | # artifacts: '*.csv' |
| 80 | # - email-ext: |
| 81 | # always: true |
| 82 | # recipients: "arthur.she@linaro.org, bipin.ravi@arm.com, vwadekar@nvidia.com, joanna.farley@arm.com, lauren.wehrmeister@arm.com, yann.gautier@st.com, jidong@google.com, olivier.deprez@arm.com, Govindraj.Raja@arm.com, palmer@google.com" |
| 83 | # subject: "TF-A LTS Triage report" |
| 84 | # body: "Attached is the CSV report from the TF-A LTS Triage job this week." |
| 85 | # attachments: "*.csv" |