Skip to content

Commit 1950e52

Browse files
author
Jason Zhai
committed
Update build.yml
1 parent b095811 commit 1950e52

File tree

1 file changed

+12
-15
lines changed

1 file changed

+12
-15
lines changed

eng/build-pr.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ parameters:
1515
timeoutInMinutes: 180
1616

1717
jobs:
18-
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/release/8.0.3xx'), not(contains(parameters.agentOs, 'TemplateEngine'))) }}:
18+
- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/release/8.0.2xx'), not(contains(parameters.agentOs, 'TemplateEngine'))) }}:
1919
- template: /eng/common/templates/job/onelocbuild.yml
2020
parameters:
2121
CreatePr: true
2222
LclSource: lclFilesfromPackage
2323
LclPackageId: 'LCL-JUNO-PROD-DOTNETSDK'
24-
MirrorBranch: release/8.0.3xx
24+
MirrorBranch: release/8.0.2xx
2525
MirrorRepo: sdk
2626

2727
- ${{ if not(contains(parameters.agentOs, 'TemplateEngine')) }}:
@@ -88,7 +88,7 @@ jobs:
8888
-ci
8989
-restore
9090
$(_Test)
91-
-projects $(Build.SourcesDirectory)\test\UnitTests.proj
91+
-projects $(Build.SourcesDirectory)\src\Tests\UnitTests.proj
9292
/bl:$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)\TestInHelix.binlog
9393
/p:_CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
9494
$(_InternalRuntimeDownloadArgs)
@@ -120,7 +120,7 @@ jobs:
120120
-ci
121121
-restore
122122
-test
123-
-projects $(Build.SourcesDirectory)\test\UnitTests.proj
123+
-projects $(Build.SourcesDirectory)\src\Tests\UnitTests.proj
124124
/bl:$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)\TestInHelix.binlog
125125
/p:_CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
126126
$(_InternalRuntimeDownloadArgs)
@@ -161,7 +161,7 @@ jobs:
161161
-ci
162162
-restore
163163
-test
164-
-projects $(Build.SourcesDirectory)/test/UnitTests.proj
164+
-projects $(Build.SourcesDirectory)/src/Tests/UnitTests.proj
165165
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/TestInHelix.binlog
166166
/p:_CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
167167
$(_InternalRuntimeDownloadArgs)
@@ -190,7 +190,6 @@ jobs:
190190
log/$(_BuildConfig)/**/*
191191
TestResults/$(_BuildConfig)/**/*
192192
SymStore/$(_BuildConfig)/**/*
193-
tmp/$(_BuildConfig)/**/*.binlog
194193
TargetFolder: '$(Build.ArtifactStagingDirectory)'
195194
continueOnError: true
196195
condition: always()
@@ -269,7 +268,7 @@ jobs:
269268
-restore
270269
-test
271270
-prepareMachine
272-
-projects $(Build.SourcesDirectory)/test/UnitTests.proj
271+
-projects $(Build.SourcesDirectory)/src/Tests/UnitTests.proj
273272
-configuration $(_BuildConfig)
274273
/bl:$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)\TestInHelix.binlog
275274
/p:_CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
@@ -303,7 +302,7 @@ jobs:
303302
--ci
304303
--restore
305304
--test
306-
--projects $(Build.SourcesDirectory)/test/UnitTests.proj
305+
--projects $(Build.SourcesDirectory)/src/Tests/UnitTests.proj
307306
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/TestInHelix.binlog
308307
/p:_CustomHelixTargetQueue=${{ parameters.helixTargetQueue }}
309308
$(_InternalRuntimeDownloadArgs)
@@ -322,7 +321,6 @@ jobs:
322321
log/$(_BuildConfig)/**/*
323322
TestResults/$(_BuildConfig)/**/*
324323
SymStore/$(_BuildConfig)/**/*
325-
tmp/$(_BuildConfig)/**/*.binlog
326324
TargetFolder: '$(Build.ArtifactStagingDirectory)'
327325
continueOnError: true
328326
condition: always()
@@ -398,7 +396,7 @@ jobs:
398396
-ci
399397
-restore
400398
$(_Test)
401-
-projects $(Build.SourcesDirectory)\test\Microsoft.TemplateEngine.Cli.UnitTests\Microsoft.TemplateEngine.Cli.UnitTests.csproj
399+
-projects $(Build.SourcesDirectory)\src\Tests\Microsoft.TemplateEngine.Cli.UnitTests\Microsoft.TemplateEngine.Cli.UnitTests.csproj
402400
/bl:$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)\TemplateEngine.Cli.UnitTests.binlog
403401
$(_InternalRuntimeDownloadArgs)
404402
displayName: Run TemplateEngine Cli Unit Tests
@@ -408,7 +406,7 @@ jobs:
408406
-ci
409407
-restore
410408
$(_Test)
411-
-projects $(Build.SourcesDirectory)\test\dotnet-new.Tests\dotnet-new.IntegrationTests.csproj
409+
-projects $(Build.SourcesDirectory)\src\Tests\dotnet-new.Tests\dotnet-new.IntegrationTests.csproj
412410
/bl:$(Build.SourcesDirectory)\artifacts\log\$(_BuildConfig)\dotnet-new.IntegrationTests.binlog
413411
$(_InternalRuntimeDownloadArgs)
414412
displayName: Run dotnet new Integration Tests
@@ -432,7 +430,7 @@ jobs:
432430
-ci
433431
-restore
434432
-test
435-
-projects $(Build.SourcesDirectory)/test/Microsoft.TemplateEngine.Cli.UnitTests/Microsoft.TemplateEngine.Cli.UnitTests.csproj
433+
-projects $(Build.SourcesDirectory)/src/Tests/Microsoft.TemplateEngine.Cli.UnitTests/Microsoft.TemplateEngine.Cli.UnitTests.csproj
436434
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/TemplateEngine.Cli.UnitTests.binlog
437435
$(_InternalRuntimeDownloadArgs)
438436
displayName: Run TemplateEngine Cli Unit Tests
@@ -442,7 +440,7 @@ jobs:
442440
-ci
443441
-restore
444442
-test
445-
-projects $(Build.SourcesDirectory)/test/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
443+
-projects $(Build.SourcesDirectory)/src/Tests/dotnet-new.Tests/dotnet-new.IntegrationTests.csproj
446444
/bl:$(Build.SourcesDirectory)/artifacts/log/$(_BuildConfig)/dotnet-new.IntegrationTests.binlog
447445
$(_InternalRuntimeDownloadArgs)
448446
displayName: Run dotnet new Integration Tests
@@ -465,7 +463,6 @@ jobs:
465463
log/$(_BuildConfig)/**/*
466464
TestResults/$(_BuildConfig)/**/*
467465
SymStore/$(_BuildConfig)/**/*
468-
tmp/$(_BuildConfig)/**/*.binlog
469466
TargetFolder: '$(Build.ArtifactStagingDirectory)'
470467
continueOnError: true
471468
condition: always()
@@ -477,4 +474,4 @@ jobs:
477474
ArtifactName: '$(_AgentOSName)_$(Agent.JobName)_$(Build.BuildNumber)'
478475
publishLocation: Container
479476
continueOnError: true
480-
condition: always()
477+
condition: always()

0 commit comments

Comments
 (0)