mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-26 19:34:22 +08:00
Capture environment better (#24148)
* Capture environment better * Capture env better
This commit is contained in:
parent
22e8fed058
commit
c83bd87e4f
2
.github/workflows/codeql-analysis.yml
vendored
2
.github/workflows/codeql-analysis.yml
vendored
@ -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: |
|
||||
|
@ -146,7 +146,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
|
||||
env:
|
||||
ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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
|
||||
|
@ -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: |
|
||||
|
@ -33,7 +33,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
|
||||
|
@ -110,7 +110,7 @@ steps:
|
||||
displayName: 'Verify windows signature'
|
||||
|
||||
- pwsh : |
|
||||
Get-ChildItem -Path env:
|
||||
Get-ChildItem -Path env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
|
||||
displayName: Capture environment
|
||||
|
||||
- pwsh: |
|
||||
|
@ -46,7 +46,7 @@ jobs:
|
||||
UseJson: no
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem Env:
|
||||
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
|
||||
displayName: 'Capture Environment Variables'
|
||||
|
||||
- pwsh: |
|
||||
@ -107,7 +107,7 @@ jobs:
|
||||
UseJson: no
|
||||
|
||||
- pwsh: |
|
||||
Get-ChildItem Env:
|
||||
Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose
|
||||
displayName: 'Capture Environment Variables'
|
||||
|
||||
- pwsh: |
|
||||
|
@ -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: |
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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: |
|
||||
|
@ -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: |
|
||||
|
@ -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: |
|
||||
@ -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
|
||||
|
@ -37,7 +37,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: |
|
||||
|
@ -39,7 +39,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: |
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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()
|
||||
|
||||
|
@ -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
|
||||
displayName: Capture environment
|
||||
condition: succeededOrFailed()
|
||||
|
@ -98,7 +98,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()
|
||||
|
||||
@ -168,7 +168,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()
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user