blob: 4fd0fbd5d8136b72b0747f35b2d6af3e05a41764 [file] [log] [blame]
Manish V Badarkhe62a10a42022-09-28 19:08:44 +01001- job:
2 name: manishvbarm-tf-a-ci-gateway
Manish V Badarkhe3fafadf2023-06-19 12:21:06 +01003 node: docker-amd64-tf-a-jammy
Manish V Badarkhe62a10a42022-09-28 19:08:44 +01004 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: manishvbarm-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: 180
30 fail: true
31 - timestamps
Manish V Badarkhee9806842023-01-17 15:27:28 +000032 - build-name:
Manish V Badarkhe7fde6632023-01-18 19:01:25 +000033 name: '#${BUILD_NUMBER}-${TEST_GROUPS}'
Manish V Badarkhe62a10a42022-09-28 19:08:44 +010034 parameters:
35 - string:
36 name: TEST_GROUPS
37 default: tf-l2-boot-tests-cortex/fvp-default:fvp-linux-dtb-fip.uboot-cortexa35x4-debug
38 description: |
39 White space separated list of test configs: can be mix of specific
40 test configs (e.g., <code>l1/fvp-default:fvp-linux-default</code>) and
41 group names (e.g., <code>l1 l2</code>).
42 - string:
43 name: TF_GERRIT_REFSPEC
44 default: '+refs/heads/master:refs/remotes/origin/master'
45 description: |
46 trusted-firmware-a refspec to use. The master branch is used by default.
47 - string:
48 name: TFTF_GERRIT_REFSPEC
49 default: '+refs/heads/master:refs/remotes/origin/master'
50 description: |
51 tf-a-tests refspec to use. The master branch is used by default.
52 - string:
53 name: SPM_REFSPEC
54 default: '+refs/heads/master:refs/remotes/origin/master'
55 description: |
56 SPM(Hafnium) refspec to use. The master branch is used by default.
57 - string:
58 name: CI_REFSPEC
59 default: '+refs/heads/master:refs/remotes/origin/master'
60 description: |
61 tf-a-ci-scripts refspec to use. The master branch is used by default.
Manish V Badarkhe18b3f692022-10-31 10:48:10 +000062 - string:
Manish V Badarkhe3df8cc02025-03-18 21:32:28 +000063 name: RMM_REFSPEC
64 default: '+refs/heads/main:refs/remotes/origin/main'
65 description: |
66 tf-rmm refspec to use. The main branch is used by default.
67 - string:
Manish V Badarkhe18b3f692022-10-31 10:48:10 +000068 name: JOBS_PROJECT
69 default: 'next/ci/tf-a-job-configs.git'
Manish V Badarkhe62a10a42022-09-28 19:08:44 +010070 - bool:
71 name: ENABLE_STATIC_CHECK
72 default: false
73 - string:
74 name: SHARE_FOLDER
Chris Kay4bbc9692025-06-13 15:24:41 +010075 default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
Manish V Badarkhe62a10a42022-09-28 19:08:44 +010076 description: 'Folder containing shared repositories for downstream pipeline jobs'
77 builders:
78 - shell:
Manish V Badarkheeb00ef22025-03-18 21:59:30 +000079 !include-raw: scripts/clone-manishvb.sh
Manish V Badarkhe62a10a42022-09-28 19:08:44 +010080 - shell: |
81 #!/bin/bash
82 set -e
83 CI_ROOT=${PWD}/tf-a-ci-scripts
84 export workspace=$PWD
85 export test_groups=$TEST_GROUPS
86 $CI_ROOT/script/gen_test_desc.py
87 cat << EOF > share.param
88 SHARE_FOLDER=${SHARE_FOLDER}
89 EOF
90 - trigger-builds:
91 - project:
Manish V Badarkhe204bdd22023-01-16 13:25:37 +000092 - tf-a-builder
Manish V Badarkhe62a10a42022-09-28 19:08:44 +010093 block: true
94 property-file: share.param
95 current-parameters: true
96 property-file-fail-on-missing: false
97 parameter-factories:
98 - factory: filebuild
99 file-pattern: '*.testprop'
100 no-files-found-action: FAIL
101 publishers:
102 - postbuildscript:
103 builders:
104 - role: SLAVE
105 build-on:
106 - SUCCESS
107 - FAILURE
108 - UNSTABLE
109 - ABORTED
110 - NOT_BUILT
111 build-steps:
112 - shell: |-
113 #!/bin/bash -e
114 export CI_ROOT=${PWD}/tf-a-ci-scripts
115 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
116 - archive:
117 artifacts: report.json, report.html, merge/outdir/**
118 - groovy-postbuild:
119 script:
120 !include-raw:
121 - manishvbarm-tf-a-ci-gateway/postbuild.groovy