Skip to content

Commit fc24f03

Browse files
committed
Revert "Merge pull request #1436 from microsoftgraph/chore/kiota-download-in-generation-pipeline"
This reverts commit 6f7fe2e, reversing changes made to 1895373.
1 parent 7a1afde commit fc24f03

File tree

6 files changed

+31
-10
lines changed

6 files changed

+31
-10
lines changed

.azure-pipelines/generation-pipeline.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ resources:
9797
type: github
9898
endpoint: microsoftgraph (22)
9999
name: microsoftgraph/microsoft-graph-docs
100+
- repository: kiota
101+
type: github
102+
endpoint: microsoftkiota
103+
name: microsoft/kiota
100104
- repository: Agents-M365Copilot
101105
type: github
102106
endpoint: microsoftkiota
@@ -171,6 +175,8 @@ extends:
171175
parameters:
172176
sdl:
173177
sourceRepositoriesToScan:
178+
include:
179+
- repository: kiota
174180
exclude:
175181
- repository: msgraph-sdk-dotnet
176182
- repository: msgraph-beta-sdk-dotnet
Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
steps:
2-
- pwsh: |
3-
dotnet tool install Microsoft.OpenApi.Kiota `
4-
--tool-path "$(Build.ArtifactStagingDirectory)"
5-
displayName: 'Install Kiota via dotnet tool'
2+
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
3+
parameters:
4+
version: "10.x" #kiota uses a net10 target
5+
6+
- checkout: kiota
7+
displayName: checkout kiota
8+
fetchDepth: 1
9+
10+
- pwsh: dotnet build $(Build.SourcesDirectory)/src/kiota/kiota.csproj --configuration $(buildConfiguration)
11+
displayName: 'Build Kiota'
12+
13+
- task: CopyFiles@2
14+
inputs:
15+
sourceFolder: '$(Build.SourcesDirectory)/src/kiota/bin/$(BuildConfiguration)/net10.0'
16+
contents: '**/*'
17+
targetFolder: '$(Build.ArtifactStagingDirectory)'
18+
displayName: Copy Kiota executable
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This Yaml Document has been converted by ESAI Yaml Pipeline Conversion Tool.
2+
# Please make sure to check all the converted content, it is your team's responsibility to make sure that the pipeline is still valid and functions as expected.
3+
# The 'DownloadBuildArtifacts@0' tasks have been converted to inputs within the `templateContext` section of each job.
4+
steps:
5+
- bash: chmod +x $(Build.SourcesDirectory)/kiota/kiota

.azure-pipelines/generation-templates/language-generation-kiota.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ steps:
9696
Write-Warning "Kiota directory not found: $(kiotaDirectory)"
9797
}
9898
displayName: 'List files in Kiota directory'
99-
- pwsh: '& "$(kiotaDirectory)/kiota" generate --openapi "$(Build.SourcesDirectory)/msgraph-metadata/${{ parameters.cleanMetadataFolder }}/openapi.yaml" --language "${{ parameters.language }}" -o "$(kiotaDirectory)/output" -n "${{ parameters.targetNamespace }}" -c "${{ parameters.targetClassName }}" ${{ parameters.customArguments }} ${{ parameters.pathExclusionArguments }}'
99+
- pwsh: '& "$(kiotaDirectory)/kiota.exe" generate --openapi "$(Build.SourcesDirectory)/msgraph-metadata/${{ parameters.cleanMetadataFolder }}/openapi.yaml" --language "${{ parameters.language }}" -o "$(kiotaDirectory)/output" -n "${{ parameters.targetNamespace }}" -c "${{ parameters.targetClassName }}" ${{ parameters.customArguments }} ${{ parameters.pathExclusionArguments }}'
100100
displayName: 'Run Kiota for ${{ parameters.language }} ${{ parameters.version }}'
101101
env:
102102
KIOTA_GENERATION:EXPORTPUBLICAPI: ${{ parameters.exportDom }}

.azure-pipelines/generation-templates/set-up-for-generation-kiota.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,7 @@ steps:
66
- template: /.azure-pipelines/generation-templates/set-user-config.yml@self
77
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
88
parameters:
9-
version: "10.x"
10-
11-
- pwsh: chmod +x "$(kiotaDirectory)/kiota"
12-
displayName: 'Make Kiota executable'
9+
version: "10.x" #kiota uses a net10 target
1310

1411
# checkout metadata repo if capture and clean step is skipped
1512
- checkout: msgraph-metadata

0 commit comments

Comments
 (0)