blob: aa1d7344aa565688ceae6f3c179fa12656424af2 [file] [log] [blame]
- job:
name: zdleaf-tf-a-main-tfa-next
node: docker-amd64-tf-a-jammy
project-type: multijob
concurrent: true
disabled: false
description: Main CI job for Trusted Firmware Next
properties:
- throttle:
option: project
enabled: true
max-total: 5
- build-discarder:
days-to-keep: 14
num-to-keep: 60
# triggers:
# - gerrit:
# silent: true
# server-name: 'review.trustedfirmware.org'
# projects:
# - branches:
# - branch-compare-type: PLAIN
# branch-pattern: 'tfa-next'
# project-compare-type: PLAIN
# project-pattern: 'TF-A/trusted-firmware-a'
# trigger-on:
# - patchset-created-event:
# exclude-drafts: true
# exclude-trivial-rebase: true
# exclude-no-code-change: true
# exclude-private: true
# exclude-wip: true
parameters:
- string:
name: TF_GERRIT_PROJECT
default: 'TF-A/trusted-firmware-a'
- string:
name: TF_GERRIT_BRANCH
default: 'refs/heads/tfa-next'
- string:
name: TF_GERRIT_REFSPEC
default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next'
- 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: CI_REFSPEC
default: '+refs/heads/tfa-next:refs/remotes/origin/tfa-next'
- string:
name: MBEDTLS_URL
default: 'https://github.com/Mbed-TLS/mbedtls/archive/mbedtls-3.6.0.tar.gz'
- string:
name: SHARE_FOLDER
default: '/srv/shared/staging/${JOB_NAME}/${BUILD_NUMBER}'
description: 'Folder containing shared repositories for downstream pipeline jobs'
- string:
name: REPOS
default: "tf-a-ci-scripts,trusted-firmware-a"
description: |
Optional arg to clone only specific projects from default list (tf-a-ci-scripts,trusted-firmware-a,tf-a-tests,spm,tf-m-tests,tf-m-extras)
- string:
name: FETCH_SSH
default: 1
description: |
Fetch branches with authenticated SSH instead of anonymous HTTPS
- string:
name: GERRIT_PROJECT
default: "TF-A/trusted-firmware-a"
description: |
WIP TEMPORARY FOR TESTING - TO BE SET BY GERRIT TRIGGER
- string:
name: GERRIT_REFSPEC
default: "refs/changes/33/31233/4"
description: |
WIP TEMPORARY FOR TESTING - TO BE SET BY GERRIT TRIGGER
wrappers:
- credentials-binding:
- ssh-user-private-key:
credential-id: TFA_CI_BOT_USER_SSH_KEY
key-file-variable: CI_BOT_KEY
username-variable: CI_BOT_USERNAME
passphrase-variable: ''
- workspace-cleanup
- timestamps
builders:
- shell:
!include-raw: zdleaf-scripts/clone.sh
- shell: |
#!/bin/bash
set -e
cat << EOF > tf-a-env.param
GERRIT_PROJECT=${TF_GERRIT_PROJECT}
GERRIT_BRANCH=${TF_GERRIT_BRANCH}
GERRIT_REFSPEC=${TF_GERRIT_REFSPEC}
SHARE_FOLDER=${SHARE_FOLDER}
EOF
cat << EOF > tf-a-tests-env.param
GERRIT_PROJECT=${TFTF_GERRIT_PROJECT}
GERRIT_BRANCH=${TFTF_GERRIT_BRANCH}
GERRIT_REFSPEC=${TFTF_GERRIT_REFSPEC}
SHARE_FOLDER=${SHARE_FOLDER}
EOF
- multijob:
name: Build Trusted Firmware
condition: COMPLETED
projects:
- name: zdleaf-tf-a-ci-gateway-tfa-next
alias: tf-next-build
current-parameters: true
kill-phase-on: NEVER
predefined-parameters: |
TEST_GROUPS=tf-next-build/qemu-next:nil
property-file: tf-a-env.param