Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .azure-pipelines/generation-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ resources:
type: github
endpoint: microsoftgraph (22)
name: microsoftgraph/microsoft-graph-docs
- repository: kiota
type: github
endpoint: microsoftkiota
name: microsoft/kiota
- repository: Agents-M365Copilot
type: github
endpoint: microsoftkiota
Expand Down Expand Up @@ -175,8 +171,6 @@ extends:
parameters:
sdl:
sourceRepositoriesToScan:
include:
- repository: kiota
exclude:
- repository: msgraph-sdk-dotnet
- repository: msgraph-beta-sdk-dotnet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@
steps:
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
parameters:
version: "10.x" #kiota uses a net10 target
version: "10.x"

- checkout: kiota
displayName: checkout kiota
fetchDepth: 1

- pwsh: dotnet build $(Build.SourcesDirectory)/src/kiota/kiota.csproj --configuration $(buildConfiguration)
displayName: 'Build Kiota'

- task: CopyFiles@2
inputs:
sourceFolder: '$(Build.SourcesDirectory)/src/kiota/bin/$(BuildConfiguration)/net10.0'
contents: '**/*'
targetFolder: '$(Build.ArtifactStagingDirectory)'
displayName: Copy Kiota executable
- bash: dotnet tool install Microsoft.OpenApi.Kiota --tool-path $(Build.ArtifactStagingDirectory)
displayName: 'Install latest Kiota from NuGet'
5 changes: 0 additions & 5 deletions .azure-pipelines/generation-templates/download-kiota.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ steps:
Write-Warning "Kiota directory not found: $(kiotaDirectory)"
}
displayName: 'List files in Kiota directory'
- 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 }}'
- 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 }}'
displayName: 'Run Kiota for ${{ parameters.language }} ${{ parameters.version }}'
env:
KIOTA_GENERATION:EXPORTPUBLICAPI: ${{ parameters.exportDom }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ steps:
- template: /.azure-pipelines/generation-templates/set-user-config.yml@self
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
parameters:
version: "10.x" #kiota uses a net10 target
version: "10.x"

- bash: chmod +x $(kiotaDirectory)/kiota
displayName: 'Make Kiota executable'

# checkout metadata repo if capture and clean step is skipped
- checkout: msgraph-metadata
Expand Down
Loading