blob: cd3164a9cf122104d42df3a4898585248fb0bf58 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
- job:
name: lava-lab-sanity-check
project-type: freestyle
defaults: global
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- build-discarder:
days-to-keep: 30
num-to-keep: 30
disabled: false
node: build
display-name: 'LAVA lab sanity check'
triggers:
- gerrit:
server-name: 'review.linaro.org'
override-votes: true
gerrit-build-successful-codereview-value: 1
gerrit-build-failed-codereview-value: -1
readable-message: true
successful-message: 'Sanity Check Successful'
start-message: 'Sanity Check Started'
failure-message: 'Sanity Check Failed'
trigger-for-unreviewed-patches: true
projects:
- project-compare-type: 'PLAIN'
project-pattern: 'lava/lava-lab'
branches:
- branch-compare-type: 'PLAIN'
branch-pattern: 'master'
wrappers:
- timestamps
builders:
- shell: |
#!/bin/bash
rm -rf ${WORKSPACE}/*
echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
git clone -b ${GERRIT_BRANCH} --depth 3 https://git.linaro.org/${GERRIT_PROJECT}
cd *
git fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC}
git checkout -q FETCH_HEAD
# run check-devices.py
set -e
git clone --depth 1 https://git.linaro.org/lava/lava-server.git ${WORKSPACE}/lava-server
RUNS=`find . -name devices -type d | xargs dirname`
for RUN in ${RUNS}; do
# skips staging - check that manually.
if [ -d ${RUN}/device-types ]; then
${WORKSPACE}/lava-server/share/check-devices.py --device-types ${RUN}/device-types --devices ${RUN}/devices
fi
done
- build-name-setter:
name: 'version.txt'
file: true
|