Skip to content

Commit 2769437

Browse files
committed
Correct manual internal builds
- need to explicitly set `$(BuildNumber)` property in all build steps nit: Run all test jobs in internal pull requests
1 parent 4304fc7 commit 2769437

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.azure/pipelines/ci.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,25 @@ jobs:
3737
jobName: Windows_Build
3838
jobDisplayName: "Build and test: Windows"
3939
agentOs: Windows
40+
buildArgs: $(BuildScriptArgs)
4041
codeSign: true
4142
beforeBuild:
4243
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1"
4344
displayName: Setup IISExpress test certificates
44-
# Unix test jobs only run on public CI builds
45-
- ${{ if eq(variables['System.TeamProject'], 'public') }}:
45+
# Unix test jobs only run on public CI builds and PRs
46+
- ${{ if or(eq(variables['System.TeamProject'], 'public'), in(variables['Build.Reason'], 'PullRequest')) }}:
4647
- template: jobs/default-build.yml
4748
parameters:
4849
jobName: MacOs_Build
4950
jobDisplayName: "Build and test : MacOS"
5051
agentOs: MacOS
52+
buildArgs: $(BuildScriptArgs)
5153
- template: jobs/default-build.yml
5254
parameters:
5355
jobName: Linux_Build
5456
jobDisplayName: "Build and test : Linux"
5557
agentOs: Linux
58+
buildArgs: $(BuildScriptArgs)
5659

5760
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
5861
- job: Windows_SharedFx
@@ -468,7 +471,7 @@ jobs:
468471

469472
- job: SharedFX_Installers
470473
displayName: Build SharedFX Installers
471-
dependsOn:
474+
dependsOn:
472475
- Linux_SharedFx
473476
- Linux_Musl_SharedFx
474477
- MacOs_SharedFx
@@ -554,7 +557,7 @@ jobs:
554557

555558
- job: Publish
556559
displayName: Publish
557-
dependsOn:
560+
dependsOn:
558561
- Windows_Installers
559562
- SharedFX_Installers
560563
- Package_Archive

0 commit comments

Comments
 (0)