@@ -52,7 +52,7 @@ variables:
52
52
- name : _InternalRuntimeDownloadCodeSignArgs
53
53
value : /p:DotNetRuntimeSourceFeed=https://dotnetclimsrc.blob.core.windows.net/dotnet /p:DotNetRuntimeSourceFeedKey=$(dotnetclimsrc-read-sas-token-base64)
54
54
- ${{ if eq(variables['System.TeamProject'], 'internal') }} :
55
- - ${{ if ne (variables['Build.Reason'], 'PullRequest') }} :
55
+ - ${{ if notin (variables['Build.Reason'], 'PullRequest') }} :
56
56
# DotNet-Blob-Feed provides: dotnetfeed-storage-access-key-1
57
57
# Publish-Build-Assets provides: MaestroAccessToken, BotAccount-dotnet-maestro-bot-PAT
58
58
- group : DotNet-Blob-Feed
@@ -72,7 +72,7 @@ variables:
72
72
/p:DotNetPublishToBlobFeed=$(_DotNetPublishToBlobFeed)
73
73
/p:DotNetPublishUsingPipelines=$(_PublishUsingPipelines)
74
74
/p:DotNetArtifactsCategory=$(_DotNetArtifactsCategory)
75
- - ${{ if eq (variables['Build.Reason'], 'PullRequest') }} :
75
+ - ${{ if in (variables['Build.Reason'], 'PullRequest') }} :
76
76
- name : _BuildArgs
77
77
value : ' '
78
78
- name : _SignType
@@ -82,7 +82,7 @@ variables:
82
82
# used for post-build phases, internal builds only
83
83
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
84
84
- group : DotNet-AspNet-SDLValidation-Params
85
-
85
+
86
86
stages :
87
87
- stage : build
88
88
displayName : Build
@@ -119,10 +119,10 @@ stages:
119
119
agentOs : Windows
120
120
steps :
121
121
- script : " echo ##vso[build.addbuildtag]daily-build"
122
- condition : and(ne (variables['Build.Reason'], 'PullRequest'), notin(variables['DotNetFinalVersionKind'], 'release', 'prerelease'))
122
+ condition : and(notin (variables['Build.Reason'], 'PullRequest'), notin(variables['DotNetFinalVersionKind'], 'release', 'prerelease'))
123
123
displayName : ' Set CI tags'
124
124
- script : " echo ##vso[build.addbuildtag]release-candidate"
125
- condition : and(ne (variables['Build.Reason'], 'PullRequest'), in(variables['DotNetFinalVersionKind'], 'release', 'prerelease'))
125
+ condition : and(notin (variables['Build.Reason'], 'PullRequest'), in(variables['DotNetFinalVersionKind'], 'release', 'prerelease'))
126
126
displayName : ' Set CI tags'
127
127
128
128
# !!! NOTE !!! Some of these steps have disabled code signing.
@@ -676,7 +676,7 @@ stages:
676
676
displayName : Upload package artifacts
677
677
# Only capture source build artifacts in PRs for the sake of inspecting
678
678
# changes that impact source-build. The artifacts from this build pipeline are never actually used.
679
- condition : and(succeeded(), eq (variables['Build.Reason'], 'PullRequest'))
679
+ condition : and(succeeded(), in (variables['Build.Reason'], 'PullRequest'))
680
680
inputs :
681
681
pathtoPublish : artifacts/packages/
682
682
artifactName : Source_Build_Packages
0 commit comments