blob: ba5e1e1f85cdc0a2495edd273f3ff6d8471b2426 [file] [log] [blame]
Dean Birch62c4f082020-01-17 16:13:26 +00001#!/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
9node("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',
Dean Bircha6ede7e2020-03-13 14:00:33 +000037 url: params.MBEDCRYPTO_URL
Dean Birch62c4f082020-01-17 16:13:26 +000038 ]]
39 ]
40 )
41 }
42 sh """
Dean Bircha6ede7e2020-03-13 14:00:33 +000043# Host https://github.com/Arm-software/CMSIS_5/releases/download/5.5.0/ARM.CMSIS.5.5.0.pack
44# under \$JENKINS_HOME/userContent
45wget -O cmsis.pack -q \${JENKINS_URL}/userContent/ARM.CMSIS.${CMSIS_VERSION}.pack
Dean Birch62c4f082020-01-17 16:13:26 +000046unzip -o -d CMSIS_5 cmsis.pack
47"""
48 }
49 stage("Build") {
50 sh "tf-m-ci-scripts/build-docs.sh"
51 }
52 stage("Post") {
53 archiveArtifacts 'trusted-firmware-m/build/install/**'
54 cleanWs()
55 }
56}