8000 Capture environment better (#24148) (#24428) · PowerShell/PowerShell@ddf0da5 · GitHub
[go: up one dir, main page]

Skip to content

Commit ddf0da5

Browse files
Capture environment better (#24148) (#24428)
1 parent ffd2022 commit ddf0da5

34 files changed

+37
-37
lines changed

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
# queries: ./path/to/local/query, your-org/your-repo/queries@main
5353

5454
- run: |
55-
Get-ChildItem -Path env:
55+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5656
name: Capture Environment
5757
5858
- run: |

.pipelines/PowerShell-Coordinated_Packages-Official.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ extends:
129129
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
130130

131131
- pwsh: |
132-
Get-ChildItem Env:
132+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
133133
displayName: Capture environment variables
134134
135135
- template: /.pipelines/templates/SetVersionVariables.yml@self

.pipelines/PowerShell-vPack-Official.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ extends:
193193
displayName: 'Set ob_createvpack_version with VPackPublishOverride'
194194
195195
- pwsh: |
196-
Get-ChildItem -Path env:
196+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
197197
displayName: Capture Environment
198198
condition: succeededOrFailed()
199199

.pipelines/templates/SetVersionVariables.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ steps:
7272
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
7373

7474
- powershell: |
75-
Get-ChildItem -Path env:
75+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
7676
displayName: Capture environment
7777
condition: succeededOrFailed()
7878
env:

.pipelines/templates/linux-package-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
4747

4848
- pwsh: |
49-
Get-ChildItem -Path env:
49+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5050
displayName: Capture environment
5151
env:
5252
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

.pipelines/templates/mac-package-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
clean: true
3939

4040
- pwsh: |
41-
Get-ChildItem -Path env:
41+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4242
displayName: Capture environment
4343
4444
- pwsh: |

.pipelines/templates/nupkg.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
3333

3434
- pwsh: |
35-
Get-ChildItem -Path env:
35+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
3636
displayName: Capture environment
3737
env:
3838
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

.pipelines/templates/obp-file-signing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ steps:
8585
search_root: $(Pipeline.Workspace)/toBeSigned
8686

8787
- pwsh : |
88-
Get-ChildItem -Path env:
88+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
8989
displayName: Capture environment
9090

9191
- pwsh: |

.pipelines/templates/release-MakeBlobPublic.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
UseJson: no
4848

4949
- pwsh: |
50-
Get-ChildItem Env:
50+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5151
displayName: 'Capture Environment Variables'
5252
5353
- pwsh: |
@@ -108,7 +108,7 @@ jobs:
108108
UseJson: no
109109

110110
- pwsh: |
111-
Get-ChildItem Env:
111+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
112112
displayName: 'Capture Environment Variables'
113113
114114
- pwsh: |

.pipelines/templates/release-githubtasks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- template: release-SetReleaseTagAndContainerName.yml
3535

3636
- pwsh: |
37-
Get-ChildItem Env:
37+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
3838
displayName: 'Capture Environment Variables'
3939
4040
- pwsh: |

.pipelines/templates/release-publish-nuget.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- template: release-SetReleaseTagAndContainerName.yml
3838

3939
- pwsh: |
40-
Get-ChildItem Env:
40+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4141
displayName: 'Capture Environment Variables'
4242
4343
- download: PSPackagesOfficial

.pipelines/templates/release-symbols.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- template: release-SetReleaseTagAndContainerName.yml
3232

3333
- pwsh: |
34-
Get-ChildItem Env:
34+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
3535
displayName: 'Capture Environment Variables'
3636
3737
- download: CoOrdinatedBuildPipeline

.pipelines/templates/release-upload-buildinfo.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- template: release-SetReleaseTagAndContainerName.yml
3333

3434
- pwsh: |
35-
Get-ChildItem Env:
35+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
3636
displayName: 'Capture Environment Variables'
3737
3838
- download: PSPackagesOfficial

.pipelines/templates/release-validate-fxdpackages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
displayName: Download fxd artifact
3737

3838
- pwsh: |
39-
Get-ChildItem -Path env:
39+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4040
displayName: Capture environment
4141
4242
- pwsh: |

.pipelines/templates/release-validate-globaltools.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
displayName: Download nupkgs
3232

3333
- pwsh: |
34-
Get-ChildItem -Path env:
34+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
3535
displayName: Capture environment
3636
3737
- pwsh: |

.pipelines/templates/release-validate-packagenames.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- template: release-SetReleaseTagAndContainerName.yml
2020

2121
- pwsh: |
22-
Get-ChildItem ENV:
22+
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
2323
displayName: Capture environment
2424
2525
- pwsh: |
@@ -150,7 +150,7 @@ jobs:
150150
# clean: true
151151

152152
# - pwsh: |
153-
# Get-ChildItem ENV:
153+
# Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
154154
# displayName: Capture environment
155155

156156
# - template: release-SetReleaseTagAndContainerName.yml

.pipelines/templates/release-validate-sdk.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
displayName: Download nupkgs
3737

3838
- pwsh: |
39-
Get-ChildItem -Path env:
39+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4040
displayName: Capture environment
4141
4242
- pwsh: |

.pipelines/templates/uploadToAzure.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- template: /.pipelines/templates/cloneToOfficialPath.yml@self
4141

4242
- pwsh: |
43-
Get-ChildItem Env:
43+
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4444
displayName: 'Capture Environment Variables'
4545
4646
- pwsh: |

.pipelines/templates/windows-package-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
3939

4040
- pwsh: |
41-
Get-ChildItem -Path env:
41+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4242
displayName: Capture environment
4343
env:
4444
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

.vsts-ci/linux-daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ stages:
5454

5555
steps:
5656
- pwsh: |
57-
Get-ChildItem -Path env:
57+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5858
displayName: Capture Environment
5959
condition: succeededOrFailed()
6060

.vsts-ci/linux/templates/packaging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- pwsh: |
17-
Get-ChildItem -Path env:
17+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
1818
displayName: Capture Environment
1919
condition: succeededOrFailed()
2020

.vsts-ci/sshremoting-tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
steps:
5353
- pwsh: |
54-
Get-ChildItem -Path env:
54+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5555
displayName: Capture Environment
5656
condition: succeededOrFailed()
5757

.vsts-ci/templates/ci-build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
fetchDepth: 1000
4747

4848
- pwsh: |
49-
Get-ChildItem -Path env:
49+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
5050
displayName: Capture Environment
5151
condition: succeededOrFailed()
5252

.vsts-ci/templates/install-ps-phase.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222

2323
steps:
2424
- pwsh: |
25-
Get-ChildItem -Path env:
25+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
2626
displayName: Capture Environment
2727
condition: succeededOrFailed()
2828

.vsts-ci/templates/test/nix-test-steps.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parameters:
55

66
steps:
77
- pwsh: |
8-
Get-ChildItem -Path env:
8+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
99
displayName: Capture Environment
1010
condition: succeededOrFailed()
1111

.vsts-ci/templates/windows-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
condition: ne('${{ parameters.pool }}', 'windows-2019')
3838
3939
- pwsh: |
40-
Get-ChildItem -Path env:
40+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4141
displayName: Capture Environment
4242
condition: succeededOrFailed()
4343

.vsts-ci/windows-daily.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ stages:
5757

5858
steps:
5959
- pwsh: |
60-
Get-ChildItem -Path env:
60+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
6161
displayName: 'Capture Environment'
6262
condition: succeededOrFailed()
6363

.vsts-ci/windows/templates/windows-packaging.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
path: $(complianceRepoFolder)
3939

4040
- powershell: |
41-
Get-ChildItem -Path env:
41+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4242
displayName: Capture environment
4343
condition: succeededOrFailed()
4444

tools/releaseBuild/azureDevOps/templates/SetVersionVariables.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ steps:
5858
displayName: 'Set ${{ parameters.ReleaseTagVarName }} and other version Variables'
5959

6060
- powershell: |
61-
Get-ChildItem -Path env:
61+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
6262
displayName: Capture environment
6363
condition: succeededOrFailed()

tools/releaseBuild/azureDevOps/templates/compliance/apiscan.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
displayName: 'Build PowerShell Source'
131131
132132
- pwsh: |
133-
Get-ChildItem -Path env:
133+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
134134
displayName: Capture Environment
135135
condition: succeededOrFailed()
136136
@@ -200,7 +200,7 @@ jobs:
200200
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\tools\guardian\tsaconfig-APIScan.json'
201201

202202
- pwsh: |
203-
Get-ChildItem -Path env:
203+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
204204
displayName: Capture Environment
205205
condition: succeededOrFailed()
206206

tools/releaseBuild/azureDevOps/templates/global-tool-pkg-sbom.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ steps:
4343
displayName: 'Create global tool NuSpec source for package.'
4444
4545
- pwsh: |
46-
Get-ChildItem -Path env:
46+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
4747
displayName: 'Capture environment variables after Global Tool package source is created.'
4848
4949
# NOTE: The above 'New-GlobalToolNupkgSource' task function sets the 'GlobalToolNuSpecSourcePath', 'GlobalToolPkgName',

tools/releaseBuild/azureDevOps/templates/release-ValidatePackageBOM.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ steps:
33
clean: true
44

55
- pwsh: |
6-
Get-ChildItem ENV:
6+
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
77
displayName: Capture environment
88

99
- template: release-SetReleaseTagAndContainerName.yml

tools/releaseBuild/azureDevOps/templates/release-ValidatePackageNames.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
22
- pwsh: |
3-
Get-ChildItem ENV:
3+
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
44
displayName: Capture environment
55

66
- template: release-SetReleaseTagAndContainerName.yml

tools/releaseBuild/azureDevOps/templates/vpackReleaseJob.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
displayName: 'Set vpackVersion'
9494
9595
- pwsh: |
96-
Get-ChildItem -Path env:
96+
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
9797
displayName: Capture Environment
9898
condition: succeededOrFailed()
9999

0 commit comments

Comments
 (0)
0