Răsfoiți Sursa

Fix download api spec

crobibero 4 ani în urmă
părinte
comite
810ec0b672
1 a modificat fișierele cu 5 adăugiri și 7 ștergeri
  1. 5 7
      .ci/azure-pipelines-api-client.yml

+ 5 - 7
.ci/azure-pipelines-api-client.yml

@@ -17,13 +17,11 @@ jobs:
     - task: DownloadPipelineArtifact@2
       displayName: 'Download OpenAPI Spec Artifact'
       inputs:
-        source: "specific"
+        source: 'current'
         artifact: "OpenAPI Spec"
-        path: "$(System.ArtifactsDirectory)/openapi"
-        project: "$(System.TeamProjectId)"
-        pipeline: "29" # The main server CI build
-        runVersion: "latestFromBranch"
-        runBranch: "refs/heads/$(System.PullRequest.TargetBranch)"
+        path: "$(System.ArtifactsDirectory)/openapispec"
+        runVersion: "latest"
+        dependsOn: Test
 
     - task: CmdLine@2
     displayName: 'Download OpenApi Generator'
@@ -68,5 +66,5 @@ jobs:
     inputs:
       command: publish
       publishRegistry: useExternalRegistry
-      publishEndpoint: 
+      publishEndpoint:
       workingDir: ./apiclient/generated/typescript/axios