Skip to content

Commit

Permalink
Update validate_connector.yml for Azure Pipelines (microsoft#358)
Browse files Browse the repository at this point in the history
  • Loading branch information
mamurshe authored Aug 5, 2020
1 parent 811611f commit 0197959
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pipelines/validate_connector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ steps:
if ($errors) {
$errorsTotal += $errors.Count
$errors | foreach { Write-Host "##vso[task.logissue type=error;$_" }
$errors | foreach { Write-Host "##vso[task.logissue type=error;]$_" }
} # If Swagger Error
if ($warnings) {
$warningsTotal += $warnings.Count
$warnings | foreach { Write-Host "##vso[task.logissue type=warning;sourcepath=$file;$_" }
$warnings | foreach { Write-Host "##vso[task.logissue type=warning;sourcepath=$file;]$_" }
} # If Swagger Warnings
# Check for breaking changes when previous commit exits
Expand Down Expand Up @@ -63,16 +63,15 @@ steps:
if ($warnings) {
$warningsTotal += $warnings.Count
$warnings | foreach { Write-Host "##vso[task.LogIssue type=warning;]$_" }
$warnings | foreach { Write-Host "##vso[task.LogIssue type=warning;sourcepath=$file;]$_" }
} # If there are any warnings
} # If previous commit exists perform breaking change validation
} # For each file
if ($errorsTotal -gt 0) {
Write-Host "##vso[task.complete result=Failed;]Errors encountered."
exit 1
Write-Host "##vso[task.complete result=Failed;]Errors encountered."
}
elseif ($warningsTotal -gt 0) {
Write-Host "##vso[task.complete result=SucceededWithIssues;]Warnings encountered."
Expand Down

0 comments on commit 0197959

Please sign in to comment.