On Tue, Jan 26, 2021 at 02:24:56PM +0800, Liu Yinsi wrote:
[why] when call setup/simplify-ci to locally deploy compass-ci client, default value SCHED_HOST 172.17.0.1 is not enough, because compass-ci server deploy in other server, so delete default value, add params $server_ip.
Signed-off-by: Liu Yinsi liuyinsi@163.com
setup/simplify-ci | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup/simplify-ci b/setup/simplify-ci index df18272f3..8af51339e 100755 --- a/setup/simplify-ci +++ b/setup/simplify-ci @@ -2,8 +2,7 @@ # SPDX-License-Identifier: MulanPSL-2.0+ # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
-: ${SCHED_HOST:=172.17.0.1} -: ${SCHED_PORT:=3000} +server_ip=$1
git_ci() { @@ -21,7 +20,8 @@ dev_env() { export sched_host=$SCHED_HOST export sched_port=$SCHED_PORT
- 3-code/dev-env
- [ -n "server_ip" ] || 3-code/dev-env
"$server_ip"
- 3-code/dev-env $server_ip
This line will be execute in any case.
Thanks, Xueliang
}
install_env()
2.23.0