Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate McMaster <natemcmaster@users.noreply.github.com>2019-02-13 21:22:03 +0300
committerGitHub <noreply@github.com>2019-02-13 21:22:03 +0300
commit2ac4619635c4863d030b3a97a3741ef158a3f9f8 (patch)
treedfcf59120a04b95b00180214e708ad160634d2c2 /dockerbuild.sh
parent06d7fe73a995000ce79007e03785ee77d4dbb508 (diff)
Replace custom targets for generating assembly attributes and source control info by using SDK features (#7504)
Diffstat (limited to 'dockerbuild.sh')
-rwxr-xr-xdockerbuild.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/dockerbuild.sh b/dockerbuild.sh
index da76a9f482..9bbab769be 100755
--- a/dockerbuild.sh
+++ b/dockerbuild.sh
@@ -98,7 +98,7 @@ fi
commit_hash="$(git rev-parse HEAD || true)"
if [ ! -z "$commit_hash" ]; then
- build_args[${#build_args[*]}]="-p:RepositoryCommit=$commit_hash"
+ build_args[${#build_args[*]}]="-p:SourceRevisionId=$commit_hash"
fi
dockerfile="$DIR/build/docker/$image.Dockerfile"
@@ -118,6 +118,9 @@ docker run \
-e TEAMCITY_VERSION \
-e BUILD_NUMBER \
-e BUILD_BUILDNUMBER \
+ -e BUILD_REPOSITORY_URI \
+ -e BUILD_SOURCEVERSION \
+ -e BUILD_SOURCEBRANCH \
-e DOTNET_CLI_TELEMETRY_OPTOUT \
-e Configuration \
-v "$DIR:/code/build" \