8000 Capture environment better by TravisEz13 · Pull Request #24148 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Capture environment better #24148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
# queries: ./path/to/local/query, your-org/your-repo/queries@main

- run: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
name: Capture Environment

- run: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/PowerShell-Coordinated_Packages-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ extends:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment variables

- template: /.pipelines/templates/SetVersionVariables.yml@self
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/PowerShell-vPack-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ extends:
displayName: 'Set ob_createvpack_version with VPackPublishOverride'

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/SetVersionVariables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ steps:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue

- powershell: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment
condition: succeededOrFailed()
env:
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/linux-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/mac-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
clean: true

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/nupkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/obp-file-signing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ steps:
search_root: $(Pipeline.Workspace)/toBeSigned

- pwsh : |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/release-MakeBlobPublic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
UseJson: no

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- pwsh: |
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
UseJson: no

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-githubtasks.yml
EF5E
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- template: release-SetReleaseTagAndContainerName.yml

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-publish-nuget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- template: release-SetReleaseTagAndContainerName.yml

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- download: PSPackagesOfficial
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-symbols.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- template: release-SetReleaseTagAndContainerName.yml

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- download: CoOrdinatedBuildPipeline
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-upload-buildinfo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
- template: release-SetReleaseTagAndContainerName.yml

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- download: PSPackagesOfficial
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-validate-fxdpackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
displayName: Download fxd artifact

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-validate-globaltools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
displayName: Download nupkgs

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down
4 changes: 2 additions & 2 deletions .pipelines/templates/release-validate-packagenames.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- template: release-SetReleaseTagAndContainerName.yml

- pwsh: |
Get-ChildItem ENV:
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
# clean: true

# - pwsh: |
# Get-ChildItem ENV:
# Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
# displayName: Capture environment

# - template: release-SetReleaseTagAndContainerName.yml
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/release-validate-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
displayName: Download nupkgs

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/uploadToAzure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- template: /.pipelines/templates/cloneToOfficialPath.yml@self

- pwsh: |
Get-ChildItem Env:
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment Variables'

- pwsh: |
Expand Down
2 changes: 1 addition & 1 deletion .pipelines/templates/windows-package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment
env:
ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue
Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/linux-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ stages:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/linux/templates/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/sshremoting-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
fetchDepth: 1000

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/install-ps-phase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/test/nix-test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/templates/windows-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
condition: ne('${{ parameters.pool }}', 'windows-2019')

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/windows-daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ stages:

steps:
- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture Environment'
condition: succeededOrFailed()

Expand Down
2 changes: 1 addition & 1 deletion .vsts-ci/windows/templates/windows-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
path: $(complianceRepoFolder)

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ steps:
displayName: 'Set ${{ parameters.ReleaseTagVarName }} and other version Variables'

- powershell: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
10000 displayName: Capture environment
condition: succeededOrFailed()
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
displayName: 'Build PowerShell Source'

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
GdnPublishTsaConfigFile: '$(Build.SourcesDirectory)\tools\guardian\tsaconfig-APIScan.json'

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ steps:
displayName: 'Create global tool NuSpec source for package.'

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: 'Capture environment variables after Global Tool package source is created.'

# NOTE: The above 'New-GlobalToolNupkgSource' task function sets the 'GlobalToolNuSpecSourcePath', 'GlobalToolPkgName',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
clean: true

- pwsh: |
Get-ChildItem ENV:
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- template: release-SetReleaseTagAndContainerName.yml
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- pwsh: |
Get-ChildItem ENV:
Get-ChildItem ENV: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture environment

- template: release-SetReleaseTagAndContainerName.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
displayName: 'Set vpackVersion'

- pwsh: |
Get-ChildItem -Path env:
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
displayName: Capture Environment
condition: succeededOrFailed()

Expand Down
Loading
0