Skip to content

Commit

Permalink
Clean up build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobgy committed Jun 1, 2020
1 parent 6d3b92a commit 4ca8d28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/api/build_kfp_server_api_python_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}')
Expand Down

0 comments on commit 4ca8d28

Please sign in to comment.