Skip to content

Commit

Permalink
Add parameter for skipping the tagRepository deployment (Azure#27438)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Mar 14, 2022
1 parent 5b4ebab commit 26dc47f
Showing 1 changed file with 46 additions and 45 deletions.
91 changes: 46 additions & 45 deletions eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,51 +43,52 @@ stages:
dependsOn: Signing
condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-net-pr'))
jobs:
- deployment: TagRepository
displayName: "Create release tag"
condition: ne(variables['Skip.TagRepository'], 'true')
environment: github

pool:
name: azsdk-pool-mms-win-2019-general
vmImage: MMS2019

strategy:
runOnce:
deploy:
steps:
- checkout: self
- download: current
artifact: ${{parameters.ArtifactName}}-signed
- template: /eng/pipelines/templates/steps/install-dotnet.yml
parameters:
EnableNuGetCache: false
- template: /eng/common/pipelines/templates/steps/retain-run.yml
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
parameters:
PackageName: "Azure.Template"
ServiceDirectory: "template"
TestPipeline: ${{ parameters.TestPipeline }}
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- task: PowerShell@2
inputs:
filePath: $(System.DefaultWorkingDirectory)/eng/scripts/InstallationCheck.ps1
pwsh: true
arguments: >
-ArtifactsDirectory "$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed"
-Artifact ${{artifact.name}}
condition: and(succeeded(),ne('${{ artifact.skipPublishPackage }}', 'true'))
displayName: Verify Package Installation
- template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml
parameters:
ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}
PackageRepository: Nuget
ReleaseSha: $(Build.SourceVersion)
RepoId: Azure/azure-sdk-for-net
- ${{if ne(artifact.skipTagRepository, 'true')}}:
- deployment: TagRepository
displayName: "Create release tag"
condition: ne(variables['Skip.TagRepository'], 'true')
environment: github

pool:
name: azsdk-pool-mms-win-2019-general
vmImage: MMS2019

strategy:
runOnce:
deploy:
steps:
- checkout: self
- download: current
artifact: ${{parameters.ArtifactName}}-signed
- template: /eng/pipelines/templates/steps/install-dotnet.yml
parameters:
EnableNuGetCache: false
- template: /eng/common/pipelines/templates/steps/retain-run.yml
- template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml
parameters:
PackageName: "Azure.Template"
ServiceDirectory: "template"
TestPipeline: ${{ parameters.TestPipeline }}
- template: /eng/common/pipelines/templates/steps/verify-changelog.yml
parameters:
PackageName: ${{artifact.name}}
ServiceName: ${{parameters.ServiceDirectory}}
ForRelease: true
- task: PowerShell@2
inputs:
filePath: $(System.DefaultWorkingDirectory)/eng/scripts/InstallationCheck.ps1
pwsh: true
arguments: >
-ArtifactsDirectory "$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed"
-Artifact ${{artifact.name}}
condition: and(succeeded(),ne('${{ artifact.skipPublishPackage }}', 'true'))
displayName: Verify Package Installation
- template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml
parameters:
ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}
PackageRepository: Nuget
ReleaseSha: $(Build.SourceVersion)
RepoId: Azure/azure-sdk-for-net

- ${{if ne(artifact.skipPublishPackage, 'true')}}:
- deployment: PublishPackage
Expand Down

0 comments on commit 26dc47f

Please sign in to comment.