Merge "Change PTL informatin in INFO"
[bottlenecks.git] / ci / vstf_run.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 set -ex
12
13 BOTTLENECKS_REPO=https://gerrit.opnfv.org/gerrit/bottlenecks
14
15 SCRIPT_DIR=`cd ${BASH_SOURCE[0]%/*};pwd`
16 GERRIT_REFSPEC_DEBUG=$1
17
18 if [ x"$GERRIT_REFSPEC_DEBUG" != x ]; then
19     git fetch $BOTTLENECKS_REPO $GERRIT_REFSPEC_DEBUG && git checkout FETCH_HEAD
20 fi
21
22 cd $SCRIPT_DIR/../utils/infra_setup/heat_template/vstf_heat_template/
23 ./vstf_HOT_create_instance.sh $GERRIT_REFSPEC_DEBUG
24 cd -
25
26 set +ex