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 |
Fathi Boudra | 57ba430 | 2020-11-10 12:56:53 +0100 | [diff] [blame] | 19 | # 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 Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 23 | parameters: |
| 24 | - string: |
| 25 | name: 'TARGET_PLATFORM' |
| 26 | description: | |
| 27 | Specifies the target platform. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 28 | 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] | 29 | default: '' |
| 30 | - string: |
| 31 | name: 'PROJ_CONFIG' |
| 32 | description: | |
| 33 | Specifies the way the application is built. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 34 | 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] | 35 | default: '' |
| 36 | - string: |
| 37 | name: 'COMPILER' |
| 38 | description: | |
| 39 | Specifies the compiler toolchain. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 40 | 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] | 41 | default: '' |
| 42 | - string: |
| 43 | name: 'CMAKE_BUILD_TYPE' |
| 44 | description: | |
| 45 | Configures debugging support. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 46 | 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] | 47 | default: '' |
| 48 | - string: |
| 49 | name: 'BL2' |
| 50 | default: 'True' |
| 51 | description: | |
| 52 | Whether to build BL2. |
Fathi Boudra | 47b9c4b | 2020-11-05 21:59:46 +0100 | [diff] [blame] | 53 | 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] | 54 | - string: |
| 55 | name: 'GERRIT_REFSPEC' |
| 56 | default: 'refs/heads/master' |
| 57 | description: | |
| 58 | For use when triggering with unmerged Gerrit changes. |
| 59 | - string: |
| 60 | name: 'GERRIT_BRANCH' |
| 61 | default: 'master' |
| 62 | description: | |
| 63 | For use when triggering with unmerged Gerrit changes. |
| 64 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 65 | name: 'CODE_REPO' |
| 66 | default: 'https://review.trustedfirmware.org/TF-M/trusted-firmware-m' |
| 67 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 68 | name: 'CI_SCRIPTS_REPO' |
Riku Voipio | 02c8679 | 2021-09-02 13:42:14 +0300 | [diff] [blame] | 69 | default: 'https://git.trustedfirmware.org/ci/tf-m-ci-scripts' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 70 | - string: |
Fathi Boudra | ccaba54 | 2020-11-19 10:11:43 +0100 | [diff] [blame] | 71 | name: 'CI_SCRIPTS_BRANCH' |
| 72 | default: 'master' |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 73 | - string: |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 74 | name: 'MBEDTLS_VERSION' |
Antonio de Angelis | 20c0440 | 2022-07-16 00:01:05 +0100 | [diff] [blame] | 75 | default: 'mbedtls-3.2.1' |
Karl Zhang | 85c2d7a | 2020-08-20 11:17:58 +0800 | [diff] [blame] | 76 | - string: |
| 77 | name: 'MBEDTLS_URL' |
| 78 | default: 'https://git.trustedfirmware.org/mirror/mbed-tls.git' |
| 79 | - string: |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 80 | name: 'BUILD_NUMBER' |
| 81 | default: '' |
| 82 | - string: |
| 83 | name: 'BUILD_URL' |
| 84 | default: '' |
| 85 | - string: |
| 86 | name: 'LAVA_URL' |
| 87 | default: 'https://tf.validation.linaro.org' |
| 88 | - string: |
Matthew Hart | a5bc91c | 2020-05-26 23:37:59 +0100 | [diff] [blame] | 89 | name: 'PSA_API_SUITE' |
| 90 | default: '' |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 91 | - string: |
Leonardo Sandoval | 35dd14e | 2021-04-16 11:49:58 -0500 | [diff] [blame] | 92 | name: 'CODE_COVERAGE_EN' |
| 93 | default: 'FALSE' |
| 94 | - string: |
Dean Birch | c4d4d67 | 2020-08-12 10:38:58 +0100 | [diff] [blame] | 95 | name: 'LAVA_CREDENTIALS' |
| 96 | default: 'LAVA_CREDENTIALS' |
| 97 | description: "Name of Jenkins credential for authentication with LAVA." |
Paul Sokolovsky | cd6c036 | 2022-04-28 21:00:32 +0300 | [diff] [blame] | 98 | - string: |
| 99 | name: 'DEVICE_FILTER' |
| 100 | default: '' |
| 101 | description: | |
| 102 | Parameter to lava_create_jobs.py to filter by device type (e.g. --fvp-only or --physical-board-only) |
Xinyu Zhang | 59f7fee | 2021-05-21 14:04:11 +0800 | [diff] [blame] | 103 | wrappers: |
| 104 | - timestamps |
Dean Birch | e4cbc7c | 2020-01-20 10:40:21 +0000 | [diff] [blame] | 105 | pipeline-scm: |
| 106 | scm: |
| 107 | - git: |
| 108 | url: '$CI_SCRIPTS_REPO' |
| 109 | branches: |
| 110 | - '$CI_SCRIPTS_BRANCH' |
| 111 | credentials-id: GIT_SSH_KEY |
| 112 | wipe-workspace: false |
| 113 | script-path: jenkins/lava-submit.jpl |