diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-04 12:56:28 +0200 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2016-11-04 12:56:28 +0200 |
commit | 8345ea9d54bd671a4d3a32517ec3616d344dda86 (patch) | |
tree | fdfd43f3ce12700c2a5fbfc9e7f8897d5f4b0121 /infrastructure-patchwork-tools.yaml | |
parent | 32c2a5d96d58fbcf1dec9bfded100ecfd849e39a (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 'infrastructure-patchwork-tools.yaml')
-rw-r--r-- | infrastructure-patchwork-tools.yaml | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/infrastructure-patchwork-tools.yaml b/infrastructure-patchwork-tools.yaml index 7de5014e47..becf526ae8 100644 --- a/infrastructure-patchwork-tools.yaml +++ b/infrastructure-patchwork-tools.yaml @@ -35,19 +35,23 @@ - timeout: timeout: 300 - timestamps - - build-name: - name: '#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION,length=8}' builders: - shell: | #!/bin/bash - rm -rf $WORKSPACE/* + rm -rf ${WORKSPACE}/* + echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list sudo apt-get update sudo apt-get install -y python-dev python-virtualenv git python-flake8 - git clone https://git.linaro.org/$GERRIT_PROJECT -b $GERRIT_BRANCH + git clone -b ${GERRIT_BRANCH} --depth 1 https://git.linaro.org/${GERRIT_PROJECT} cd * git log -n1 - 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 + ./unit-test.sh + - build-name-setter: + name: 'version.txt' + file: true
\ No newline at end of file |