blob: 01075f48138b571f6eac9c709608315e1ea05cdd [file] [log] [blame]
Dean Birche4cbc7c2020-01-20 10:40:21 +00001#-------------------------------------------------------------------------------
Summer Qin8d6aae02023-01-20 11:15:51 +08002# Copyright (c) 2020-2023, Arm Limited. All rights reserved.
Dean Birche4cbc7c2020-01-20 10:40:21 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6#-------------------------------------------------------------------------------
7
8- job:
9 name: tf-m-lava-submit
10 description: 'Generates and submits LAVA jobs'
11 project-type: pipeline
12 disabled: false
13 sandbox: true
14 concurrent: true
Riku Voipiod4ea5342020-09-04 16:00:02 +030015 properties:
Matthew Hartdb4cc382020-10-13 16:13:58 +010016 - build-discarder:
17 days-to-keep: 15
18 num-to-keep: 6000
Fathi Boudra57ba4302020-11-10 12:56:53 +010019# Instance specific parameters can be set as environment variables in
20# * docker image (ENV)
21# * Jenkins -> configure system -> global properties -> environment variables
22# e.g. DOCKER_PREFIX, LICENSE_VARIABLE
Dean Birche4cbc7c2020-01-20 10:40:21 +000023 parameters:
24 - string:
25 name: 'TARGET_PLATFORM'
26 description: |
27 Specifies the target platform.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010028 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000029 default: ''
30 - string:
31 name: 'PROJ_CONFIG'
32 description: |
33 Specifies the way the application is built.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010034 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000035 default: ''
36 - string:
37 name: 'COMPILER'
38 description: |
39 Specifies the compiler toolchain.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010040 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000041 default: ''
42 - string:
43 name: 'CMAKE_BUILD_TYPE'
44 description: |
45 Configures debugging support.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010046 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_build_instruction.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000047 default: ''
48 - string:
49 name: 'BL2'
50 default: 'True'
51 description: |
52 Whether to build BL2.
Fathi Boudra47b9c4b2020-11-05 21:59:46 +010053 For more information see <a href="https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/plain/docs/getting_started/tfm_secure_boot.rst">here</a>.
Dean Birche4cbc7c2020-01-20 10:40:21 +000054 - string:
55 name: 'GERRIT_REFSPEC'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080056 default: 'refs/heads/main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000057 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080058 Specify which TF-M version to use
59 refs/heads/<branch_name> : Pick up latest HEAD on branch
60 TAG_NAME : Pick up a tagged version
61 full commit hash : Pick up a specific commit
Dean Birche4cbc7c2020-01-20 10:40:21 +000062 - string:
63 name: 'GERRIT_BRANCH'
Xinyu Zhang8450cc92023-09-21 16:46:13 +080064 default: 'main'
Dean Birche4cbc7c2020-01-20 10:40:21 +000065 description: |
Xinyu Zhang8926ad32023-02-15 14:43:38 +080066 TF-M branch.
Dean Birche4cbc7c2020-01-20 10:40:21 +000067 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010068 name: 'CODE_REPO'
69 default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m'
70 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000071 name: 'CI_SCRIPTS_REPO'
Riku Voipio02c86792021-09-02 13:42:14 +030072 default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts'
Dean Birche4cbc7c2020-01-20 10:40:21 +000073 - string:
Fathi Boudraccaba542020-11-19 10:11:43 +010074 name: 'CI_SCRIPTS_BRANCH'
75 default: 'master'
Dean Birche4cbc7c2020-01-20 10:40:21 +000076 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080077 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080078 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080079 description: |
80 Specify which MBEDTLS version to use
81 refs/heads/<branch_name> : Pick up latest HEAD on branch
82 TAG_NAME : Pick up a tagged version
83 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080084 - string:
85 name: 'MBEDTLS_URL'
86 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
87 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000088 name: 'BUILD_NUMBER'
89 default: ''
90 - string:
91 name: 'BUILD_URL'
92 default: ''
93 - string:
94 name: 'LAVA_URL'
95 default: 'https://tf.validation.linaro.org'
96 - string:
Matthew Harta5bc91c2020-05-26 23:37:59 +010097 name: 'PSA_API_SUITE'
98 default: ''
Dean Birchc4d4d672020-08-12 10:38:58 +010099 - string:
Leonardo Sandoval35dd14e2021-04-16 11:49:58 -0500100 name: 'CODE_COVERAGE_EN'
101 default: 'FALSE'
102 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100103 name: 'LAVA_CREDENTIALS'
104 default: 'LAVA_CREDENTIALS'
105 description: "Name of Jenkins credential for authentication with LAVA."
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300106 - string:
107 name: 'DEVICE_FILTER'
108 default: ''
109 description: |
110 Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only)
Xinyu Zhang59f7fee2021-05-21 14:04:11 +0800111 wrappers:
112 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000113 pipeline-scm:
114 scm:
115 - git:
116 url: '$CI_SCRIPTS_REPO'
117 branches:
118 - '$CI_SCRIPTS_BRANCH'
119 credentials-id: GIT_SSH_KEY
120 wipe-workspace: false
121 script-path: jenkins/lava-submit.jpl