Skip to content

Commit ec3e05d

Browse files
author
Evans Aboge (from Dev Box)
committed
Test deploy
1 parent 436e048 commit ec3e05d

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
@@ -225,123 +225,123 @@ extends:
225225
os: linux
226226
image: ubuntu-latest
227227
jobs:
228-
- deployment: deploy_hidi
229-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
230-
templateContext:
231-
type: releaseJob
232-
isProduction: true
233-
inputs:
234-
- input: pipelineArtifact
235-
artifactName: Nugets
236-
targetPath: '$(Pipeline.Workspace)'
237-
dependsOn: []
238-
environment: nuget-org
239-
strategy:
240-
runOnce:
241-
deploy:
242-
pool:
243-
vmImage: ubuntu-latest
244-
steps:
245-
- task: 1ES.PublishNuget@1
246-
displayName: 'NuGet push'
247-
inputs:
248-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg'
249-
packageParentPath: '$(Pipeline.Workspace)'
250-
nuGetFeedType: external
251-
publishFeedCredentials: 'OpenAPI Nuget Connection'
228+
# - deployment: deploy_hidi
229+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
230+
# templateContext:
231+
# type: releaseJob
232+
# isProduction: true
233+
# inputs:
234+
# - input: pipelineArtifact
235+
# artifactName: Nugets
236+
# targetPath: '$(Pipeline.Workspace)'
237+
# dependsOn: []
238+
# environment: nuget-org
239+
# strategy:
240+
# runOnce:
241+
# deploy:
242+
# pool:
243+
# vmImage: ubuntu-latest
244+
# steps:
245+
# - task: 1ES.PublishNuget@1
246+
# displayName: 'NuGet push'
247+
# inputs:
248+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg'
249+
# packageParentPath: '$(Pipeline.Workspace)'
250+
# nuGetFeedType: external
251+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
252252

253-
- deployment: deploy_lib
254-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
255-
templateContext:
256-
type: releaseJob
257-
isProduction: true
258-
inputs:
259-
- input: pipelineArtifact
260-
artifactName: Nugets
261-
targetPath: '$(Pipeline.Workspace)'
262-
dependsOn: []
263-
environment: nuget-org
264-
strategy:
265-
runOnce:
266-
deploy:
267-
pool:
268-
vmImage: ubuntu-latest
269-
steps:
270-
- powershell: |
271-
$fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
272-
foreach($fileName in $fileNames) {
273-
if(Test-Path $fileName) {
274-
rm $fileName -Verbose
275-
}
276-
}
277-
displayName: remove other nupkgs to avoid duplication
278-
- task: 1ES.PublishNuget@1
279-
displayName: 'NuGet push'
280-
inputs:
281-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
282-
packageParentPath: '$(Pipeline.Workspace)'
283-
nuGetFeedType: external
284-
publishFeedCredentials: 'OpenAPI Nuget Connection'
253+
# - deployment: deploy_lib
254+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
255+
# templateContext:
256+
# type: releaseJob
257+
# isProduction: true
258+
# inputs:
259+
# - input: pipelineArtifact
260+
# artifactName: Nugets
261+
# targetPath: '$(Pipeline.Workspace)'
262+
# dependsOn: []
263+
# environment: nuget-org
264+
# strategy:
265+
# runOnce:
266+
# deploy:
267+
# pool:
268+
# vmImage: ubuntu-latest
269+
# steps:
270+
# - powershell: |
271+
# $fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
272+
# foreach($fileName in $fileNames) {
273+
# if(Test-Path $fileName) {
274+
# rm $fileName -Verbose
275+
# }
276+
# }
277+
# displayName: remove other nupkgs to avoid duplication
278+
# - task: 1ES.PublishNuget@1
279+
# displayName: 'NuGet push'
280+
# inputs:
281+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.*.nupkg'
282+
# packageParentPath: '$(Pipeline.Workspace)'
283+
# nuGetFeedType: external
284+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
285285

