@@ -15,21 +15,22 @@ pr: none
15
15
variables :
16
16
DOTNET_CLI_TELEMETRY_OPTOUT : 1
17
17
POWERSHELL_TELEMETRY_OPTOUT : 1
18
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : 1
18
+ DOTNET_NOLOGO : 1
19
19
WindowsContainerImage : onebranch.azurecr.io/windows/ltsc2022/vse2022:latest
20
20
21
21
resources :
22
22
repositories :
23
- - repository : onebranchTemplates
24
- type : git
25
- name : OneBranch.Pipelines/GovernedTemplates
26
- ref : refs/heads/main
23
+ - repository : templates
24
+ type : git
25
+ name : OneBranch.Pipelines/GovernedTemplates
26
+ ref : refs/heads/main
27
27
28
28
extends :
29
- template : v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
29
+ template : v2/OneBranch.Official.CrossPlat.yml@templates
30
30
parameters :
31
31
featureFlags :
32
- WindowsHostVersion : ' 1ESWindows2022'
32
+ WindowsHostVersion :
33
+ Version : 2022
33
34
globalSdl :
34
35
disableLegacyManifest : true
35
36
cg : # Component Governance parameters. Ignore test components.
@@ -43,7 +44,7 @@ extends:
43
44
enabled : true
44
45
asyncSdl : # https://aka.ms/obpipelines/asyncsdl
45
46
enabled : true
46
- forStages : [Build ]
47
+ forStages : [buildstage ]
47
48
credscan :
48
49
enabled : true
49
50
scanFolder : $(Build.SourcesDirectory)\PSReadLine\PSReadLine
@@ -154,7 +155,7 @@ extends:
154
155
}
155
156
156
157
Write-Host "Display files in the folder ..." -ForegroundColor Yellow
157
- Get-ChildItem -Path $(signSrcPath) -Recurse | Out-String -Width 120
158
+ Get-ChildItem -Path $(signSrcPath) -Recurse | Out-String -Width 120 -Stream
158
159
displayName: 'Verify the signed files'
159
160
160
161
- task : CopyFiles@2
@@ -212,7 +213,11 @@ extends:
212
213
artifact : drop_buildstage_buildjob
213
214
214
215
- pwsh : |
215
- Get-ChildItem $(signOutPath) -Recurse
216
+ if (Test-Path '$(signOutPath)\_manifest') {
217
+ Write-Verbose -Verbose "Delete SBOM files ..."
218
+ Remove-Item -Path '$(signOutPath)\_manifest' -Recurse -Force
219
+ }
220
+ Get-ChildItem $(signOutPath) -Recurse | Out-String -Width 120 -Stream
216
221
New-Item -Path $(nugetPath) -ItemType Directory > $null
217
222
displayName: Capture artifacts structure
218
223
env:
@@ -226,7 +231,7 @@ extends:
226
231
} finally {
227
232
Unregister-PSRepository -Name $RepoName -ErrorAction SilentlyContinue
228
233
}
229
- Get-ChildItem -Path $(nugetPath)
234
+ Get-ChildItem -Path $(nugetPath) | Out-String -Width 120 -Stream
230
235
displayName: 'Create the NuGet package'
231
236
env:
232
237
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
@@ -290,17 +295,9 @@ extends:
290
295
artifact : drop_buildstage_nupkg
291
296
292
297
- pwsh : |
293
- Get-ChildItem $(nugetPath) -Recurse
298
+ Get-ChildItem $(nugetPath) -Recurse | Out-String -Width 120 -Stream
294
299
displayName: Find signed Nupkg
295
300
296
- - task : NuGetCommand@2
297
- displayName : Push PSReadLine module to Azure feed
298
- inputs :
299
- command : push
300
- packagesToPush : $(nugetPath)\PSReadLine.*.nupkg
301
- nuGetFeedType : external
302
- publishFeedCredentials : AzArtifactsFeed
303
-
304
301
- task : NuGetCommand@2
305
302
displayName : Push PSReadLine module to PSGallery feed
306
303
inputs :
0 commit comments