Skip to content
This repository was archived by the owner on Feb 1, 2025. It is now read-only.

Commit da2efc3

Browse files
committed
Updated Azure Pipelines configuration.
1 parent 4ed5d68 commit da2efc3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

azure-pipelines.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ trigger:
1212
- master
1313
- release
1414
- version1
15+
- version2
1516
- release.1
17+
- release.2
1618
# don't trigger pr builds by default, users should trigger them manually using /azp bot commands
1719
# when we have multiple test runs waiting for free job, when nobody needs them
1820
# we only want to trigger it for pr to release branch
1921
pr:
2022
- master
2123
- version1
24+
- version2
2225

2326
stages:
2427

@@ -52,7 +55,7 @@ stages:
5255
displayName: Build Solution
5356

5457
- powershell: echo "##vso[task.setvariable variable=packageVersion]$(packageVersion)-rc.$(Build.BuildId)"
55-
condition: and(ne(variables['Build.SourceBranchName'], 'release'), ne(variables['Build.SourceBranchName'], 'release.1'))
58+
condition: and(ne(variables['Build.SourceBranchName'], 'release'), ne(variables['Build.SourceBranchName'], 'release.1'), ne(variables['Build.SourceBranchName'], 'release.2'))
5659
displayName: Set nuget RC version for non-release branch
5760

5861
- task: PowerShell@2
@@ -87,7 +90,7 @@ stages:
8790
nuGetFeedType: 'internal'
8891
publishVstsFeed: '0dcc414b-ea54-451e-a54f-d63f05367c4b/967a4107-9788-41a4-9f6d-a2318aab1410'
8992
displayName: Publish to Azure Artifacts feed
90-
condition: and(succeeded(), or(eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'version1')))
93+
condition: and(succeeded(), or(eq(variables['Build.SourceBranchName'], 'master'), eq(variables['Build.SourceBranchName'], 'version1'), eq(variables['Build.SourceBranchName'], 'version2')))
9194

9295
# apikey exires around 31/07/2020
9396
- task: NuGetCommand@2
@@ -97,4 +100,4 @@ stages:
97100
nuGetFeedType: 'external'
98101
publishFeedCredentials: 'linq2db nuget.org feed'
99102
displayName: Publish to Nuget.org
100-
condition: and(succeeded(), or(eq(variables['Build.SourceBranchName'], 'release'), eq(variables['Build.SourceBranchName'], 'release.1')))
103+
condition: and(succeeded(), or(eq(variables['Build.SourceBranchName'], 'release'), eq(variables['Build.SourceBranchName'], 'release.1'), eq(variables['Build.SourceBranchName'], 'release.2')))

0 commit comments

Comments
 (0)