286-
- deployment: deploy_yaml_reader
287-
condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
288-
templateContext:
289-
type: releaseJob
290-
isProduction: true
291-
inputs:
292-
- input: pipelineArtifact
293-
artifactName: Nugets
294-
targetPath: '$(Pipeline.Workspace)'
295-
dependsOn: deploy_lib
296-
environment: nuget-org
297-
strategy:
298-
runOnce:
299-
deploy:
300-
pool:
301-
vmImage: ubuntu-latest
302-
steps:
303-
- task: 1ES.PublishNuget@1
304-
displayName: 'NuGet push'
305-
inputs:
306-
packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
307-
packageParentPath: '$(Pipeline.Workspace)'
308-
nuGetFeedType: external
309-
publishFeedCredentials: 'OpenAPI Nuget Connection'
286+
# - deployment: deploy_yaml_reader
287+
# condition: and(contains(variables['build.SourceBranch'], 'refs/tags/v'), succeeded())
288+
# templateContext:
289+
# type: releaseJob
290+
# isProduction: true
291+
# inputs:
292+
# - input: pipelineArtifact
293+
# artifactName: Nugets
294+
# targetPath: '$(Pipeline.Workspace)'
295+
# dependsOn: deploy_lib
296+
# environment: nuget-org
297+
# strategy:
298+
# runOnce:
299+
# deploy:
300+
# pool:
301+
# vmImage: ubuntu-latest
302+
# steps:
303+
# - task: 1ES.PublishNuget@1
304+
# displayName: 'NuGet push'
305+
# inputs:
306+
# packagesToPush: '$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg'
307+
# packageParentPath: '$(Pipeline.Workspace)'
308+
# nuGetFeedType: external
309+
# publishFeedCredentials: 'OpenAPI Nuget Connection'
310310

311-
- deployment: create_github_release
312-
templateContext:
313-
type: releaseJob
314-
isProduction: true
315-
inputs:
316-
- input: pipelineArtifact
317-
artifactName: Nugets
318-
targetPath: '$(Pipeline.Workspace)'
319-
dependsOn: []
320-
environment: kiota-github-releases
321-
strategy:
322-
runOnce:
323-
deploy:
324-
pool:
325-
vmImage: ubuntu-latest
326-
steps:
327-
- pwsh: |
328-
$artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
329-
$artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
330-
#Set Variable $artifactName and $artifactVersion
331-
Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
332-
echo "$artifactVersion"
333-
displayName: 'Fetch Artifact Name'
334-
- task: GitHubRelease@1
335-
displayName: 'GitHub release (edit)'
336-
condition: succeededOrFailed()
337-
inputs:
338-
gitHubConnection: 'Github-MaggieKimani1'
339-
action: edit
340-
tagSource: userSpecifiedTag
341-
tag: 'v$(artifactVersion)'
342-
releaseNotesSource: inline
343-
assets: '$(Pipeline.Workspace)\**\*.exe'
344-
addChangeLog: false
311+
# - deployment: create_github_release
312+
# templateContext:
313+
# type: releaseJob
314+
# isProduction: true
315+
# inputs:
316+
# - input: pipelineArtifact
317+
# artifactName: Nugets
318+
# targetPath: '$(Pipeline.Workspace)'
319+
# dependsOn: []
320+
# environment: kiota-github-releases
321+
# strategy:
322+
# runOnce:
323+
# deploy:
324+
# pool:
325+
# vmImage: ubuntu-latest
326+
# steps:
327+
# - pwsh: |
328+
# $artifactName = Get-ChildItem -Path $(Pipeline.Workspace) -Filter Microsoft.OpenApi.*.nupkg -recurse | select -First 1
329+
# $artifactVersion= $artifactName.Name -replace "Microsoft.OpenApi.", "" -replace ".nupkg", ""
330+
# #Set Variable $artifactName and $artifactVersion
331+
# Write-Host "##vso[task.setvariable variable=artifactVersion; isSecret=false;]$artifactVersion"
332+
# echo "$artifactVersion"
333+
# displayName: 'Fetch Artifact Name'
334+
# - task: GitHubRelease@1
335+
# displayName: 'GitHub release (edit)'
336+
# condition: succeededOrFailed()
337+
# inputs:
338+
# gitHubConnection: 'Github-MaggieKimani1'
339+
# action: edit
340+
# tagSource: userSpecifiedTag
341+
# tag: 'v$(artifactVersion)'
342+
# releaseNotesSource: inline
343+
# assets: '$(Pipeline.Workspace)\**\*.exe'
344+
# addChangeLog: false
345345

346346
- deployment: deploy_docker_image
347347
environment: docker-images-deploy

0 commit comments

Comments
 (0)