blob: 3389194cd7d3023ebe34e07cecc9aa15ce348a78 [file] [log] [blame]
- scm:
name: tf-a-ci-scripts
scm:
- git:
url: https://git.trustedfirmware.org/ci/tf-a-ci-scripts.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
branches:
- refs/heads/master
basedir: tf-a-ci-scripts
skip-tag: true
shallow-clone: true
wipe-workspace: false
- scm:
name: tf-a-job-configs
scm:
- git:
url: https://git.trustedfirmware.org/ci/tf-a-job-configs.git
refspec: +refs/heads/master:refs/remotes/origin/master
name: origin
branches:
- refs/heads/master
basedir: tf-a-job-configs
skip-tag: true
shallow-clone: true
wipe-workspace: false
- scm:
name: trusted-firmware-a
scm:
- git:
url: https://review.trustedfirmware.org/${TF_GERRIT_PROJECT}
refspec: ${TF_GERRIT_REFSPEC}
name: origin
branches:
- ${TF_GERRIT_BRANCH}
basedir: trusted-firmware-a
choosing-strategy: gerrit
skip-tag: true
shallow-clone: false
wipe-workspace: false
- scm:
name: tf-a-tests
scm:
- git:
url: https://review.trustedfirmware.org/${TFTF_GERRIT_PROJECT}
refspec: ${TFTF_GERRIT_REFSPEC}
name: origin
branches:
- ${TFTF_GERRIT_BRANCH}
basedir: tf-a-tests
choosing-strategy: gerrit
skip-tag: true
shallow-clone: false
wipe-workspace: false
- scm:
name: qa-tools
scm:
- git:
url: https://git.gitlab.arm.com/tooling/qa-tools.git
refspec: master
name: origin
branches:
- master
basedir: qa-tools
choosing-strategy: gerrit
skip-tag: true
shallow-clone: true
wipe-workspace: false
- job:
name: tf-a-builder
node: docker-amd64-tf-a-bionic
project-type: freestyle
concurrent: true
disabled: false
defaults: global
Description: |
Trusted Firmware A (TF-A) builder
properties:
- build-discarder:
days-to-keep: 14
- authorization:
!include: authorization.yaml.inc
parameters:
- string:
name: import_cc
- string:
name: TEST_DESC
- string:
name: TF_GERRIT_PROJECT
default: 'TF-A/trusted-firmware-a'
- string:
name: TF_GERRIT_BRANCH
default: 'refs/heads/master'
- string:
name: TF_GERRIT_REFSPEC
default: '+refs/heads/master:refs/remotes/origin/master'
- string:
name: TFTF_GERRIT_PROJECT
default: 'TF-A/tf-a-tests'
- string:
name: TFTF_GERRIT_BRANCH
default: 'refs/heads/master'
- string:
name: TFTF_GERRIT_REFSPEC
default: '+refs/heads/master:refs/remotes/origin/master'
- string:
name: DOCKER_REGISTRY
default: '987685672616.dkr.ecr.us-east-1.amazonaws.com'
- string:
name: ARMLMD_LICENSE_FILE
default: '27000@ci.trustedfirmware.org'
- string:
name: JUNO_ROOTFS_URL
default: 'http://releases.linaro.org/openembedded/aarch64/17.01/linaro-image-minimal-genericarmv8-20170127-888.rootfs.tar.gz'
- string:
name: MBEDTLS_URL
default: 'https://github.com/ARMmbed/mbedtls/archive/mbedtls-2.26.0.tar.gz'
- string:
name: GERRIT_PATCHSET_NUMBER
default: ''
- string:
name: GERRIT_CHANGE_NUMBER
default: ''
- string:
name: GERRIT_HOST
default: 'review.trustedfirmware.org'
- string:
name: QA_SERVER_TEAM
default: 'tf'
- string:
name: QA_SERVER_PROJECT
default: 'tf-a'
- string:
name: QA_SERVER_VERSION
default: ${BUILD_NUMBER}
- string:
name: QA_SERVER
default: 'https://qa-reports.linaro.org'
scm:
- tf-a-ci-scripts
- tf-a-job-configs
- trusted-firmware-a
- tf-a-tests
wrappers:
- timestamps
- timeout:
timeout: 120
fail: true
- credentials-binding:
- text:
credential-id: QA_REPORTS_TOKEN
variable: QA_REPORTS_TOKEN
- credentials-binding:
- text:
credential-id: LAVA_USER_TF
variable: LAVA_USER
- credentials-binding:
- text:
credential-id: LAVA_TOKEN_TF
variable: LAVA_TOKEN
builders:
- shell:
!include-raw: tf-a-builder/builders.sh
- conditional-step:
condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: artefacts/debug/job.yaml
condition-basedir: workspace
steps:
- shell: |
#!/bin/bash
set -e
DEVICE_TYPE=fvp
CUSTOM_YAML_URL=${BUILD_URL}/artifact/artefacts/debug/job.yaml
DEVICE_TYPE=$(awk -F': ' '/device_type/ {print $2}' ${WORKSPACE}/artefacts/debug/job.yaml)
cat << EOF > ${WORKSPACE}/lava.param
DEVICE_TYPE=${DEVICE_TYPE}
LAVA_SERVER=tf.validation.linaro.org
EOF
publishers:
- archive:
artifacts: 'artefacts/**'
latest-only: false
allow-empty: true
- conditional-publisher:
- condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: artefacts/debug/job.yaml
condition-basedir: workspace
action:
- postbuildscript:
builders:
- role: SLAVE
build-on:
- SUCCESS
build-steps:
- inject:
properties-file: ${WORKSPACE}/lava.param
- shell: |
#!/bin/bash
squad='tf-a-job-configs/tf-a-builder/squad.sh'
if ! $squad; then
# Juno jobs may fail due to LAVA lab infrastructure issues (see
# https://projects.linaro.org/browse/LSS-2128) so we need to
# resubmit it if first job failed
if grep -q 'device_type: juno' artefacts/debug/job.yaml; then
if ! $squad; then
echo "LAVA JOB RESULT: 1"
fi
else
echo "LAVA JOB RESULT: 1"
fi
else
echo "LAVA JOB RESULT: 0"
fi
- conditional-publisher:
- condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: lava-raw-debug.log
condition-basedir: workspace
action:
- archive:
artifacts: lava-raw-debug.log
latest-only: false
allow-empty: true
- conditional-publisher:
- condition-kind: file-exists
on-evaluation-failure: dont-run
condition-filename: lava.log
condition-basedir: workspace
action:
- archive:
artifacts: lava.log, lava-uart?.log
latest-only: false
allow-empty: true
- groovy-postbuild:
script:
!include-raw:
- tf-a-builder/postbuild.groovy