blob: 3d46b15954458e6b0951f83349ed774672a0e8fb [file] [log] [blame]
Benjamin Copeland9782c6d2020-08-17 12:07:18 +01001- job:
2 name: ci-yadp-builder-sanity
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 disabled: false
14 node: master
15 display-name: 'CI YADP config builder sanity check'
16 triggers:
17 - gerrit:
18 server-name: 'review.trustedfirmware.org'
19 trigger-on:
20 - patchset-created-event
21 projects:
22 - project-compare-type: 'PLAIN'
23 project-pattern: 'ci/ci-yadp-builder'
24 branches:
25 - branch-pattern: 'master'
26 silent-start: true
27 wrappers:
28 - timestamps
29 - credentials-binding:
30 - text:
31 credential-id: JJB_USER
32 variable: JJB_USER
33 - text:
34 credential-id: JJB_PASSWORD
35 variable: JJB_PASSWORD
36 builders:
37 - shell: |
38 #!/bin/bash -e
39 echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
40 - build-name-setter:
41 name: 'version.txt'
42 file: true
43 - shell: |
44 #!/bin/bash
45
46 set -e
47
48 echo ""
49 echo "########################################################################"
50 echo " Gerrit Environment"
51 env |grep '^GERRIT'
52 echo "########################################################################"
53
54 rm -rf ${WORKSPACE}/*
55
56 git clone -b ${GERRIT_BRANCH} --depth 2 https://review.trustedfirmware.org/${GERRIT_PROJECT}
57 cd *
58 git fetch https://review.trustedfirmware.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC}
59 git checkout -q FETCH_HEAD
60
Kelley Spoon8622d772022-04-07 15:46:43 -050061 python3 yadp_builder.py --dryrun
Benjamin Copeland9782c6d2020-08-17 12:07:18 +010062 publishers:
63 - email:
64 recipients: 'linaro-infrastructure-errors@lists.linaro.org'