diff --git a/.azure/pipelines/azure-pipelines-build.yml b/.azure/pipelines/azure-pipelines-build.yml index 4214911e..98f76366 100644 --- a/.azure/pipelines/azure-pipelines-build.yml +++ b/.azure/pipelines/azure-pipelines-build.yml @@ -41,7 +41,13 @@ stages: - template: create-agent-capabilities-variables.yml@self - - template: write-environment-variables.yml@self + - task: PowerShell@2 + displayName: Write Environment Variables + condition: contains(variables['system.debug'], 'true') + inputs: + targetType: inline + script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String' + pwsh: true - task: NuGetToolInstaller@1 displayName: Install NuGet 4.4.1 diff --git a/.azure/pipelines/azure-pipelines-deploy.yml b/.azure/pipelines/azure-pipelines-deploy.yml index 19dd017d..92476524 100644 --- a/.azure/pipelines/azure-pipelines-deploy.yml +++ b/.azure/pipelines/azure-pipelines-deploy.yml @@ -58,7 +58,13 @@ stages: Write-Host "RepositoryFolder: ${{parameters.RepositoryFolder}}" pwsh: true - - template: write-environment-variables.yml@self + - task: PowerShell@2 + displayName: Write Environment Variables + condition: contains(variables['system.debug'], 'true') + inputs: + targetType: inline + script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String' + pwsh: true - checkout: MasterRepo persistCredentials: true diff --git a/.azure/pipelines/write-environment-variables.yml b/.azure/pipelines/write-environment-variables.yml deleted file mode 100644 index 79c1cd85..00000000 --- a/.azure/pipelines/write-environment-variables.yml +++ /dev/null @@ -1,8 +0,0 @@ -steps: -- task: PowerShell@2 - displayName: Write Environment Variables - condition: contains(variables['system.debug'], 'true') - inputs: - targetType: inline - script: '(gci env:*).GetEnumerator() | Sort-Object Name | Out-String' - pwsh: true