Automatically find build number from CI environment

This commit is contained in:
Nate McMaster 2017-04-04 16:18:17 -07:00
Родитель 54141451f2
Коммит ca254a56b6
1 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -1,4 +1,13 @@
<Project>
<!-- Use build number from CI if available -->
<PropertyGroup Condition=" '$(BuildNumber)' == '' ">
<!--
See https://confluence.jetbrains.com/display/TCD10/Predefined+Build+Parameters.
This environment variable is automatically set by TeamCity.
-->
<BuildNumber Condition=" '$(BUILD_NUMBER)' != '' ">$(BUILD_NUMBER)</BuildNumber>
</PropertyGroup>
<!-- Create a temporary build number if not assigned by the CI server -->
<PropertyGroup Condition=" '$(BuildNumber)' == '' ">
<!--