From 4ca8d28aacb8e88331ec678f93b27d0ef123eafe Mon Sep 17 00:00:00 2001 From: Yuan Gong Date: Fri, 29 May 2020 14:34:22 +0800 Subject: [PATCH] Clean up build script --- backend/api/build_kfp_server_api_python_package.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/api/build_kfp_server_api_python_package.sh b/backend/api/build_kfp_server_api_python_package.sh index fb4b927b715..28bc709c687 100755 --- a/backend/api/build_kfp_server_api_python_package.sh +++ b/backend/api/build_kfp_server_api_python_package.sh @@ -46,10 +46,12 @@ pushd "$(dirname "$0")" DIR="$(pwd)/python_http_client" swagger_file="$(pwd)/swagger/kfp_api_single_file.swagger.json" +echo "Removing old content in DIR first." +rm -rf "$DIR" + echo "Generating python code from swagger json in $DIR." java -jar "$codegen_file" generate -g python -i "$swagger_file" -o "$DIR" -c <(echo '{ "packageName": "kfp_server_api", - "projectName": "kfp-server-api", "packageVersion": "'"$VERSION"'", "packageUrl": "https://github.com/kubeflow/pipelines" }')