Skip to content
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why are we downloading from the github releases rather than installing the dotnet tool?

Also we need to use actual script for multi-line scripts not inline.

Original file line number Diff line number Diff line change
@@ -1,18 +1,5 @@
steps:
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
parameters:
version: "10.x" #kiota uses a net10 target

- 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
- pwsh: |
dotnet tool install Microsoft.OpenApi.Kiota `
--tool-path "$(Build.ArtifactStagingDirectory)"
displayName: 'Install Kiota via dotnet tool'
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"

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

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