blob: fb9d8205a110545e1b256d145d6af878e1169e41 [file] [log] [blame]
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +03001- job:
2 name: tf-a-lts2.8-ci-gateway
3 node: docker-amd64-tf-a-lts2.8-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) 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
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030018 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
Govindraj Raja022c4db2023-10-10 16:42:04 -050040 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030041 description: |
42 trusted-firmware-a refspec to use. The master branch is used by default.
43 - string:
44 name: TFTF_GERRIT_REFSPEC
Govindraj Raja022c4db2023-10-10 16:42:04 -050045 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030046 description: |
47 tf-a-tests refspec to use. The master branch is used by default.
48 - string:
Paul Sokolovsky9d9d9642024-01-31 23:20:57 +070049 name: TF_M_TESTS_GERRIT_REFSPEC
50 default: '+refs/heads/master:refs/remotes/origin/master'
51 description: |
52 tf-m-tests refspec to use. The master branch is used by default.
53 - string:
54 name: TF_M_EXTRAS_GERRIT_REFSPEC
55 default: '+refs/heads/master:refs/remotes/origin/master'
56 description: |
57 tf-m-extras refspec to use. The master branch is used by default.
58 - string:
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030059 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:
64 name: CI_REFSPEC
Govindraj Raja022c4db2023-10-10 16:42:04 -050065 default: '+refs/heads/lts-v2.8:refs/remotes/origin/lts-v2.8'
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030066 description: |
67 tf-a-ci-scripts refspec to use. The master branch is used by default.
Saheer Babub495f032025-01-21 23:01:11 +000068 - 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.
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030073 - 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:
Paul Sokolovsky9d9d9642024-01-31 23:20:57 +070083 name: USE_TUXSUITE_FVP
84 default: 1
85 description: |
86 Whether to submit FVP tests via TuxSuite (instead of LAVA)
87 - string:
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +030088 name: SHARE_FOLDER
89 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
90 description: 'Folder containing shared repositories for downstream pipeline jobs'
91 builders:
92 - shell:
93 !include-raw: scripts/clone.sh
94 - shell: |
95 #!/bin/bash
96 set -e
97 CI_ROOT=${PWD}/tf-a-ci-scripts
98 export workspace=$PWD
99 export test_groups=$TEST_GROUPS
100 $CI_ROOT/script/gen_test_desc.py
101 cat << EOF > share.param
102 SHARE_FOLDER=${SHARE_FOLDER}
103 EOF
104 - trigger-builds:
105 - project:
Paul Sokolovskybe42c2a2023-06-01 22:04:58 +0300106 - tf-a-lts2.8-builder
Paul Sokolovsky6fadaed2023-06-01 21:10:50 +0300107 block: true
108 property-file: share.param
109 current-parameters: true
110 property-file-fail-on-missing: false
111 parameter-factories:
112 - factory: filebuild
113 file-pattern: '*.testprop'
114 no-files-found-action: FAIL
115 publishers:
116 - postbuildscript:
117 builders:
118 - role: SLAVE
119 build-on:
120 - SUCCESS
121 - FAILURE
122 - UNSTABLE
123 - ABORTED
124 - NOT_BUILT
125 build-steps:
126 - shell: |-
127 #!/bin/bash -e
128 export CI_ROOT=${PWD}/tf-a-ci-scripts
129 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
130 - archive:
131 artifacts: report.json, report.html, merge/outdir/**
132 - groovy-postbuild:
133 script:
134 !include-raw:
135 - tf-a-ci-gateway/postbuild.groovy