blob: 8918c9a8721b175586029239fd8c37ecb844d522 [file] [log] [blame]
Arthur She41aa9422025-02-12 14:10:48 -08001- job:
2 name: tf-a-lts2.12-ci-gateway
3 node: docker-amd64-tf-a-lts2.12-jammy
4 project-type: freestyle
5 concurrent: true
6 disabled: false
7 defaults: global
8 description: |
9 Main job entry point for a Trusted Firmware A (TF-A) LTS v2.12 CI.
10 properties:
Chris Kay675db4f2025-06-24 14:14:34 +010011 - build-discarder:
12 days-to-keep: 15
13 - throttle:
14 option: project
15 enabled: true
16 max-per-node: 3
17 max-total: 10
Arthur She41aa9422025-02-12 14:10:48 -080018 wrappers:
Chris Kay675db4f2025-06-24 14:14:34 +010019 - credentials-binding:
20 - ssh-user-private-key:
21 credential-id: TFA_CI_BOT_USER_SSH_KEY
22 key-file-variable: CI_BOT_KEY
23 username-variable: CI_BOT_USERNAME
24 passphrase-variable: ""
25 - workspace-cleanup
26 - timeout:
27 timeout: 240
28 fail: true
29 - timestamps
Arthur She41aa9422025-02-12 14:10:48 -080030 parameters:
Chris Kay675db4f2025-06-24 14:14:34 +010031 - string:
32 name: TEST_GROUPS
33 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
34 description: |
35 White space separated list of test configs: can be mix of specific
36 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
37 group names (e.g., <code>l1 l2</code>).
38 - string:
39 name: TF_GERRIT_REFSPEC
40 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
41 description: |
42 trusted-firmware-a refspec to use. The lts-v2.12 branch is used by default.
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
46 description: |
47 tf-a-tests refspec to use. The lts-v2.12 branch is used by default.
48 - string:
49 name: TF_M_TESTS_GERRIT_REFSPEC
50 default: 53ddc58dcd57e1f5cf658b316d7d735335d58570
51 description: |
52 tf-m-tests refspec to use. The tfa_ci_dep_revision branch is used by default.
53 - string:
54 name: TF_M_EXTRAS_GERRIT_REFSPEC
55 default: 3ff04e40ff7f66c8cee087b6e5cbd8fb8c1bec01
56 description: |
57 tf-m-extras refspec to use. The tfa_ci_dep_revision branch is used by default.
58 - string:
59 name: SPM_REFSPEC
60 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
61 description: |
62 SPM(Hafnium) refspec to use. The lts-v2.12 branch is used by default.
63 - string:
64 name: CI_REFSPEC
65 default: +refs/heads/lts-v2.12:refs/remotes/origin/lts-v2.12
66 description: |
67 tf-a-ci-scripts refspec to use. The lts-v2.12 branch is used by default.
68 - string:
69 name: JOBS_REFSPEC
70 default: refs/heads/master
71 description: |
72 tf-a-job-configs refspec to use. The master branch is used by default.
73 - bool:
74 name: ENABLE_STATIC_CHECK
75 default: false
76 - string:
77 name: QA_TOOLS_REPO
78 default: https://git.gitlab.arm.com/tooling/qa-tools.git
79 - string:
80 name: QA_TOOLS_BRANCH
81 default: master
82 - string:
83 name: USE_TUXSUITE_FVP
84 default: 1
85 description: |
86 Whether to submit FVP tests via TuxSuite (instead of LAVA)
87 - string:
88 name: SHARE_FOLDER
89 default: /srv/shared/${JOB_NAME}/${BUILD_NUMBER}
90 description: Folder containing shared repositories for downstream pipeline jobs
Arthur She41aa9422025-02-12 14:10:48 -080091 builders:
Chris Kay675db4f2025-06-24 14:14:34 +010092 - shell: !include-raw: scripts/clone.sh
93 - shell: |
94 #!/bin/bash
95 set -e
96 CI_ROOT=${PWD}/tf-a-ci-scripts
97 export workspace=$PWD
98 export test_groups=$TEST_GROUPS
99 $CI_ROOT/script/gen_test_desc.py
100 cat << EOF > share.param
101 SHARE_FOLDER=${SHARE_FOLDER}
102 EOF
103 - trigger-builds:
104 - project:
105 - tf-a-lts2.12-builder
106 block: true
107 property-file: share.param
108 current-parameters: true
109 property-file-fail-on-missing: false
110 parameter-factories:
111 - factory: filebuild
112 file-pattern: '*.testprop'
113 no-files-found-action: FAIL
Arthur She41aa9422025-02-12 14:10:48 -0800114 publishers:
Chris Kay675db4f2025-06-24 14:14:34 +0100115 - postbuildscript:
116 builders:
117 - role: SLAVE
118 build-on:
119 - SUCCESS
120 - FAILURE
121 - UNSTABLE
122 - ABORTED
123 - NOT_BUILT
124 build-steps:
125 - shell: |-
126 #!/bin/bash -e
127 export CI_ROOT=${PWD}/tf-a-ci-scripts
128 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
129 - archive:
130 artifacts: report.json, report.html, merge/outdir/**
131 - groovy-postbuild:
132 script: !include-raw:
133 - tf-a-ci-gateway/postbuild.groovy