blob: 07b1e269006b8e2c629644290a7afc63f2c0ee96 [file] [log] [blame]
Benjamin Copeland9782c6d2020-08-17 12:07:18 +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:
Paul Sokolovsky3ac3cd52023-08-10 22:14:57 +030011 days-to-keep: 90
Benjamin Copeland9782c6d2020-08-17 12:07:18 +010012 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: '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 Spoon8622d772022-04-07 15:46:43 -050060 python3 yadp_builder.py
Benjamin Copeland9782c6d2020-08-17 12:07:18 +010061 publishers:
62 - email:
Paul Sokolovsky9fdf2972022-11-16 19:25:28 +030063 recipients: 'linaro-infrastructure-errors@lists.linaro.org paul.sokolovsky@linaro.org'