aboutsummaryrefslogtreecommitdiff
path: root/lava-lab-sanity-check.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2017-11-21 15:58:50 +0200
committerNeil Williams <neil.williams@linaro.org>2017-11-27 10:52:41 +0000
commitbd3e4413ba603d5f8f502a2b78dfcd859f6f0f63 (patch)
tree4da29389a0023216524d8eac118ca8ba6506beef /lava-lab-sanity-check.yaml
parentc29aea0f21e336c584ef7b4a2a6d7aa02cfa8a28 (diff)
lava-lab-sanity-check: new jenkins job
Update to automatically check each device dictionary. Change-Id: I574f96dd94c6414ef38aafc4916179adeb73fafb Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lava-lab-sanity-check.yaml')
-rw-r--r--lava-lab-sanity-check.yaml59
1 files changed, 59 insertions, 0 deletions
diff --git a/lava-lab-sanity-check.yaml b/lava-lab-sanity-check.yaml
new file mode 100644
index 00000000..9d24b2b7
--- /dev/null
+++ b/lava-lab-sanity-check.yaml
@@ -0,0 +1,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