Skip to content

Commit e169b8a

Browse files
author
Evans Aboge (from Dev Box)
committed
Disable other deploy jobs
1 parent 2b8bb7b commit e169b8a

File tree

1 file changed

+114
-114
lines changed

1 file changed

+114
-114
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 114 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -320,123 +320,123 @@ extends:
320320
os: linux
321321
image: ubuntu-latest
322322
jobs:
323-
- deployment: deploy_hidi
324-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
325-
templateContext:
326-
type: releaseJob
327-
isProduction: true
328-
inputs:
329-
- input: pipelineArtifact
330-
artifactName: Nugets
331-
targetPath: '$(Pipeline.Workspace)'
332-
dependsOn: []
333-
environment: nuget-org
334-
strategy:
335-
runOnce:
336-
deploy:
337-
pool:
338-
vmImage: ubuntu-latest
339-
steps:
340-
- task: 1ES.PublishNuget@1
341-
displayName: 'NuGet push'
342-
inputs:
343-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg'
344-
packageParentPath: '$(Pipeline.Workspace)'
345-
nuGetFeedType: external
346-
publishFeedCredentials: 'OpenAPI Nuget Connection'
323+
# - deployment: deploy_hidi
324+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
325+
# templateContext:
326+
# type: releaseJob
327+
# isProduction: true
328+
# inputs:
329+
# - input: pipelineArtifact
330+
# artifactName: Nugets
331+
# targetPath: '$(Pipeline.Workspace)'
332+
# dependsOn: []
333+
# environment: nuget-org
334+
# strategy:
335+
# runOnce:
336+
# deploy:
337+
# pool:
338+
# vmImage: ubuntu-latest
339+
# steps:
340+
# - task: 1ES.PublishNuget@1
341+
# displayName: 'NuGet push'
342+
# inputs:
343+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg'
344+
# packageParentPath: '$(Pipeline.Workspace)'
345+
# nuGetFeedType: external
346+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
347347

348-
- deployment: deploy_lib
349-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
350-
templateContext:
351-
type: releaseJob
352-
isProduction: true
353-
inputs:
354-
- input: pipelineArtifact
355-
artifactName: Nugets
356-
targetPath: '$(Pipeline.Workspace)'
357-
dependsOn: []
358-
environment: nuget-org
359-
strategy:
360-
runOnce:
361-
deploy:
362-
pool:
363-
vmImage: ubuntu-latest
364-
steps:
365-
- powershell: |
366-
$fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
367-
foreach($fileName in $fileNames) {
368-
if(Test-Path $fileName) {
369-
rm $fileName -Verbose
370-
}
371-
}
372-
displayName: remove other nupkgs to avoid duplication
373-
- task: 1ES.PublishNuget@1
374-
displayName: 'NuGet push'
375-
inputs:
376-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
377-
packageParentPath: '$(Pipeline.Workspace)'
378-
nuGetFeedType: external
379-
publishFeedCredentials: 'OpenAPI Nuget Connection'
348+
# - deployment: deploy_lib
349+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
350+
# templateContext:
351+
# type: releaseJob
352+
# isProduction: true
353+
# inputs:
354+
# - input: pipelineArtifact
355+
# artifactName: Nugets
356+
# targetPath: '$(Pipeline.Workspace)'
357+
# dependsOn: []
358+
# environment: nuget-org
359+
# strategy:
360+
# runOnce:
361+
# deploy:
362+
# pool:
363+
# vmImage: ubuntu-latest
364+
# steps:
365+
# - powershell: |
366+
# $fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
367+
# foreach($fileName in $fileNames) {
368+
# if(Test-Path $fileName) {
369+
# rm $fileName -Verbose
370+
# }
371+
# }
372+
# displayName: remove other nupkgs to avoid duplication
373+
# - task: 1ES.PublishNuget@1
374+
# displayName: 'NuGet push'
375+
# inputs:
376+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
377+
# packageParentPath: '$(Pipeline.Workspace)'
378+
# nuGetFeedType: external
379+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
380380

