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

ci: add auto release flag for mgmt. plane release #17356

Merged
merged 5 commits into from
Mar 29, 2022
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
2 changes: 1 addition & 1 deletion eng/pipelines/templates/jobs/archetype-go-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ stages:
ReleaseSha: $(Build.SourceVersion)
RepoId: Azure/azure-sdk-for-go
WorkingDirectory: $(System.DefaultWorkingDirectory)

- ${{ if not(and(startsWith(parameters.ServiceDirectory, 'resourcemanager'), ne(parameters.ServiceDirectory, 'resourcemanager/internal'))) }}:
- deployment: UpdatePackageVersion
displayName: "Update Package Version"
Expand Down
34 changes: 21 additions & 13 deletions eng/pipelines/templates/jobs/archetype-sdk-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ parameters:
- name: TestRunTime
type: string
default: '600s'
- name: IncludeRelease
type: boolean
default: false


stages:
Expand Down Expand Up @@ -192,16 +195,21 @@ stages:
Location: ${{ coalesce(parameters.Location, cloud.value.Location) }}
Cloud: ${{ cloud.key }}

# The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch.
- ${{if and(in(variables['Build.Reason'], 'Manual', ''), not(contains(variables['Build.DefinitionName'], 'weekly')), eq(variables['System.TeamProject'], 'internal'))}}:
- template: archetype-go-release.yml
parameters:
DependsOn:
- Build
# Copy cloud conditional logic from live test stage
- ${{if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.RunLiveTests, 'true'))}}:
- ${{ each cloud in parameters.CloudConfig }}:
- ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}:
- ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}:
- ${{ cloud.key }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
# The Prerelease and Release stages are conditioned on:
# 1. Internal trigger, not Pull Request trigger
# 2. Not weekly build
# 3. Manual trigger or force IncludeRelease
- ${{ if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal')) }}:
- ${{ if not(contains(variables['Build.DefinitionName'], 'weekly')) }}:
- ${{ if or(in(variables['Build.Reason'], 'Manual', ''), eq(parameters.IncludeRelease, true)) }}:
- template: archetype-go-release.yml
parameters:
DependsOn:
- Build
# Copy cloud conditional logic from live test stage
- ${{if and(eq(variables['System.TeamProject'], 'internal'), eq(parameters.RunLiveTests, 'true'))}}:
- ${{ each cloud in parameters.CloudConfig }}:
- ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}:
- ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}:
- ${{ cloud.key }}
ServiceDirectory: ${{ parameters.ServiceDirectory }}
3 changes: 3 additions & 0 deletions eng/tools/doccheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ func findAllSubDirectories(root string) []string {
if strings.Contains(path, "resourcemanager") {
isMGMT = true
}
if strings.Contains(path, "eng/tools") {
return filepath.SkipDir
}
if info.IsDir() && strings.HasSuffix(path, "internal") {
return filepath.SkipDir
} else if info.IsDir() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/{{rpName}}/{{packageName}}'
1 change: 1 addition & 0 deletions sdk/resourcemanager/aad/armaad/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/aad/armaad'
1 change: 1 addition & 0 deletions sdk/resourcemanager/advisor/armadvisor/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/advisor/armadvisor'
1 change: 1 addition & 0 deletions sdk/resourcemanager/agrifood/armagrifood/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/agrifood/armagrifood'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/alertsmanagement/armalertsmanagement'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/analysisservices/armanalysisservices'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/apimanagement/armapimanagement'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/appconfiguration/armappconfiguration'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/applicationinsights/armapplicationinsights'
1 change: 1 addition & 0 deletions sdk/resourcemanager/appplatform/armappplatform/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/appplatform/armappplatform'
1 change: 1 addition & 0 deletions sdk/resourcemanager/appservice/armappservice/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/appservice/armappservice'
1 change: 1 addition & 0 deletions sdk/resourcemanager/attestation/armattestation/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/attestation/armattestation'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/authorization/armauthorization'
1 change: 1 addition & 0 deletions sdk/resourcemanager/automanage/armautomanage/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/automanage/armautomanage'
1 change: 1 addition & 0 deletions sdk/resourcemanager/automation/armautomation/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/automation/armautomation'
1 change: 1 addition & 0 deletions sdk/resourcemanager/avs/armavs/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/avs/armavs'
1 change: 1 addition & 0 deletions sdk/resourcemanager/azurearcdata/armazurearcdata/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/azurearcdata/armazurearcdata'
1 change: 1 addition & 0 deletions sdk/resourcemanager/azuredata/armazuredata/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/azuredata/armazuredata'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/azurestackhci/armazurestackhci'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/baremetalinfrastructure/armbaremetalinfrastructure'
1 change: 1 addition & 0 deletions sdk/resourcemanager/batch/armbatch/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/batch/armbatch'
1 change: 1 addition & 0 deletions sdk/resourcemanager/billing/armbilling/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/billing/armbilling'
1 change: 1 addition & 0 deletions sdk/resourcemanager/blockchain/armblockchain/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/blockchain/armblockchain'
1 change: 1 addition & 0 deletions sdk/resourcemanager/blueprint/armblueprint/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/blueprint/armblueprint'
1 change: 1 addition & 0 deletions sdk/resourcemanager/botservice/armbotservice/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/botservice/armbotservice'
1 change: 1 addition & 0 deletions sdk/resourcemanager/cdn/armcdn/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/cdn/armcdn'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/changeanalysis/armchangeanalysis'
1 change: 1 addition & 0 deletions sdk/resourcemanager/chaos/armchaos/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/chaos/armchaos'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/cognitiveservices/armcognitiveservices'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/communication/armcommunication'
1 change: 1 addition & 0 deletions sdk/resourcemanager/compute/armcompute/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/compute/armcompute'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/confidentialledger/armconfidentialledger'
1 change: 1 addition & 0 deletions sdk/resourcemanager/confluent/armconfluent/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/confluent/armconfluent'
1 change: 1 addition & 0 deletions sdk/resourcemanager/consumption/armconsumption/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/consumption/armconsumption'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/containerinstance/armcontainerinstance'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/containerregistry/armcontainerregistry'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/containerservice/armcontainerservice'
1 change: 1 addition & 0 deletions sdk/resourcemanager/cosmos/armcosmos/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/cosmos/armcosmos'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/costmanagement/armcostmanagement'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/customerlockbox/armcustomerlockbox'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/customproviders/armcustomproviders'
1 change: 1 addition & 0 deletions sdk/resourcemanager/databox/armdatabox/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/databox/armdatabox'
1 change: 1 addition & 0 deletions sdk/resourcemanager/databoxedge/armdataboxedge/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/databoxedge/armdataboxedge'
1 change: 1 addition & 0 deletions sdk/resourcemanager/databricks/armdatabricks/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/databricks/armdatabricks'
1 change: 1 addition & 0 deletions sdk/resourcemanager/datacatalog/armdatacatalog/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datacatalog/armdatacatalog'
1 change: 1 addition & 0 deletions sdk/resourcemanager/datadog/armdatadog/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datadog/armdatadog'
1 change: 1 addition & 0 deletions sdk/resourcemanager/datafactory/armdatafactory/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datafactory/armdatafactory'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datalake-analytics/armdatalakeanalytics'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datalake-store/armdatalakestore'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/dataprotection/armdataprotection'
1 change: 1 addition & 0 deletions sdk/resourcemanager/datashare/armdatashare/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/datashare/armdatashare'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/deploymentmanager/armdeploymentmanager'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/desktopvirtualization/armdesktopvirtualization'
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/deviceprovisioningservices/armdeviceprovisioningservices'
1 change: 1 addition & 0 deletions sdk/resourcemanager/deviceupdate/armdeviceupdate/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/deviceupdate/armdeviceupdate'
1 change: 1 addition & 0 deletions sdk/resourcemanager/devops/armdevops/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ pr:
stages:
- template: /eng/pipelines/templates/jobs/archetype-sdk-client.yml
parameters:
IncludeRelease: true
ServiceDirectory: 'resourcemanager/devops/armdevops'
Loading