Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use common environment for releasing #41912

Merged
merged 2 commits into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions eng/pipelines/templates/stages/archetype-net-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ parameters:
DevOpsFeedId: '29ec6040-b234-4e31-b139-33dc4287b756/fa8c16a3-dbe0-4de2-a297-03065ec1ba3f'
TargetDocRepoOwner: 'not-specified'
TargetDocRepoName: 'not-specified'
Environment: nuget
stages:
- stage: Signing
dependsOn: ${{parameters.DependsOn}}
Expand All @@ -21,18 +20,17 @@ stages:
runOnce:
deploy:
steps:
- checkout: none
- checkout: azure-sdk-build-tools
path: azure-sdk-build-tools

- download: current
artifact: ${{parameters.ArtifactName}}
timeoutInMinutes: 5

- template: tools/clone-buildtools/clone-buildtools.yml@azure-sdk-build-tools

- template: pipelines/steps/net-signing.yml@azure-sdk-build-tools
parameters:
PackagesPath: $(Pipeline.Workspace)/${{parameters.ArtifactName}}
BuildToolsPath: $(AzureSDKBuildToolsPath)
BuildToolsPath: $(Pipeline.Workspace)/azure-sdk-build-tools

- publish: $(Pipeline.Workspace)/${{parameters.ArtifactName}}
artifact: ${{parameters.ArtifactName}}-signed
Expand All @@ -50,7 +48,7 @@ stages:
- deployment: TagRepository
displayName: "Create release tag"
condition: ne(variables['Skip.TagRepository'], 'true')
environment: ${{parameters.Environment}}
environment: package-publish

pool:
name: azsdk-pool-mms-win-2022-general
Expand Down Expand Up @@ -102,7 +100,7 @@ stages:
- deployment: PublishPackage
displayName: Publish package to Nuget.org and DevOps Feed
condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true'))
environment: ${{parameters.Environment}}
environment: package-publish
dependsOn: TagRepository

pool:
Expand Down Expand Up @@ -132,7 +130,7 @@ stages:
- deployment: UploadSymbols
displayName: Upload Symbols to Symbols Server
condition: and(succeeded(), ne(variables['Skip.SymbolsUpload'], 'true'))
environment: ${{parameters.Environment}}
environment: package-publish
dependsOn: PublishPackage

pool:
Expand All @@ -143,12 +141,13 @@ stages:
runOnce:
deploy:
steps:
- checkout: none
- template: tools/clone-buildtools/clone-buildtools.yml@azure-sdk-build-tools
- checkout: azure-sdk-build-tools
path: azure-sdk-build-tools

- task: MSBuild@1
displayName: 'Upload Symbols for ${{artifact.name}}'
inputs:
solution: '$(AzureSDKBuildToolsPath)/tools/symboltool/SymbolUploader.proj'
solution: '$(Pipeline.Workspace)/azure-sdk-build-tools/tools/symboltool/SymbolUploader.proj'
msbuildArguments: >-
/p:PackagesPath=$(Pipeline.Workspace)/${{parameters.ArtifactName}}-signed/${{artifact.name}}
/p:MSPublicSymbolsPAT=$(azuresdk-microsoftpublicsymbols-devops-pat)
Expand All @@ -159,7 +158,7 @@ stages:
- deployment: PublicDocsMS
displayName: Publish to Docs.MS
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))
environment: ${{parameters.Environment}}
environment: package-publish
dependsOn: PublishPackage

pool:
Expand Down Expand Up @@ -192,7 +191,7 @@ stages:
- deployment: PublishDocs
displayName: Publish Docs to GitHub pages
condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true'))
environment: ${{parameters.Environment}}
environment: package-publish
dependsOn: PublishPackage

pool:
Expand All @@ -218,7 +217,7 @@ stages:
- deployment: UpdatePackageVersion
displayName: "Update Package Version"
condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true'))
environment: ${{parameters.Environment}}
environment: package-publish
dependsOn: PublishPackage

pool:
Expand Down Expand Up @@ -262,8 +261,9 @@ stages:
name: azsdk-pool-mms-win-2022-general
vmImage: windows-2022
steps:
- checkout: none
- template: tools/clone-buildtools/clone-buildtools.yml@azure-sdk-build-tools
- checkout: azure-sdk-build-tools
path: azure-sdk-build-tools

- download: current
artifact: ${{parameters.ArtifactName}}-signed
- pwsh: |
Expand Down
2 changes: 0 additions & 2 deletions eng/pipelines/templates/stages/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,3 @@ stages:
ArtifactName: packages
TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }}
TargetDocRepoName: ${{ parameters.TargetDocRepoName }}
${{ if eq(parameters.ReleaseDependsOnLiveTests, 'false') }}:
weshaggard marked this conversation as resolved.
Show resolved Hide resolved
Environment: 'nuget-break-glass-approvers'