blob: 023da8ae61adb9439af2ada945026f51cee87360 [file] [log] [blame]
Zachary Leaf5a9a2772024-10-15 15:07:23 +01001- job:
2 name: tf-a-ci-gateway-tfa-next
3 node: docker-amd64-tf-a-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 Next (TF-A) CI
10 properties:
11 - build-discarder:
12 days-to-keep: 15
13 - throttle:
14 option: project
15 enabled: true
16 max-per-node: 3
17 max-total: 10
Zachary Leaf5a9a2772024-10-15 15:07:23 +010018 wrappers:
19 - 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
30 parameters:
31 - 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/master:refs/remotes/origin/master'
41 description: |
42 trusted-firmware-a refspec to use. The master branch is used by default.
43 - string:
44 name: TFTF_GERRIT_REFSPEC
45 default: '+refs/heads/master:refs/remotes/origin/master'
46 description: |
47 tf-a-tests refspec to use. The master branch is used by default.
48 - string:
49 name: TF_M_TESTS_GERRIT_REFSPEC
50 default: '+refs/heads/main:refs/remotes/origin/main'
51 description: |
52 tf-m-tests refspec to use. The main branch is used by default.
53 - string:
54 name: TF_M_EXTRAS_GERRIT_REFSPEC
55 default: '+refs/heads/main:refs/remotes/origin/main'
56 description: |
57 tf-m-extras refspec to use. The main branch is used by default.
58 - string:
59 name: SPM_REFSPEC
60 default: '+refs/heads/master:refs/remotes/origin/master'
61 description: |
62 SPM(Hafnium) refspec to use. The master branch is used by default.
63 - string:
Manish V Badarkhe08e108b2025-04-11 08:01:14 +010064 name: RMM_REFSPEC
65 default: '+refs/heads/main:refs/remotes/origin/main'
66 description: |
67 tf-rmm refspec to use. The main branch is used by default.
68 - string:
Zachary Leaf5a9a2772024-10-15 15:07:23 +010069 name: CI_REFSPEC
70 default: '+refs/heads/master:refs/remotes/origin/master'
71 description: |
72 tf-a-ci-scripts refspec to use. The master branch is used by default.
Saheer Babub495f032025-01-21 23:01:11 +000073 - string:
74 name: JOBS_REFSPEC
75 default: 'refs/heads/master'
76 description: |
77 tf-a-job-configs refspec to use. The master branch is used by default.
Zachary Leaf5a9a2772024-10-15 15:07:23 +010078 - bool:
79 name: ENABLE_STATIC_CHECK
80 default: false
81 - string:
82 name: QA_TOOLS_REPO
83 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
84 - string:
85 name: QA_TOOLS_BRANCH
86 default: 'master'
87 - string:
88 name: USE_TUXSUITE_FVP
89 default: 1
90 description: |
91 Whether to submit FVP tests via TuxSuite (instead of LAVA)
92 - string:
Saheer Babud972f302025-01-19 16:43:48 +000093 name: CLONE_REPOS
94 default: "tf-a-ci-scripts,trusted-firmware-a"
95 description: |
96 Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras)
97 - string:
Zachary Leaf5a9a2772024-10-15 15:07:23 +010098 name: SHARE_FOLDER
99 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
100 description: 'Folder containing shared repositories for downstream pipeline jobs'
101 builders:
102 - shell:
103 !include-raw: scripts/clone.sh
104 - shell: |
105 #!/bin/bash
106 set -e
107 CI_ROOT=${PWD}/tf-a-ci-scripts
108 export workspace=$PWD
109 export test_groups=$TEST_GROUPS
110 $CI_ROOT/script/gen_test_desc.py
111 cat << EOF > share.param
112 SHARE_FOLDER=${SHARE_FOLDER}
113 EOF
114 - trigger-builds:
115 - project:
116 - tf-a-builder-tfa-next
117 block: true
118 property-file: share.param
119 current-parameters: true
120 property-file-fail-on-missing: false
121 parameter-factories:
122 - factory: filebuild
123 file-pattern: '*.testprop'
124 no-files-found-action: FAIL
125 publishers:
126 - postbuildscript:
127 builders:
128 - role: SLAVE
129 build-on:
130 - SUCCESS
131 - FAILURE
132 - UNSTABLE
133 - ABORTED
134 - NOT_BUILT
135 build-steps:
136 - shell: |-
137 #!/bin/bash -e
138 export CI_ROOT=${PWD}/tf-a-ci-scripts
139 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
140 - archive:
141 artifacts: report.json, report.html, merge/outdir/**
142 - groovy-postbuild:
143 script:
144 !include-raw:
145 - tf-a-ci-gateway/postbuild.groovy