Skip to content

Commit

Permalink
Modified yml condition for pack
Browse files Browse the repository at this point in the history
  • Loading branch information
yojagad committed Mar 20, 2020
1 parent 7af94cd commit 92e4aa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,8 @@ jobs:
- job: BuildArtifacts_Windows
dependsOn: InitializePipeline
variables:
bypassPackaging: $[ dependencies.InitializePipeline.outputs['Initialize.BypassPackaging'] ]
includeSuffix: $[ dependencies.InitializePipeline.outputs['Initialize.IncludeSuffix'] ]
condition: and(succeeded(), eq(variables['bypassPackaging'], false))
condition: and(succeeded(), eq(dependencies.InitializePipeline.outputs['Initialize.BypassPackaging'], false))
pool:
vmImage: 'vs2017-win2016'
steps:
Expand Down
2 changes: 2 additions & 0 deletions build/initialize-pipeline.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ elseif($buildReason -eq "PullRequest")
}
}

Write-Host "BypassPackaging: $bypassPackaging, IncludeSuffix: $includeSuffix"

# Write to output
"##vso[task.setvariable variable=IncludeSuffix;isOutput=true]$includeSuffix"
"##vso[task.setvariable variable=BypassPackaging;isOutput=true]$bypassPackaging"

0 comments on commit 92e4aa6

Please sign in to comment.