diff options
-rw-r--r-- | lava-dispatcher.yaml | 11 | ||||
-rw-r--r-- | lava-tool.yaml | 12 |
2 files changed, 15 insertions, 8 deletions
diff --git a/lava-dispatcher.yaml b/lava-dispatcher.yaml index 35eda3cac1..340be88314 100644 --- a/lava-dispatcher.yaml +++ b/lava-dispatcher.yaml @@ -42,14 +42,17 @@ - shell: | #!/bin/bash - rm -rf ${WORKSPACE}/* set -x + cd / + rm -rf ${WORKSPACE} + mkdir -p ${WORKSPACE} + cd ${WORKSPACE} + git clone -b ${GERRIT_BRANCH} https://git.linaro.org/${GERRIT_PROJECT} lava-checkout + cd lava-checkout echo "#${BUILD_NUMBER}-${GERRIT_PATCHSET_REVISION:0:8}" > ${WORKSPACE}/version.txt - git clone -b ${GERRIT_BRANCH} https://git.linaro.org/${GERRIT_PROJECT} - cd * git fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC} set +x - git checkout FETCH_HEAD + git checkout -q FETCH_HEAD git log -n3 set -e echo diff --git a/lava-tool.yaml b/lava-tool.yaml index 3811df656c..2a1c05a262 100644 --- a/lava-tool.yaml +++ b/lava-tool.yaml @@ -42,12 +42,16 @@ - shell: | #!/bin/bash - rm -rf ${WORKSPACE}/* + set -x + cd / + rm -rf ${WORKSPACE} + mkdir -p ${WORKSPACE} + cd ${WORKSPACE} + git clone -b ${GERRIT_BRANCH} https://git.linaro.org/${GERRIT_PROJECT} lava-checkout + cd lava-checkout 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 fetch https://review.linaro.org/${GERRIT_PROJECT} ${GERRIT_REFSPEC} + set +x git checkout -q FETCH_HEAD git log -n3 find . -name '*.pyc' -delete |