Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
b8c2508b2c
commit
e808c7f70a
@ -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)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user