Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Jojo Aquino 2025-04-21 07:59:18 +00:00
parent 300cc02105
commit 5f9aa93968

View File

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