Attempt to disable pretty print control codes for CI
This commit is contained in:
parent
f4209b9de6
commit
bc6f7937ee
3 changed files with 6 additions and 1 deletions
3
build.sh
3
build.sh
|
@ -34,6 +34,9 @@ while [[ $# > 0 ]]; do
|
|||
export DOCKER_IMAGENAME=$2
|
||||
shift
|
||||
;;
|
||||
--noprettyprint)
|
||||
export DOTNET_CORESDK_NOPRETTYPRINT=1
|
||||
;;
|
||||
*)
|
||||
args="$args $1"
|
||||
;;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
#
|
||||
|
||||
# Detect build servers
|
||||
if [[ ! -z "$JENKINS_URL" || ! -z "$BUILD_BUILDID" ]]; then
|
||||
if [[ ! -z "$JENKINS_URL" || ! -z "$BUILD_BUILDID" || ! -z "$DOTNET_CORESDK_NOPRETTYPRINT" ]]; then
|
||||
# Jenkins or VSO build, disable colors because they make things gross.
|
||||
NO_COLOR=1
|
||||
fi
|
||||
|
|
|
@ -37,6 +37,7 @@ phases:
|
|||
- ${{ if eq(parameters.agentOs, 'Linux') }}:
|
||||
- script: ./build.sh
|
||||
--test --pack --publish
|
||||
--noprettyprint
|
||||
--configuration $(BuildConfig)
|
||||
$(DockerParameter)
|
||||
--architecture $(BuildArchitecture)
|
||||
|
@ -49,6 +50,7 @@ phases:
|
|||
- ${{ if eq(parameters.agentOs, 'Darwin') }}:
|
||||
- script: ./build.sh
|
||||
--test --pack --publish
|
||||
--noprettyprint
|
||||
--configuration $(BuildConfig)
|
||||
displayName: Build
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue