blob: 5ddf9d72ee50093d36c73d9423821551ee3b3a51 [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'
Paul Sokolovskyfbb0d132024-07-12 20:20:03 +030076 description: |
77 Branch of CI_SCRIPTS_REPO to use; also accepts Gerrit patch refspec like 'refs/changes/98/29798/1'
Dean Birche4cbc7c2020-01-20 10:40:21 +000078 - string:
Karl Zhang85c2d7a2020-08-20 11:17:58 +080079 name: 'MBEDTLS_VERSION'
Xinyu Zhang004f3422023-06-27 12:02:31 +080080 default: ''
Xinyu Zhang8926ad32023-02-15 14:43:38 +080081 description: |
82 Specify which MBEDTLS version to use
83 refs/heads/<branch_name> : Pick up latest HEAD on branch
84 TAG_NAME : Pick up a tagged version
85 full commit hash : Pick up a specific commit
Karl Zhang85c2d7a2020-08-20 11:17:58 +080086 - string:
87 name: 'MBEDTLS_URL'
88 default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git'
89 - string:
Dean Birche4cbc7c2020-01-20 10:40:21 +000090 name: 'BUILD_NUMBER'
91 default: ''
92 - string:
93 name: 'BUILD_URL'
94 default: ''
95 - string:
96 name: 'LAVA_URL'
97 default: 'https://tf.validation.linaro.org'
98 - string:
Matthew Harta5bc91c2020-05-26 23:37:59 +010099 name: 'PSA_API_SUITE'
100 default: ''
Dean Birchc4d4d672020-08-12 10:38:58 +0100101 - string:
Leonardo Sandoval35dd14e2021-04-16 11:49:58 -0500102 name: 'CODE_COVERAGE_EN'
103 default: 'FALSE'
104 - string:
Dean Birchc4d4d672020-08-12 10:38:58 +0100105 name: 'LAVA_CREDENTIALS'
106 default: 'LAVA_CREDENTIALS'
107 description: "Name of Jenkins credential for authentication with LAVA."
Paul Sokolovskycd6c0362022-04-28 21:00:32 +0300108 - string:
109 name: 'DEVICE_FILTER'
110 default: ''
111 description: |
112 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 +0800113 wrappers:
114 - timestamps
Dean Birche4cbc7c2020-01-20 10:40:21 +0000115 pipeline-scm:
116 scm:
117 - git:
118 url: '$CI_SCRIPTS_REPO'
119 branches:
120 - '$CI_SCRIPTS_BRANCH'
Paul Sokolovsky60a13ac2024-07-05 11:52:04 +0300121 refspec: '+refs/heads/*:refs/remotes/origin/* +refs/changes/*:refs/remotes/origin/refs/changes/*'
Dean Birche4cbc7c2020-01-20 10:40:21 +0000122 credentials-id: GIT_SSH_KEY
123 wipe-workspace: false
124 script-path: jenkins/lava-submit.jpl