Use jar directly

pull/4070/head
crobibero 4 years ago
parent 320e3b98ab
commit 6ffffa95a7

@ -55,3 +55,6 @@ jobs:
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}: - ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-package.yml - template: azure-pipelines-package.yml
- ${{ if or(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'), startsWith(variables['Build.SourceBranch'], 'refs/heads/master')) }}:
- template: azure-pipelines-api-client.yml

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
CLIENT=$1 CLIENT=$1
openapi-generator generate \ java -jar openapi-generator-cli.jar generate \
--input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \ --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
--generator-name typescript-${CLIENT} \ --generator-name typescript-${CLIENT} \
--output ./apiclient/generated/typescript/${CLIENT} \ --output ./apiclient/generated/typescript/${CLIENT} \

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
CLIENT=$1 CLIENT=$1
openapi-generator generate \ java -jar openapi-generator-cli.jar generate \
--input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \ --input-spec $(System.ArtifactsDirectory)/openapi/openapi.json \
--generator-name typescript-${CLIENT} \ --generator-name typescript-${CLIENT} \
--output ./apiclient/generated/typescript/${CLIENT} \ --output ./apiclient/generated/typescript/${CLIENT} \

Loading…
Cancel
Save