blob: 1bfb2c4322ee10e9fe5d5db9e74a937b22bef6c0 [file] [log] [blame]
Mark Dykes7c2661d2023-06-23 15:02:21 -05001- job:
mardyk01abc34a12023-12-13 10:41:37 -06002 name: tf-a-ci-coverage-gateway
Mark Dykes7c2661d2023-06-23 15:02:21 -05003 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 with coverage focus(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
Mark Dykes7c2661d2023-06-23 15:02:21 -050018 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
Manish Pandeyb0ff6bc2024-03-15 12:01:13 +000033 default: tf-l3-code-coverage
Mark Dykes7c2661d2023-06-23 15:02:21 -050034 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/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:
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:
64 name: CI_REFSPEC
65 default: '+refs/heads/master:refs/remotes/origin/master'
66 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.
Mark Dykes7c2661d2023-06-23 15:02:21 -050073 - 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: SHARE_FOLDER
84 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
85 description: 'Folder containing shared repositories for downstream pipeline jobs'
86 builders:
87 - shell:
88 !include-raw: scripts/clone.sh
89 - shell: |
90 #!/bin/bash
91 set -e
92 CI_ROOT=${PWD}/tf-a-ci-scripts
93 export workspace=$PWD
94 export test_groups=$TEST_GROUPS
95 $CI_ROOT/script/gen_test_desc.py
96 cat << EOF > share.param
97 SHARE_FOLDER=${SHARE_FOLDER}
98 EOF
99 - trigger-builds:
100 - project:
101 - tf-a-builder
102 block: true
103 property-file: share.param
104 current-parameters: true
105 property-file-fail-on-missing: false
106 parameter-factories:
107 - factory: filebuild
108 file-pattern: '*.testprop'
109 no-files-found-action: FAIL
110 publishers:
111 - postbuildscript:
112 builders:
113 - role: SLAVE
114 build-on:
115 - SUCCESS
116 - FAILURE
117 - UNSTABLE
118 - ABORTED
119 - NOT_BUILT
120 build-steps:
121 - shell: |-
122 #!/bin/bash -e
123 export CI_ROOT=${PWD}/tf-a-ci-scripts
124 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
125 - archive:
126 artifacts: report.json, report.html, merge/outdir/**
127 - groovy-postbuild:
128 script:
129 !include-raw:
130 - tf-a-ci-gateway/postbuild.groovy