Update azure-pipelines.yml for Azure Pipelines

This commit is contained in:
Jojo Aquino 2025-04-21 08:11:22 +00:00
parent e808c7f70a
commit db9a8fa1a3

View File

@ -33,7 +33,7 @@ stages:
Write-Host "##[section]Specific Variable Example:" Write-Host "##[section]Specific Variable Example:"
Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH" Write-Host "BUILD_SOURCEBRANCH = $env:BUILD_SOURCEBRANCH"
Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME" Write-Host "BUILD_REPOSITORY_NAME = $env:BUILD_REPOSITORY_NAME"
git fetch origin "$(Build.SourceBranchName)" "$env:BUILD_REPOSITORY_DEFAULTBRANCH" git fetch origin "$(Build.SourceBranchName)" main
$diffResult = git diff --name-only origin/$(Build.Repository.DefaultBranch)...HEAD $diffResult = git diff --name-only origin/$(Build.Repository.DefaultBranch)...HEAD
$folderFound = $false $folderFound = $false
if ([string]::IsNullOrWhiteSpace($diffResult)) { if ([string]::IsNullOrWhiteSpace($diffResult)) {