blob: 1b61f6ab1700d6d102d24f14fb2fa0915a0ea048 [file] [log] [blame]
- job:
name: ci-job-configs-sanity-check
project-type: freestyle
defaults: global
properties:
- authorization:
authenticated:
- job-read
- job-extended-read
- job-discover
- build-discarder:
days-to-keep: 30
num-to-keep: 30
disabled: false
node: master
display-name: 'CI job configs sanity check'
scm:
- git:
url: https://review.trustedfirmware.org/${GERRIT_PROJECT}
refspec: ${GERRIT_REFSPEC}
branches:
- ${GERRIT_BRANCH}
skip-tag: true
clean:
before: true
choosing-strategy: gerrit
basedir: configs
triggers:
- gerrit:
server-name: 'review.trustedfirmware.org'
trigger-on:
- patchset-created-event
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'mbedtls/tf-ci-scripts'
branches:
- branch-pattern: 'master'
- project-compare-type: 'PLAIN'
project-pattern: 'mbedtls/mbed-tls-job-configs'
branches:
- branch-pattern: 'master'
silent-start: true
wrappers:
- timestamps
builders:
- shell: |
#!/bin/bash -e
echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
- build-name-setter:
name: 'version.txt'
file: true
- shell: |
#!/bin/bash
set -e
echo ""
echo "########################################################################"
echo " Gerrit Environment"
env |grep '^GERRIT'
echo "########################################################################"
cd configs/
mkdir -p ci/ && wget -q https://git.trustedfirmware.org/mbedtls/tf-ci-scripts.git/plain/ci/run-jjb.py -O ci/run-jjb.py
# FIXME run-jjb.py was meant to be used for deployment only
# use JJB 'test' command instead of 'update' command
sed -i "s|update|test|" ci/run-jjb.py
export GIT_PREVIOUS_COMMIT=$(git rev-parse HEAD~1)
export GIT_COMMIT=${GERRIT_PATCHSET_REVISION}
jenkins-jobs --version
python3 ci/run-jjb.py
publishers:
- email:
recipients: 'ben.copeland@linaro.org kelley.spoon@linaro.org arthur.she@linaro.org'