blob: 7dc6cf17e87f56447f6d78ef21f8e17b6f8bb21a [file] [log] [blame]
Arthur Sheeb8a9d02024-03-13 09:06:21 -07001- 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 Sokolovskyc6c0d862024-10-22 14:59:12 +07008 description: |
Paul Sokolovskyd9f65b52024-10-22 13:50:58 +07009 Generate LTS triage report every Friday
Arthur Sheeb8a9d02024-03-13 09:06:21 -070010 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - build-discarder:
12 days-to-keep: 45
13 num-to-keep: 200
14 artifact-num-to-keep: 100
Arthur Sheeb8a9d02024-03-13 09:06:21 -070015 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010016 - 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
26 default: lts-v2.8 lts-v2.10 lts-v2.12
27 description: |
28 LTS branch
Arthur Sheeb8a9d02024-03-13 09:06:21 -070029 triggers:
Chris Kay675db4f2025-06-24 14:14:34 +010030 - timed: H 5 * * 5 # Run the job at 00:00 every Friday @CTS timezone
Arthur Sheeb8a9d02024-03-13 09:06:21 -070031 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010032 - 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: ""
Arthur Sheeb8a9d02024-03-13 09:06:21 -070042 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010043 - shell: |
44 #!/bin/bash
45 set -ex
Arthur Sheeb8a9d02024-03-13 09:06:21 -070046
Chris Kay675db4f2025-06-24 14:14:34 +010047 DATE=$(date +'%Y-%m-%d')
48 START_PATH=$(pwd)
49 LTS_TMP_DIR=$(mktemp -d -p ./)
50 cd $LTS_TMP_DIR
Arthur Sheeb8a9d02024-03-13 09:06:21 -070051
Chris Kay675db4f2025-06-24 14:14:34 +010052 git clone ${TFA_CI_SCRIPT_REPO}
Arthur Sheeb8a9d02024-03-13 09:06:21 -070053
Chris Kay675db4f2025-06-24 14:14:34 +010054 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}
Arthur Sheeb8a9d02024-03-13 09:06:21 -070063
Chris Kay675db4f2025-06-24 14:14:34 +010064 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
Arthur Sheeb8a9d02024-03-13 09:06:21 -070068
Chris Kay675db4f2025-06-24 14:14:34 +010069 cd ${START_PATH}
70 rm -rf ${LTS_TMP_DIR}
Arthur Sheeb8a9d02024-03-13 09:06:21 -070071 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +010072 - conditional-publisher:
Arthur Sheeb8a9d02024-03-13 09:06:21 -070073 - condition-kind: file-exists
74 on-evaluation-failure: dont-run
75 condition-filename: got_report.txt
76 condition-basedir: workspace
77 action:
Chris Kay675db4f2025-06-24 14:14:34 +010078 - 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
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'