Skip to content

Commit 3e9475e

Browse files
committed
move variables as parameters
1 parent 1ecbf4b commit 3e9475e

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

.pipelines/DSC-Official.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,39 @@ extends:
8686
8787
- job: BuildWin_x64
8888
dependsOn: SetPackageVersion
89+
variables:
90+
ob_sdl_tsa_configFile: '$(Build.SourcesDirectory)\DSC\.config\tsaoptions.json'
91+
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
92+
signSrcPath: '$(Build.SourcesDirectory)\out'
93+
ob_sdl_sbom_enabled: true
94+
ob_signing_setup_enabled: true
95+
ob_sdl_codeql_compiled_enabled: true
96+
pool:
97+
type: windows
8998
steps:
9099
- template: .pipelines/DSC-Windows.yml@self
91100
parameters:
92101
buildName: x86_64-pc-windows-msvc
102+
signSrcPath: '$(signSrcPath)'
103+
PackageRoot: '$(PackageRoot)'
93104

94105
- job: BuildWin_arm64
95106
dependsOn: SetPackageVersion
107+
variables:
108+
ob_sdl_tsa_configFile: '$(Build.SourcesDirectory)\DSC\.config\tsaoptions.json'
109+
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
110+
signSrcPath: '$(Build.SourcesDirectory)\out'
111+
ob_sdl_sbom_enabled: true
112+
ob_signing_setup_enabled: true
113+
ob_sdl_codeql_compiled_enabled: true
114+
pool:
115+
type: windows
96116
steps:
97117
- template: .pipelines/DSC-Windows.yml@self
98118
parameters:
99119
buildName: aarch64-pc-windows-msvc
120+
signSrcPath: '$(signSrcPath)'
121+
PackageRoot: '$(PackageRoot)'
100122

101123
- job: CreateMsixBundle
102124
dependsOn:

.pipelines/DSC-Windows.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
parameters:
22
- name: buildName
33
type: string
4-
5-
variables:
6-
buildName: x86_64-pc-windows-msvc
7-
PackageVersion: $[ dependencies.SetPackageVersion.outputs['Package.Version'] ]
8-
ob_sdl_tsa_configFile: '$(Build.SourcesDirectory)\DSC\.config\tsaoptions.json'
9-
ob_outputDirectory: '$(Build.ArtifactStagingDirectory)'
10-
repoRoot: '$(Build.SourcesDirectory)\DSC'
11-
signSrcPath: '$(Build.SourcesDirectory)\out'
12-
ob_sdl_sbom_enabled: true
13-
ob_signing_setup_enabled: true
14-
ob_sdl_codeql_compiled_enabled: true
15-
16-
pool:
17-
type: windows
4+
- name: signSrcPath
5+
type: string
6+
- name: PackageRoot
7+
type: string
8+
- name: BuildConfiguration
9+
type: string
10+
default: Release
1811

1912
steps:
2013
- checkout: self
@@ -95,12 +88,12 @@ steps:
9588
- pwsh: |
9689
Set-Location "$(Build.SourcesDirectory)/DSC"
9790
./build.ps1 -PackageType zip -Architecture $(buildName) -Release
98-
Copy-Item ./bin/*.zip "$(ob_outputDirectory)" -Verbose
91+
Copy-Item ./bin/*.zip "$(Build.ArtifactStagingDirectory)" -Verbose
9992
displayName: 'Zip $(buildName)'
10093
condition: succeeded()
10194
- pwsh: |
10295
Set-Location "$(Build.SourcesDirectory)/DSC"
10396
./build.ps1 -PackageType msix -Architecture $(buildName) -Release -UseX64MakeAppx
104-
Copy-Item ./bin/msix/*.msix "$(ob_outputDirectory)" -Verbose
97+
Copy-Item ./bin/msix/*.msix "$(Build.ArtifactStagingDirectory)" -Verbose
10598
displayName: 'Create msix for $(buildName)'
10699
condition: succeeded()

0 commit comments

Comments
 (0)