From e808c7f70a52068e303ac454b6f00f798dc564fd Mon Sep 17 00:00:00 2001 From: Jojo Aquino Date: Mon, 21 Apr 2025 07:59:18 +0000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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)) {