381-
- deployment: deploy_yaml_reader
382-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
383-
templateContext:
384-
type: releaseJob
385-
isProduction: true
386-
inputs:
387-
- input: pipelineArtifact
388-
artifactName: Nugets
389-
targetPath: '$(Pipeline.Workspace)'
390-
dependsOn: deploy_lib
391-
environment: nuget-org
392-
strategy:
393-
runOnce:
394-
deploy:
395-
pool:
396-
vmImage: ubuntu-latest
397-
steps:
398-
- task: 1ES.PublishNuget@1
399-
displayName: 'NuGet push'
400-
inputs:
401-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
402-
packageParentPath: '$(Pipeline.Workspace)'
403-
nuGetFeedType: external
404-
publishFeedCredentials: 'OpenAPI Nuget Connection'
381+
# - deployment: deploy_yaml_reader
382+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
383+
# templateContext:
384+
# type: releaseJob
385+
# isProduction: true
386+
# inputs:
387+
# - input: pipelineArtifact
388+
# artifactName: Nugets
389+
# targetPath: '$(Pipeline.Workspace)'
390+
# dependsOn: deploy_lib
391+
# environment: nuget-org
392+
# strategy:
393+
# runOnce:
394+
# deploy:
395+
# pool:
396+
# vmImage: ubuntu-latest
397+
# steps:
398+
# - task: 1ES.PublishNuget@1
399+
# displayName: 'NuGet push'
400+
# inputs:
401+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
402+
# packageParentPath: '$(Pipeline.Workspace)'
403+
# nuGetFeedType: external
404+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
405405

406-
- deployment: create_github_release
407-
templateContext:
408-
type: releaseJob
409-
isProduction: true
410-
inputs:
411-
- input: pipelineArtifact
412-
artifactName: Nugets
413-
targetPath: '$(Pipeline.Workspace)'
414-
dependsOn: []
415-
environment: kiota-github-releases
416-
strategy:
417-
runOnce:
418-
deploy:
419-
pool:
420-
vmImage: ubuntu-latest
421-
steps:
422-
- pwsh: |
423-
$artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
424-
$artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
425-
#Set Variable $artifactName and $artifactVersion
426-
Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
427-
echo "$artifactVersion"
428-
displayName: 'Fetch Artifact Name'
429-
- task: GitHubRelease@1
430-
displayName: 'GitHub release (edit)'
431-
condition: succeededOrFailed()
432-
inputs:
433-
gitHubConnection: 'Github-MaggieKimani1'
434-
action: edit
435-
tagSource: userSpecifiedTag
436-
tag: 'v$(artifactVersion)'
437-
releaseNotesSource: inline
438-
assets: '$(Pipeline.Workspace)\**\*.exe'
439-
addChangeLog: false
406+
# - deployment: create_github_release
407+
# templateContext:
408+
# type: releaseJob
409+
# isProduction: true
410+
# inputs:
411+
# - input: pipelineArtifact
412+
# artifactName: Nugets
413+
# targetPath: '$(Pipeline.Workspace)'
414+
# dependsOn: []
415+
# environment: kiota-github-releases
416+
# strategy:
417+
# runOnce:
418+
# deploy:
419+
# pool:
420+
# vmImage: ubuntu-latest
421+
# steps:
422+
# - pwsh: |
423+
# $artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
424+
# $artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
425+
# #Set Variable $artifactName and $artifactVersion
426+
# Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
427+
# echo "$artifactVersion"
428+
# displayName: 'Fetch Artifact Name'
429+
# - task: GitHubRelease@1
430+
# displayName: 'GitHub release (edit)'
431+
# condition: succeededOrFailed()
432+
# inputs:
433+
# gitHubConnection: 'Github-MaggieKimani1'
434+
# action: edit
435+
# tagSource: userSpecifiedTag
436+
# tag: 'v$(artifactVersion)'
437+
# releaseNotesSource: inline
438+
# assets: '$(Pipeline.Workspace)\**\*.exe'
439+
# addChangeLog: false
440440

441441
- deployment: deploy_docker_image
442442
environment: docker-images-deploy

0 commit comments

Comments
 (0)