-
Notifications
You must be signed in to change notification settings - Fork 183
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
5ed29c9
commit 5664caa
Showing
2 changed files
with
43 additions
and
33 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 (-not $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" | ||
} | ||
} |