diff options
author | jose.lausuch <jose.lausuch@ericsson.com> | 2015-10-28 16:41:17 +0100 |
---|---|---|
committer | jose.lausuch <jose.lausuch@ericsson.com> | 2015-10-28 16:43:48 +0100 |
commit | b39289732672b60e7e76cf22f79c4586e2ab87b1 (patch) | |
tree | d73608e060349d76c85b7acfbe59c55509c789a2 /docker/prepare_env.sh | |
parent | a4b2f4d5e5039663c19bb2a20f9c561e45798921 (diff) |
Added reset to rally commit ID in prepare_env.sh
Change-Id: I0d662409bfde353c8efd2fa3fd8cacf9c849428b
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'docker/prepare_env.sh')
-rwxr-xr-x | docker/prepare_env.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/prepare_env.sh b/docker/prepare_env.sh index 6c77e814..493f2f88 100755 --- a/docker/prepare_env.sh +++ b/docker/prepare_env.sh @@ -102,8 +102,16 @@ if [ $offline == false ]; then info "Updating Rally repository...." cd ${RALLY_REPO_DIR} + if [ ${RALLY_BRANCH} != "master" ]; then + info "Rally repo: checkout ${RALLY_BRANCH} branch..." + git checkout ${RALLY_BRANCH} + fi info "Rally repo: pulling to latest..." git pull + if [ ${RALLY_COMMIT} != "latest" ]; then + info "Rally repo: given commit is ${RALLY_COMMIT}. Reseting..." + git reset --hard ${RALLY_COMMIT} + fi info "Updating vIMS test repository...." cd ${VIMS_REPO_DIR} |