move extexcp part to common

This commit is contained in:
Wolfgang Hottgenroth 2021-12-10 16:30:16 +01:00
parent 7649bae60f
commit 700008e27b

View File

@ -17,19 +17,6 @@ extract_client_definition:
- cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new
- rm ws.json && mv ws.json-new ws.json
generateclient_dotnetcore:
variables:
GIT_STRATEGY: fetch
after_script:
- INSTANCE_SPECIFIER=`cat instance.txt`
- API_MAJOR_VERSION=`cat api_major_version.txt`
- API_VERSION=`cat api_version.txt | awk -F- '{print $1}'`
- if [ -f output/src/$CLIENT_PACKAGE_PREFIX.$CI_PROJECT_NAME.$INSTANCE_SPECIFIER.v$API_MAJOR_VERSION/Model/ErrorResultObject.cs ]; then
echo "ErrorResultObject.cs exists, start the postprocessing";
cat ClientExtApiException.cs | sed -e 's,NAMESPACEPLACEHOLDER,'$CLIENT_PACKAGE_PREFIX.$CI_PROJECT_NAME.$INSTANCE_SPECIFIER.v$API_MAJOR_VERSION',g' > output/src/$CLIENT_PACKAGE_PREFIX.$CI_PROJECT_NAME.$INSTANCE_SPECIFIER.v$API_MAJOR_VERSION/Client/ClientExtApiException.cs;
fi
- mv output output_dotnetcore
.deploy_test_dev:
extends: .deploy
tags: