aboutsummaryrefslogtreecommitdiff
path: root/lava-dispatcher.yaml
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-11-04 12:56:28 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-11-04 12:56:28 +0200
commit8345ea9d54bd671a4d3a32517ec3616d344dda86 (patch)
treefdfd43f3ce12700c2a5fbfc9e7f8897d5f4b0121 /lava-dispatcher.yaml
parent32c2a5d96d58fbcf1dec9bfded100ecfd849e39a (diff)
{infrastructure,lava}: fix build name with gerrit revision appended
* remove linaro-publish-token, unused in these jobs * replace build-name by build-name-setter * always do a shallow clone * silence git checkout Change-Id: Idb8e69183669780d9b9601606cecca2af94fd921 Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'lava-dispatcher.yaml')
-rw-r--r--lava-dispatcher.yaml14
1 files changed, 9 insertions, 5 deletions
diff --git a/lava-dispatcher.yaml b/lava-dispatcher.yaml
index 2cbbe86610..39a83dba46 100644
--- a/lava-dispatcher.yaml
+++ b/lava-dispatcher.yaml
@@ -38,20 +38,24 @@
branch-pattern: 'master'
wrappers:
- timestamps
- - build-name:
- name: '#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION,length=8}'
builders:
- - linaro-publish-token
- shell: |
#!/bin/bash
rm -rf ${WORKSPACE}/*
- git clone https://git.linaro.org/${GERRIT_PROJECT} -b ${GERRIT_BRANCH}
+ echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt
+
+ git clone -b ${GERRIT_BRANCH} --depth 1 https://git.linaro.org/${GERRIT_PROJECT}
cd *
git log -n3
- git fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
+ git fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC}
+ git checkout -q FETCH_HEAD
+
./ci-run
echo
echo Starting python3 unit tests for V2 only.
echo
python3 -m unittest discover -v lava_dispatcher.pipeline
+ - build-name-setter:
+ name: 'version.txt'
+ file: true