blob: 756d2d49a1b7e31de55475ad4f0026237fd2c494 [file] [log] [blame]
Benjamin Copeland6eaf82a2020-08-11 16:12:33 +01001- job:
2 name: ci-yadp-builder
3 project-type: freestyle
4 defaults: global
5 properties:
6 - authorization:
7 anonymous:
8 - job-read
9 - job-extended-read
10 - build-discarder:
11 days-to-keep: 30
12 num-to-keep: 30
13 node: master
14 display-name: 'CI YADP config builder'
15 triggers:
16 - gerrit:
17 server-name: 'review.trustedfirmware.org'
18 trigger-on:
19 - change-merged-event
20 projects:
21 - project-compare-type: 'PLAIN'
22 project-pattern: 'next/ci/ci-yadp-builder'
23 branches:
24 - branch-pattern: 'master'
25 silent-start: true
26 wrappers:
27 - timestamps
28 - credentials-binding:
29 - text:
30 credential-id: JJB_USER
31 variable: JJB_USER
32 - text:
33 credential-id: JJB_PASSWORD
34 variable: JJB_PASSWORD
35 builders:
36 - shell: |
37 #!/bin/bash -e
38 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
39 - build-name-setter:
40 name: 'version.txt'
41 file: true
42 - shell: |
43 #!/bin/bash
44
45 set -e
46
47 echo ""
48 echo "########################################################################"
49 echo " Gerrit Environment"
50 env |grep '^GERRIT'
51 echo "########################################################################"
52
53 rm -rf ${WORKSPACE}/*
54
55 git clone -b ${GERRIT_BRANCH} --depth 2 https://review.trustedfirmware.org/${GERRIT_PROJECT}
56 cd *
57 git fetch https://review.trustedfirmware.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC}
58 git checkout -q FETCH_HEAD
59
Kelley Spoon0b678d12022-04-07 15:49:45 -050060 python3 yadp_builder.py
Benjamin Copeland6eaf82a2020-08-11 16:12:33 +010061 publishers:
62 - email:
63 recipients: 'linaro-infrastructure-errors@lists.linaro.org'