-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19c0af1
commit 7f2993e
Showing
2 changed files
with
41 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
if ($null -eq $isDevOpsRun) | ||
{ | ||
$isDevOpsRun = ($null -ne $env:SYSTEM_TEAMPROJECTID) | ||
} | ||
|
||
function LogWarning | ||
{ | ||
if ($isDevOpsRun) | ||
{ | ||
Write-Host "##vso[task.LogIssue type=warning;]$args" | ||
} | ||
else | ||
{ | ||
Write-Warning "$args" | ||
} | ||
} | ||
|
||
function LogError | ||
{ | ||
if ($isDevOpsRun) | ||
{ | ||
Write-Host "##vso[task.LogIssue type=error;]$args" | ||
} | ||
else | ||
{ | ||
Write-Error "$args" | ||
} | ||
} | ||
|
||
function LogDebug | ||
{ | ||
if ($isDevOpsRun) | ||
{ | ||
Write-Host "##vso[task.LogIssue type=debug;]$args" | ||
} | ||
else | ||
{ | ||
Write-Debug "$args" | ||
} | ||
} |