Capture environment better (#24148)

* Capture environment better

* Capture env better
This commit is contained in:
Travis Plunk 2024-09-05 14:49:23 -07:00 committed by GitHub
parent 22e8fed058
commit c83bd87e4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
34 changed files with 37 additions and 37 deletions

View File

@ -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: |

View File

@ -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

View File

@ -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()

View File

@ -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:

View File

@ -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

View File

@ -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: |

View File

@ -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

View File

@ -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: |

View File

@ -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: |

View File

@ -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: |

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: |

View File

@ -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: |

View File

@ -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

View File

@ -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: |

View File

@ -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: |

View File

@ -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

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -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',

View File

@ -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

View File

@ -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

View File

@ -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()