diff options
-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} |