77 include :
88 - main
99 - support/v1
10+ - task/move-to-deploy-stage
1011 tags :
1112 include :
1213 - ' v*'
1516 include :
1617 - main
1718 - support/v1
19+ - task/move-to-deploy-stage
1820
1921variables :
2022 buildPlatform : ' Any CPU'
2123 buildConfiguration : ' Release'
2224 ProductBinPath : ' $(Build.SourcesDirectory)\src\Microsoft.OpenApi\bin\$(BuildConfiguration)'
23- REGISTRY : ' msgraphprodregistry .azurecr.io'
25+ REGISTRY : ' msgraphpperegistry .azurecr.io'
2426 IMAGE_NAME : ' public/openapi/hidi'
25- PREVIEW_BRANCH : ' refs/heads/main '
27+ PREVIEW_BRANCH : ' refs/heads/task/move-to-deploy-stage '
2628
2729resources :
2830 repositories :
@@ -232,98 +234,98 @@ extends:
232234 nuGetFeedType : external
233235 publishFeedCredentials : ' OpenAPI Nuget Connection'
234236
235- - deployment : deploy_lib
236- condition : and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
237- templateContext :
238- type : releaseJob
239- isProduction : true
240- inputs :
241- - input : pipelineArtifact
242- artifactName : Nugets
243- targetPath : ' $(Pipeline.Workspace)'
244- dependsOn : []
245- environment : nuget-org
246- strategy :
247- runOnce :
248- deploy :
249- pool :
250- vmImage : ubuntu-latest
251- steps :
252- - powershell : |
253- $fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
254- foreach($fileName in $fileNames) {
255- if(Test-Path $fileName) {
256- rm $fileName -Verbose
257- }
258- }
259- displayName: remove other nupkgs to avoid duplication
260- - task : 1ES.PublishNuget@1
261- displayName : ' NuGet push'
262- inputs :
263- packagesToPush : ' $(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
264- packageParentPath : ' $(Pipeline.Workspace)'
265- nuGetFeedType : external
266- publishFeedCredentials : ' OpenAPI Nuget Connection'
237+ # - deployment: deploy_lib
238+ # condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
239+ # templateContext:
240+ # type: releaseJob
241+ # isProduction: true
242+ # inputs:
243+ # - input: pipelineArtifact
244+ # artifactName: Nugets
245+ # targetPath: '$(Pipeline.Workspace)'
246+ # dependsOn: []
247+ # environment: nuget-org
248+ # strategy:
249+ # runOnce:
250+ # deploy:
251+ # pool:
252+ # vmImage: ubuntu-latest
253+ # steps:
254+ # - powershell: |
255+ # $fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
256+ # foreach($fileName in $fileNames) {
257+ # if(Test-Path $fileName) {
258+ # rm $fileName -Verbose
259+ # }
260+ # }
261+ # displayName: remove other nupkgs to avoid duplication
262+ # - task: 1ES.PublishNuget@1
263+ # displayName: 'NuGet push'
264+ # inputs:
265+ # packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
266+ # packageParentPath: '$(Pipeline.Workspace)'
267+ # nuGetFeedType: external
268+ # publishFeedCredentials: 'OpenAPI Nuget Connection'
267269
268- - deployment : deploy_yaml_reader
269- condition : and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
270- templateContext :
271- type : releaseJob
272- isProduction : true
273- inputs :
274- - input : pipelineArtifact
275- artifactName : Nugets
276- targetPath : ' $(Pipeline.Workspace)'
277- dependsOn : deploy_lib
278- environment : nuget-org
279- strategy :
280- runOnce :
281- deploy :
282- pool :
283- vmImage : ubuntu-latest
284- steps :
285- - task : 1ES.PublishNuget@1
286- displayName : ' NuGet push'
287- inputs :
288- packagesToPush : ' $(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
289- packageParentPath : ' $(Pipeline.Workspace)'
290- nuGetFeedType : external
291- publishFeedCredentials : ' OpenAPI Nuget Connection'
270+ # - deployment: deploy_yaml_reader
271+ # condition: and(contains(variables['build.sourceBranch'], 'refs/tags/v'), succeeded())
272+ # templateContext:
273+ # type: releaseJob
274+ # isProduction: true
275+ # inputs:
276+ # - input: pipelineArtifact
277+ # artifactName: Nugets
278+ # targetPath: '$(Pipeline.Workspace)'
279+ # dependsOn: deploy_lib
280+ # environment: nuget-org
281+ # strategy:
282+ # runOnce:
283+ # deploy:
284+ # pool:
285+ # vmImage: ubuntu-latest
286+ # steps:
287+ # - task: 1ES.PublishNuget@1
288+ # displayName: 'NuGet push'
289+ # inputs:
290+ # packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
291+ # packageParentPath: '$(Pipeline.Workspace)'
292+ # nuGetFeedType: external
293+ # publishFeedCredentials: 'OpenAPI Nuget Connection'
292294
293- - deployment : create_github_release
294- templateContext :
295- type : releaseJob
296- isProduction : true
297- inputs :
298- - input : pipelineArtifact
299- artifactName : Nugets
300- targetPath : ' $(Pipeline.Workspace)'
301- dependsOn : []
302- environment : kiota-github-releases
303- strategy :
304- runOnce :
305- deploy :
306- pool :
307- vmImage : ubuntu-latest
308- steps :
309- - pwsh : |
310- $artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
311- $artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
312- #Set Variable $artifactName and $artifactVersion
313- Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
314- echo "$artifactVersion"
315- displayName: 'Fetch Artifact Name'
316- - task : GitHubRelease@1
317- displayName : ' GitHub release (edit)'
318- condition : succeededOrFailed()
319- inputs :
320- gitHubConnection : ' Github-MaggieKimani1'
321- action : edit
322- tagSource : userSpecifiedTag
323- tag : ' v$(artifactVersion)'
324- releaseNotesSource : inline
325- assets : ' $(Pipeline.Workspace)\**\*.exe'
326- addChangeLog : false
295+ # - deployment: create_github_release
296+ # templateContext:
297+ # type: releaseJob
298+ # isProduction: true
299+ # inputs:
300+ # - input: pipelineArtifact
301+ # artifactName: Nugets
302+ # targetPath: '$(Pipeline.Workspace)'
303+ # dependsOn: []
304+ # environment: kiota-github-releases
305+ # strategy:
306+ # runOnce:
307+ # deploy:
308+ # pool:
309+ # vmImage: ubuntu-latest
310+ # steps:
311+ # - pwsh: |
312+ # $artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
313+ # $artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
314+ # #Set Variable $artifactName and $artifactVersion
315+ # Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
316+ # echo "$artifactVersion"
317+ # displayName: 'Fetch Artifact Name'
318+ # - task: GitHubRelease@1
319+ # displayName: 'GitHub release (edit)'
320+ # condition: succeededOrFailed()
321+ # inputs:
322+ # gitHubConnection: 'Github-MaggieKimani1'
323+ # action: edit
324+ # tagSource: userSpecifiedTag
325+ # tag: 'v$(artifactVersion)'
326+ # releaseNotesSource: inline
327+ # assets: '$(Pipeline.Workspace)\**\*.exe'
328+ # addChangeLog: false
327329
328330 - deployment : deploy_docker_image
329331 environment : kiota-github-releases
@@ -338,11 +340,11 @@ extends:
338340 - task : AzureCLI@2
339341 displayName : ' Login to Azure Container Registry'
340342 inputs :
341- azureSubscription : ' ACR Images Push Service Connection '
343+ azureSubscription : ' ACR Push Test '
342344 scriptType : bash
343345 scriptLocation : inlineScript
344346 inlineScript : |
345- az acr login --name msgraphprodregistry
347+ az acr login --name msgraphpperegistry
346348
347349 - powershell : |
348350 $content = [XML](Get-Content ./Directory.Build.props)
0 commit comments