[[ -n "$my_email" && -n "$my_name" ]] && return
ok
- mkdir -p /etc/compass-ci/
- cp -a $CCI_SRC/sparrow/setup.yaml /etc/compass-ci/setup.yaml
- options=( server_ip my_name my_email )
- for option in ${options[@]}
- do
export $option=$(awk -F ": " '/^'$option'/ {print $2}' /etc/compass-ci/setup.yaml)
- done
+}
+export_config_variables
[[ -n "$my_email" && -n "$my_name" ]] || {
log_error "ENV \$my_email or \$my_name doesn't exist, please config $CCI_SRC/sparrow/setup.yaml"
exit 1
}
ok
Thanks, Yinsi