diff --git a/.azure-pipelines/generation-pipeline.yml b/.azure-pipelines/generation-pipeline.yml index 8e1ef579d..470819e67 100644 --- a/.azure-pipelines/generation-pipeline.yml +++ b/.azure-pipelines/generation-pipeline.yml @@ -201,6 +201,20 @@ extends: targetPath: '$(Build.ArtifactStagingDirectory)' artifactName: typewriter steps: + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to Azure Artifacts' + + - pwsh: | + @" + + + + + + + + "@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8 + displayName: 'Create nuget.config (central feed)' - template: /.azure-pipelines/generation-templates/build-and-publish-typewriter.yml@self - stage: stage_build_and_publish_kiota dependsOn: [] # remove the implicit dependency to any previous stage @@ -212,6 +226,20 @@ extends: targetPath: '$(Build.ArtifactStagingDirectory)' artifactName: kiota steps: + - task: NuGetAuthenticate@1 + displayName: 'Authenticate to Azure Artifacts' + + - pwsh: | + @" + + + + + + + + "@ | Set-Content -Path "$(Build.SourcesDirectory)/nuget.config" -Encoding UTF8 + displayName: 'Create nuget.config (central feed)' - template: /.azure-pipelines/generation-templates/build-and-publish-kiota.yml@self # Downloads the latest public beta metadata. If there are changes, we checkin # the public metadata into microsoftgraph/msgraph-metadata, and then run the