summaryrefslogtreecommitdiffstats
path: root/docker/Dockerfile
diff options
context:
space:
mode:
authorJing Lu <lvjing5@huawei.com>2016-12-01 01:11:09 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-12-01 01:11:09 +0000
commit111759372ed1b8433498c53a3cb53e3eff158f50 (patch)
tree15e2f84afa90f33f15c0f8a0ac6baed42c51645e /docker/Dockerfile
parent322405412df26c8a0ee7f3a5aaa3b115950e97c8 (diff)
parenta8b879387ea8ff072baa6aaf037c6921e354e736 (diff)
Merge "Clone the corresponding branch of the repo according to the job branch"
Diffstat (limited to 'docker/Dockerfile')
-rw-r--r--docker/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index fb8625e50..048804dc5 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -57,8 +57,8 @@ RUN apt-get -y autoremove && \
RUN mkdir -p ${REPOS_DIR}
RUN git config --global http.sslVerify false
-RUN git clone https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
-RUN git clone https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
+RUN git clone --depth 1 -b $BRANCH https://gerrit.opnfv.org/gerrit/yardstick ${YARDSTICK_REPO_DIR}
+RUN git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng ${RELENG_REPO_DIR}
# install yardstick + dependencies
RUN cd ${YARDSTICK_REPO_DIR} && easy_install -U pip