Skip to content

Commit 0f3e9f7

Browse files
Remove Windows pool from build stage (#1535)
* Remove Windows pool from build stage Removed Windows pool configuration from build stage, since template job defines pool * Remove prefast in OneBranch.PullRequest.yml Prefast is enabled in the build stage template job * Add -SkipDuplicate option to NuGet push arguments * Update .pipelines/jobs/OneBranchNuGet.yml Co-authored-by: Ryan Shepherd <[email protected]> * Update NuGet push command arguments Removed the -SkipDuplicate option from the NuGet push command. * Set pre-release NuGet version in VSIX build * Change ob_sdl_prefast_runDuring to 'Guardian' --------- Co-authored-by: Ryan Shepherd <[email protected]>
1 parent 3a596b5 commit 0f3e9f7

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.pipelines/OneBranch.Official.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ extends:
4848

4949
stages:
5050
- stage: build
51-
pool:
52-
type: windows
53-
5451
jobs:
5552
- template: .pipelines/jobs/OneBranchBuild.yml@self
5653
parameters:

.pipelines/OneBranch.PullRequest.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ extends:
4141
enabled: false
4242
sbom:
4343
enabled: true
44-
prefast:
45-
enabled: true
4644

4745
stages:
4846
- stage: build

.pipelines/jobs/OneBranchNuGet.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ jobs:
1515

1616
variables:
1717
ob_outputDirectory: '$(Build.SourcesDirectory)\out'
18-
PackageVersion: ${{ parameters.BuildVersion }}
18+
${{ if eq(parameters.OfficialBuild, true) }}:
19+
PackageVersion: ${{ parameters.BuildVersion }}
20+
${{ else }}:
21+
PackageVersion: ${{ parameters.BuildVersion }}-unofficial
1922

2023
ob_sdl_prefast_enabled: true
21-
ob_sdl_prefast_runDuring: 'Build'
24+
ob_sdl_prefast_runDuring: 'Guardian'
2225
ob_sdl_checkCompliantCompilerWarnings: true
2326

2427
steps:
@@ -72,4 +75,4 @@ jobs:
7275
displayName: 'Publish NuGet package'
7376
inputs:
7477
command: 'custom'
75-
arguments: 'push $(ob_outputDirectory)\packages\Microsoft.Windows.CppWinRT.$(PackageVersion).nupkg -NonInteractive -Source https://microsoft.pkgs.visualstudio.com/_packaging/CppWinRT/nuget/v3/index.json -ApiKey VSTS'
78+
arguments: 'push $(ob_outputDirectory)\packages\Microsoft.Windows.CppWinRT.$(PackageVersion).nupkg -NonInteractive -Source https://microsoft.pkgs.visualstudio.com/_packaging/CppWinRT/nuget/v3/index.json -ApiKey VSTS'

.pipelines/jobs/OneBranchVsix.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
VsixFilename: Microsoft.Windows.CppWinRT
2828

2929
variables:
30+
${{ if eq(parameters.OfficialBuild, true) }}:
31+
PackageVersion: ${{ parameters.BuildVersion }}
32+
${{ else }}:
33+
PackageVersion: ${{ parameters.BuildVersion }}-unofficial
34+
3035
ob_outputDirectory: $(Build.SourcesDirectory)\out
3136
ob_artifactSuffix: $(VsVersion)_$(Deployment)
3237

@@ -91,7 +96,7 @@ jobs:
9196
displayName: Build VSIX
9297
inputs:
9398
solution: $(Build.SourcesDirectory)\vsix\vsix.sln
94-
msbuildArgs: /t:vsix_$(VsVersion) /m /p:CppWinRTVersion=${{ parameters.BuildVersion }},clean_intermediate_files=true,Deployment=$(Deployment),NatvisDirx86=$(Build.SourcesDirectory)\x86\$(Deployment)\,NatvisDirx64=$(Build.SourcesDirectory)\x64\$(Deployment)\,NatvisDirarm64=$(Build.SourcesDirectory)\arm64\$(Deployment)\,NupkgDir=$(Pipeline.Workspace)\nuget\packages /bl:$(ob_outputDirectory)\output.binlog
99+
msbuildArgs: /t:vsix_$(VsVersion) /m /p:CppWinRTVersion=$(PackageVersion),clean_intermediate_files=true,Deployment=$(Deployment),NatvisDirx86=$(Build.SourcesDirectory)\x86\$(Deployment)\,NatvisDirx64=$(Build.SourcesDirectory)\x64\$(Deployment)\,NatvisDirarm64=$(Build.SourcesDirectory)\arm64\$(Deployment)\,NupkgDir=$(Pipeline.Workspace)\nuget\packages /bl:$(ob_outputDirectory)\output.binlog
95100
platform: 'Any CPU'
96101
configuration: ${{ parameters.BuildConfiguration }}
97102

0 commit comments

Comments
 (0)