blob: 15b14f01b64e810af20c4f31a68a60f993ebf997 [file] [log] [blame]
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05001- job:
Leonardo Sandovalffaee982021-11-11 10:27:57 -06002 name: tf-a-ci-gateway
Boyan Karatotev5c87c072023-02-10 11:04:58 +00003 node: docker-amd64-tf-a-jammy
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -05004 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:
Benjamin Copeland12a152f2022-03-18 13:16:44 +000012 days-to-keep: 15
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050013 - throttle:
14 option: project
15 enabled: true
16 max-per-node: 3
17 max-total: 10
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -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:
Paul Sokolovskyf1c59282023-05-10 10:47:12 +030027 timeout: 240
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050028 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>).
Zelalem Awekee8801df2021-10-25 13:41:44 -050038 - 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:
Jimmy Brisson66786582023-05-30 18:19:23 -050049 name: TF_M_TESTS_GERRIT_REFSPEC
Manish V Badarkhe7415ae52024-10-16 08:30:06 +010050 default: '+refs/heads/tfa_ci_dep_revision:refs/remotes/origin/tfa_ci_dep_revision'
Jimmy Brisson66786582023-05-30 18:19:23 -050051 description: |
Manish V Badarkhe7415ae52024-10-16 08:30:06 +010052 tf-m-tests refspec to use. The tfa_ci_dep_revision branch is used by default.
Jimmy Brisson66786582023-05-30 18:19:23 -050053 - string:
54 name: TF_M_EXTRAS_GERRIT_REFSPEC
Manish V Badarkhe7415ae52024-10-16 08:30:06 +010055 default: '+refs/heads/tfa_ci_dep_revision:refs/remotes/origin/tfa_ci_dep_revision'
Jimmy Brisson66786582023-05-30 18:19:23 -050056 description: |
Manish V Badarkhe7415ae52024-10-16 08:30:06 +010057 tf-m-extras refspec to use. The tfa_ci_dep_revision branch is used by default.
Jimmy Brisson66786582023-05-30 18:19:23 -050058 - string:
Zelalem Aweke7f8b8b22021-10-28 13:11:17 -050059 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:
Zelalem Awekee8801df2021-10-25 13:41:44 -050064 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:
Manish V Badarkheaa6c48f2025-04-09 14:03:26 +010069 name: RMM_REFSPEC
70 default: '+refs/heads/main:refs/remotes/origin/main'
71 description: |
72 tf-rmm refspec to use. The main branch is used by default.
73 - string:
Saheer Babub495f032025-01-21 23:01:11 +000074 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.
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050078 - bool:
79 name: ENABLE_STATIC_CHECK
80 default: false
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050081 - string:
Paul Sokolovskye09ea342023-02-13 23:24:04 +070082 name: QA_TOOLS_REPO
Paul Sokolovsky95327fa2023-03-22 19:20:00 +070083 default: 'https://git.gitlab.arm.com/tooling/qa-tools.git'
Paul Sokolovskye09ea342023-02-13 23:24:04 +070084 - string:
85 name: QA_TOOLS_BRANCH
Paul Sokolovsky95327fa2023-03-22 19:20:00 +070086 default: 'master'
Paul Sokolovskye09ea342023-02-13 23:24:04 +070087 - string:
Paul Sokolovsky8ac6b2b2023-12-30 01:38:51 +030088 name: USE_TUXSUITE_FVP
Paul Sokolovsky7b144a82024-01-25 17:33:06 +070089 default: 1
Paul Sokolovsky8ac6b2b2023-12-30 01:38:51 +030090 description: |
91 Whether to submit FVP tests via TuxSuite (instead of LAVA)
92 - string:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050093 name: SHARE_FOLDER
94 default: '/srv/shared/${JOB_NAME}/${BUILD_NUMBER}'
95 description: 'Folder containing shared repositories for downstream pipeline jobs'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -050096 builders:
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -050097 - shell:
98 !include-raw: scripts/clone.sh
Fathi Boudra9c8a9452020-12-08 22:16:57 +010099 - shell: |
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500100 #!/bin/bash
101 set -e
102 CI_ROOT=${PWD}/tf-a-ci-scripts
103 export workspace=$PWD
104 export test_groups=$TEST_GROUPS
105 $CI_ROOT/script/gen_test_desc.py
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -0500106 cat << EOF > share.param
107 SHARE_FOLDER=${SHARE_FOLDER}
108 EOF
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500109 - trigger-builds:
110 - project:
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600111 - tf-a-builder
112 block: true
Leonardo Sandovald1b6b5a2021-09-13 12:06:26 -0500113 property-file: share.param
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500114 current-parameters: true
115 property-file-fail-on-missing: false
116 parameter-factories:
Paul Sokolovsky7be2e052021-11-08 14:45:01 +0300117 - factory: filebuild
118 file-pattern: '*.testprop'
Leonardo Sandovaldc2a03a2020-10-05 18:12:19 -0500119 no-files-found-action: FAIL
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600120 publishers:
121 - postbuildscript:
122 builders:
Leonardo Sandovalb1961662021-02-02 09:29:27 -0600123 - role: SLAVE
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600124 build-on:
125 - SUCCESS
126 - FAILURE
127 - UNSTABLE
128 - ABORTED
129 - NOT_BUILT
130 build-steps:
131 - shell: |-
132 #!/bin/bash -e
133 export CI_ROOT=${PWD}/tf-a-ci-scripts
134 bash "$CI_ROOT/job/tf-ci-gateway/generate_report.sh"
135 - archive:
Paul Sokolovsky78411542022-04-26 01:34:40 +0300136 artifacts: report.json, report.html, merge/outdir/**
Leonardo Sandoval9f159802021-01-20 16:47:25 -0600137 - groovy-postbuild:
138 script:
139 !include-raw:
Leonardo Sandovalffaee982021-11-11 10:27:57 -0600140 - tf-a-ci-gateway/postbuild.groovy