Skip to content

Commit 6ced65a

Browse files
authored
update conditionals (#1112)
Signed-off-by: nkl199@yahoo.co.uk <nkl199@yahoo.co.uk>
1 parent 6fa9b12 commit 6ced65a

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

azure-pipelines.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
trigger:
2-
- main
2+
branches:
3+
include:
4+
- master
35

46
pr:
5-
- master
7+
branches:
8+
include:
9+
- master
610

711
pool:
812
vmImage: 'ubuntu-latest'
913

14+
variables:
15+
- group: credentials
16+
1017
stages:
1118
- stage: UnitTests
1219
displayName: Run unit tests
@@ -38,6 +45,7 @@ stages:
3845
3946
- stage: IntegrationTests
4047
displayName: Run integration tests
48+
condition: and(succeeded(), (variables['Build.Reason'], 'PullRequest'))
4149
dependsOn: UnitTests
4250
jobs:
4351
- job: fabricIntegration
@@ -97,7 +105,7 @@ stages:
97105
98106
- stage: Publish
99107
displayName: Publish Caliper
100-
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'), eq(variables['Build.Reason'], 'IndividualCI'))
108+
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
101109
jobs:
102110
- job: PublishNPM
103111
displayName: 'Publish Caliper NPM packages'

0 commit comments

Comments
 (0)