Dean Birch | 62c4f08 | 2020-01-17 16:13:26 +0000 | [diff] [blame^] | 1 | #!/usr/bin/env groovy |
| 2 | //------------------------------------------------------------------------------- |
| 3 | // Copyright (c) 2020, Arm Limited and Contributors. All rights reserved. |
| 4 | // |
| 5 | // SPDX-License-Identifier: BSD-3-Clause |
| 6 | // |
| 7 | //------------------------------------------------------------------------------- |
| 8 | |
| 9 | node("docker-amd64-xenial") { |
| 10 | stage("Init") { |
| 11 | cleanWs() |
| 12 | dir("trusted-firmware-m") { |
| 13 | checkout( |
| 14 | poll: false, |
| 15 | scm: [ |
| 16 | $class: 'GitSCM', |
| 17 | branches: [[name: '$GERRIT_BRANCH']], |
| 18 | extensions: [[$class: 'BuildChooserSetting', buildChooser: [$class: 'GerritTriggerBuildChooser']]], |
| 19 | userRemoteConfigs: [[ |
| 20 | credentialsId: 'GIT_SSH_KEY', |
| 21 | refspec: '$GERRIT_REFSPEC', url: '$CODE_REPO' |
| 22 | ]] |
| 23 | ]) |
| 24 | } |
| 25 | dir("tf-m-ci-scripts") { |
| 26 | git url: '$CI_SCRIPTS_REPO', branch: 'master', credentialsId: 'GIT_SSH_KEY' |
| 27 | } |
| 28 | dir("mbed-crypto") { |
| 29 | checkout( |
| 30 | changelog: false, |
| 31 | poll: false, |
| 32 | scm: [ |
| 33 | $class: 'GitSCM', |
| 34 | branches: [[name: 'FETCH_HEAD']], |
| 35 | userRemoteConfigs: [[ |
| 36 | refspec: 'refs/tags/$MBEDCRYPTO_VERSION', |
| 37 | url: 'https://github.com/ARMmbed/mbed-crypto.git' |
| 38 | ]] |
| 39 | ] |
| 40 | ) |
| 41 | } |
| 42 | sh """ |
| 43 | wget -O cmsis.pack -q https://github.com/ARM-software/CMSIS_5/releases/download/${CMSIS_VERSION}/ARM.CMSIS.${CMSIS_VERSION}.pack |
| 44 | unzip -o -d CMSIS_5 cmsis.pack |
| 45 | """ |
| 46 | } |
| 47 | stage("Build") { |
| 48 | sh "tf-m-ci-scripts/build-docs.sh" |
| 49 | } |
| 50 | stage("Post") { |
| 51 | archiveArtifacts 'trusted-firmware-m/build/install/**' |
| 52 | cleanWs() |
| 53 | } |
| 54 | } |