diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 727ed95..879eff4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,13 @@ stages: inputs: targetType: 'inline' script: | - git fetch origin "$(Build.SourceBranchName)" "$(Build.Repository.DefaultBranch)" + Write-Host "##[section]All Environment Variables:" + Get-ChildItem env: | Format-Table -AutoSize + + Write-Host "##[section]Specific Variable Example:" + Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH" + Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME" + git fetch origin "$(Build.SourceBranchName)" "$env:BUILD_REPOSITORY_DEFAULTBRANCH" $diffResult = git diff --name-only origin/$(Build.Repository.DefaultBranch)...HEAD $folderFound = $false if ([string]::IsNullOrWhiteSpace($diffResult)) {