blob: 54e4723a4b52038b6b76a17145d69c7c18f19b13 [file] [log] [blame]
Paul Sokolovsky209003d2024-01-31 23:34:16 +07001- job:
2 name: tf-a-lts2.10-ci-gateway
Paul Sokolovsky6067c522024-02-07 13:48:17 +07003 node: docker-amd64-tf-a-lts2.10-jammy
Paul Sokolovsky209003d2024-01-31 23:34:16 +07004 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) 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
18 - authorization:
19 !include: authorization.yaml.inc
20 wrappers:
21 - credentials-binding:
22 - ssh-user-private-key:
23 credential-id: TFA_CI_BOT_USER_SSH_KEY
24 key-file-variable: CI_BOT_KEY
25 username-variable: CI_BOT_USERNAME
26 passphrase-variable: ''
27 - workspace-cleanup
28 - timeout:
29 timeout: 240
30 fail: true
31 - timestamps
32 parameters:
33 - string:
34 name: TEST_GROUPS
35 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
36 description: |
37 White space separated list of test configs: can be mix of specific
38 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
39 group names (e.g., <code>l1 l2</code>).
40 - string:
41 name: TF_GERRIT_REFSPEC
42 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
43 description: |
44 trusted-firmware-a refspec to use. The master branch is used by default.
45 - string:
46 name: TFTF_GERRIT_REFSPEC
47 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
48 description: |
49 tf-a-tests refspec to use. The master branch is used by default.
50 - string:
51 name: TF_M_TESTS_GERRIT_REFSPEC
Paul Sokolovskyd068af22024-02-23 18:10:17 +070052 default: '95d3407a65e26fb3a4319ab38c257e50c9ee804f'
Paul Sokolovsky209003d2024-01-31 23:34:16 +070053 description: |
54 tf-m-tests refspec to use. The master branch is used by default.
55 - string:
56 name: TF_M_EXTRAS_GERRIT_REFSPEC
57 default: '+refs/heads/master:refs/remotes/origin/master'
58 description: |
59 tf-m-extras refspec to use. The master branch is used by default.
60 - string:
61 name: SPM_REFSPEC
62 default: '+refs/heads/master:refs/remotes/origin/master'
63 description: |
64 SPM(Hafnium) refspec to use. The master branch is used by default.
65 - string:
66 name: CI_REFSPEC
67 default: '+refs/heads/lts-v2.10:refs/remotes/origin/lts-v2.10'
68 description: |
69 tf-a-ci-scripts refspec to use. The master branch is used by default.
Saheer Babub495f032025-01-21 23:01:11 +000070 - string:
71 name: JOBS_REFSPEC
72 default: 'refs/heads/master'
73 description: |
74 tf-a-job-configs refspec to use. The master branch is used by default.
Paul Sokolovsky209003d2024-01-31 23:34:16 +070075 - bool:
76 name: ENABLE_STATIC_CHECK
77 default: false
78 - string:
79 name: QA_TOOLS_REPO
80 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
81 - string:
82 name: QA_TOOLS_BRANCH
83 default: 'master'
84 - string:
85 name: USE_TUXSUITE_FVP
86 default: 1
87 description: |
88 Whether to submit FVP tests via TuxSuite (instead of LAVA)
89 - string:
90 name: SHARE_FOLDER
91 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
92 description: 'Folder containing shared repositories for downstream pipeline jobs'
93 builders:
94 - shell:
95 !include-raw: scripts/clone.sh
96 - shell: |
97 #!/bin/bash
98 set -e
99 CI_ROOT=${PWD}/tf-a-ci-scripts
100 export workspace=$PWD
101 export test_groups=$TEST_GROUPS
102 $CI_ROOT/script/gen_test_desc.py
103 cat << EOF > share.param
104 SHARE_FOLDER=${SHARE_FOLDER}
105 EOF
106 - trigger-builds:
107 - project:
108 - tf-a-lts2.10-builder
109 block: true
110 property-file: share.param
111 current-parameters: true
112 property-file-fail-on-missing: false
113 parameter-factories:
114 - factory: filebuild
115 file-pattern: '*.testprop'
116 no-files-found-action: FAIL
117 publishers:
118 - postbuildscript:
119 builders:
120 - role: SLAVE
121 build-on:
122 - SUCCESS
123 - FAILURE
124 - UNSTABLE
125 - ABORTED
126 - NOT_BUILT
127 build-steps:
128 - shell: |-
129 #!/bin/bash -e
130 export CI_ROOT=${PWD}/tf-a-ci-scripts
131 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
132 - archive:
133 artifacts: report.json, report.html, merge/outdir/**
134 - groovy-postbuild:
135 script:
136 !include-raw:
137 - tf-a-ci-gateway/postbuild.groovy