diff options
author | Gary Wu <gary.i.wu@huawei.com> | 2018-11-20 10:29:22 -0800 |
---|---|---|
committer | Gary Wu <gary.i.wu@huawei.com> | 2018-11-20 10:29:22 -0800 |
commit | 2fcb592e1ad6c95136ea8607cd4053713dbe3920 (patch) | |
tree | d1b32ced9997832048c68cea7ad0f21edbea55c1 /deployment/heat/onap-oom/rancher_vm_entrypoint.sh | |
parent | 919bb88e881c1d90e9c5bedd69a3199bc340e851 (diff) |
Make gerrit_refspec parameters optional
Change-Id: If3dbd009d59f75d9b9f9556c5ece32a40890a383
Issue-ID: INT-584
Signed-off-by: Gary Wu <gary.i.wu@huawei.com>
Diffstat (limited to 'deployment/heat/onap-oom/rancher_vm_entrypoint.sh')
-rw-r--r-- | deployment/heat/onap-oom/rancher_vm_entrypoint.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh index bd39963de..1ee29b011 100644 --- a/deployment/heat/onap-oom/rancher_vm_entrypoint.sh +++ b/deployment/heat/onap-oom/rancher_vm_entrypoint.sh @@ -270,8 +270,10 @@ git config --global log.decorate auto cd ~ git clone -b __oom_gerrit_branch__ https://gerrit.onap.org/r/oom cd oom -git fetch https://gerrit.onap.org/r/oom __oom_gerrit_refspec__ -git checkout FETCH_HEAD +if [ ! -z "__oom_gerrit_refspec__" ]; then + git fetch https://gerrit.onap.org/r/oom __oom_gerrit_refspec__ + git checkout FETCH_HEAD +fi git checkout -b workarounds git log -1 @@ -279,8 +281,10 @@ git log -1 cd ~ git clone -b __integration_gerrit_branch__ https://gerrit.onap.org/r/integration cd integration -git fetch https://gerrit.onap.org/r/integration __integration_gerrit_refspec__ -git checkout FETCH_HEAD +if [ ! -z "__integration_gerrit_refspec__" ]; then + git fetch https://gerrit.onap.org/r/integration __integration_gerrit_refspec__ + git checkout FETCH_HEAD +fi if [ ! -z "__docker_manifest__" ]; then |