[why] $CCI_SRC/sbin/download-rootfs: wget http://api.compass-ci.openeuler.org:$%7BSRV_HTTP_PORT%7D/os/$%7Brootfs_dir%7...
download rootfs needs SRV_HTTP_PORT, so set default values.
Signed-off-by: Liu Yinsi liuyinsi@163.com --- sparrow/3-code/dev-env | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/sparrow/3-code/dev-env b/sparrow/3-code/dev-env index 2ba9662..4638e15 100755 --- a/sparrow/3-code/dev-env +++ b/sparrow/3-code/dev-env @@ -22,6 +22,7 @@ server_ip=$(ip route get 1.2.3.4 | awk '{print $7; exit}') : ${RESULT_WEBDAV_PORT:=3080} : ${ES_HOST:=$server_ip} : ${ES_PORT:=9200} +: ${SRV_HTTP_PORT:=11300}
mkdir -p /etc/compass-ci/defaults cat > /etc/compass-ci/defaults/$server_name.yaml <<EOF @@ -50,6 +51,7 @@ RESULT_WEBDAV_PORT: $RESULT_WEBDAV_PORT lab: nolab ES_HOST: $ES_HOST ES_PORT: $ES_PORT +SRV_HTTP_PORT: $SRV_HTTP_PORT EOF
cat > /etc/profile.d/compass.sh <<'EOF'