-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[master] Update dependencies from dotnet/arcade (#338)
* Update dependencies from https://github.com/dotnet/arcade build 20190613.18 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19313.18 * Update dependencies from https://github.com/dotnet/arcade build 20190614.27 - Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19314.27
- Loading branch information
1 parent
d35e525
commit 8554996
Showing
7 changed files
with
217 additions
and
159 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
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,102 @@ | ||
#!/usr/bin/env bash | ||
|
||
function Write-PipelineTelemetryError { | ||
local telemetry_category='' | ||
local function_args=() | ||
local message='' | ||
while [[ $# -gt 0 ]]; do | ||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" | ||
case "$opt" in | ||
-category|-c) | ||
telemetry_category=$2 | ||
shift | ||
;; | ||
-*) | ||
function_args+=("$1 $2") | ||
shift | ||
;; | ||
*) | ||
message=$* | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
if [[ "$ci" != true ]]; then | ||
echo "$message" >&2 | ||
return | ||
fi | ||
|
||
message="(NETCORE_ENGINEERING_TELEMETRY=$telemetry_category) $message" | ||
function_args+=("$message") | ||
|
||
Write-PipelineTaskError $function_args | ||
} | ||
|
||
function Write-PipelineTaskError { | ||
if [[ "$ci" != true ]]; then | ||
echo "$@" >&2 | ||
return | ||
fi | ||
|
||
message_type="error" | ||
sourcepath='' | ||
linenumber='' | ||
columnnumber='' | ||
error_code='' | ||
|
||
while [[ $# -gt 0 ]]; do | ||
opt="$(echo "${1/#--/-}" | awk '{print tolower($0)}')" | ||
case "$opt" in | ||
-type|-t) | ||
message_type=$2 | ||
shift | ||
;; | ||
-sourcepath|-s) | ||
sourcepath=$2 | ||
shift | ||
;; | ||
-linenumber|-ln) | ||
linenumber=$2 | ||
shift | ||
;; | ||
-columnnumber|-cn) | ||
columnnumber=$2 | ||
shift | ||
;; | ||
-errcode|-e) | ||
error_code=$2 | ||
shift | ||
;; | ||
*) | ||
break | ||
;; | ||
esac | ||
|
||
shift | ||
done | ||
|
||
message="##vso[task.logissue" | ||
|
||
message="$message type=$message_type" | ||
|
||
if [ -n "$sourcepath" ]; then | ||
message="$message;sourcepath=$sourcepath" | ||
fi | ||
|
||
if [ -n "$linenumber" ]; then | ||
message="$message;linenumber=$linenumber" | ||
fi | ||
|
||
if [ -n "$columnnumber" ]; then | ||
message="$message;columnnumber=$columnnumber" | ||
fi | ||
|
||
if [ -n "$error_code" ]; then | ||
message="$message;code=$error_code" | ||
fi | ||
|
||
message="$message]$*" | ||
echo "$message" | ||
} | ||
|
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
Oops, something went wrong.