Reorder error and warning log line processing (#6792)
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
This commit is contained in:
parent
3587514b29
commit
5afdf22a90
@ -114,12 +114,12 @@ function LogJobFailure() {
|
||||
|
||||
function ProcessMsBuildLogLine($line) {
|
||||
if (Test-SupportsDevOpsLogging) {
|
||||
if ($line -like "*: warning*") {
|
||||
return ("##vso[task.LogIssue type=warning;]$line" -replace "`n", "%0D%0A")
|
||||
}
|
||||
elseif ($line -like "*: error*") {
|
||||
if ($line -like "*: error*") {
|
||||
return ("##vso[task.LogIssue type=error;]$line" -replace "`n", "%0D%0A")
|
||||
}
|
||||
elseif ($line -like "*: warning*") {
|
||||
return ("##vso[task.LogIssue type=warning;]$line" -replace "`n", "%0D%0A")
|
||||
}
|
||||
}
|
||||
return $line
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user