Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 1 | #------------------------------------------------------------------------------- |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame^] | 2 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 3 | # |
| 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 Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 15 | properties: |
Matthew Hart | db4cc38 | 2020-10-13 16:13:58 +0100 | [diff] [blame] | 16 | - build-discarder: |
| 17 | days-to-keep: 15 |
| 18 | num-to-keep: 6000 |
Riku Voipio | d4ea534 | 2020-09-04 16:00:02 +0300 | [diff] [blame] | 19 | - authorization: |
Fathi Boudra | db89177 | 2021-03-02 14:12:48 +0100 | [diff] [blame] | 20 | !include: authorization.yaml.inc |
Fathi Boudra | 57ba430 | 2020-11-10 12:56:53 +0100 | [diff] [blame] | 21 | # Instance specific parameters can be set as environment variables in |
| 22 | # * docker image (ENV) |
| 23 | # * Jenkins -> configure system -> global properties -> environment variables |
| 24 | # e.g. DOCKER_PREFIX, LICENSE_VARIABLE |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 25 | parameters: |
| 26 | - string: |
| 27 | name: 'TARGET_PLATFORM' |
| 28 | description: | |
| 29 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 30 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 31 | default: '' |
| 32 | - string: |
| 33 | name: 'PROJ_CONFIG' |
| 34 | description: | |
| 35 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 36 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 37 | default: '' |
| 38 | - string: |
| 39 | name: 'COMPILER' |
| 40 | description: | |
| 41 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 42 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 43 | default: '' |
| 44 | - string: |
| 45 | name: 'CMAKE_BUILD_TYPE' |
| 46 | description: | |
| 47 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 48 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 49 | default: '' |
| 50 | - string: |
| 51 | name: 'BL2' |
| 52 | default: 'True' |
| 53 | description: | |
| 54 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 55 | 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 56 | - string: |
| 57 | name: 'GERRIT_REFSPEC' |
| 58 | default: 'refs/heads/master' |
| 59 | description: | |
| 60 | For use when triggering with unmerged Gerrit changes. |
| 61 | - string: |
| 62 | name: 'GERRIT_BRANCH' |
| 63 | default: 'master' |
| 64 | description: | |
| 65 | For use when triggering with unmerged Gerrit changes. |
| 66 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 67 | name: 'CODE_REPO' |
| 68 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 69 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 70 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 71 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 72 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 73 | name: 'CI_SCRIPTS_BRANCH' |
| 74 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 75 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 76 | name: 'MBEDTLS_VERSION' |
Summer Qin | 7632b81 | 2022-01-05 17:33:35 +0800 | [diff] [blame^] | 77 | default: 'mbedtls-3.1.0' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 78 | - string: |
| 79 | name: 'MBEDTLS_URL' |
| 80 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 81 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 82 | name: 'BUILD_NUMBER' |
| 83 | default: '' |
| 84 | - string: |
| 85 | name: 'BUILD_URL' |
| 86 | default: '' |
| 87 | - string: |
| 88 | name: 'LAVA_URL' |
| 89 | default: 'https://tf.validation.linaro.org' |
| 90 | - string: |
Matthew Hart | a5bc91c | 2020-05-26 23:37:59 +0100 | [diff] [blame] | 91 | name: 'PSA_API_SUITE' |
| 92 | default: '' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 93 | - string: |
Leonardo Sandoval | 35dd14e | 2021-04-16 11:49:58 -0500 | [diff] [blame] | 94 | name: 'CODE_COVERAGE_EN' |
| 95 | default: 'FALSE' |
| 96 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 97 | name: 'LAVA_CREDENTIALS' |
| 98 | default: 'LAVA_CREDENTIALS' |
| 99 | description: "Name of Jenkins credential for authentication with LAVA." |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 100 | wrappers: |
| 101 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 102 | pipeline-scm: |
| 103 | scm: |
| 104 | - git: |
| 105 | url: '$CI_SCRIPTS_REPO' |
| 106 | branches: |
| 107 | - '$CI_SCRIPTS_BRANCH' |
| 108 | credentials-id: GIT_SSH_KEY |
| 109 | wipe-workspace: false |
| 110 | script-path: jenkins/lava-submit.jpl |