-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change prerelease label to 'servicing' for 2.1.x nightly builds (#14373)
This backports a change made in 2.2 to build servicing builds as `2.1.8-servicing-123` instead of `2.1.8-rtm-123`
- Loading branch information
1 parent
84a36a3
commit 0cde562
Showing
4 changed files
with
63 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version:2.1.3-rtm-15847 | ||
commithash:08641cb93aa5a9d52dc56c7516828b73aa448690 | ||
version:2.1.7-build-20190110.2 | ||
commithash:00aefcfd284db33352f35bfa2c74c65f8580e372 |
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 |
---|---|---|
@@ -1,18 +1,60 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<VersionPrefix>2.1.8</VersionPrefix> | ||
<VersionSuffix>rtm</VersionSuffix> | ||
<PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion> | ||
<PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion> | ||
<BuildNumber Condition="'$(BuildNumber)' == ''">t000</BuildNumber> | ||
<FeatureBranchVersionPrefix Condition="'$(FeatureBranchVersionPrefix)' == ''">a-</FeatureBranchVersionPrefix> | ||
<VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(FeatureBranchVersionSuffix)' != ''">$(FeatureBranchVersionPrefix)$(VersionSuffix)-$([System.Text.RegularExpressions.Regex]::Replace('$(FeatureBranchVersionSuffix)', '[^\w-]', '-'))</VersionSuffix> | ||
<VersionSuffix Condition="'$(VersionSuffix)' != '' And '$(BuildNumber)' != ''">$(VersionSuffix)-$(BuildNumber)</VersionSuffix> | ||
|
||
<ExperimentalVersionPrefix>0.1.8</ExperimentalVersionPrefix> | ||
<ExperimentalVersionSuffix>rtm</ExperimentalVersionSuffix> | ||
<ExperimentalPackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(ExperimentalVersionSuffix)' == 'rtm' ">$(ExperimentalVersionPrefix)</ExperimentalPackageVersion> | ||
<ExperimentalPackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(ExperimentalVersionSuffix)' != 'rtm' ">$(ExperimentalVersionPrefix)-$(ExperimentalVersionSuffix)-final</ExperimentalPackageVersion> | ||
<ExperimentalVersionSuffix Condition="'$(ExperimentalVersionSuffix)' != '' And '$(BuildNumber)' != ''">$(ExperimentalVersionSuffix)-$(BuildNumber)</ExperimentalVersionSuffix> | ||
<MajorVersion>2</MajorVersion> | ||
<MinorVersion>1</MinorVersion> | ||
<PatchVersion>8</PatchVersion> | ||
<PreReleaseLabel>servicing</PreReleaseLabel> | ||
<OfficialBuildId Condition="'$(OfficialBuildId)' == ''">$(BUILD_BUILDNUMBER)</OfficialBuildId> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition=" '$(OfficialBuildId)' != '' "> | ||
<!-- This implements core versioning. Spec: https://github.com/dotnet/arcade/blob/master/Documentation/CorePackages/Versioning.md --> | ||
<_BuildNumber>$(OfficialBuildId)</_BuildNumber> | ||
|
||
<!-- _BuildNumber from CI is assumed to have format "yyyyMMdd.r". --> | ||
<_BuildNumberYY>$(_BuildNumber.Substring(2, 2))</_BuildNumberYY> | ||
<_BuildNumberMM>$(_BuildNumber.Substring(4, 2))</_BuildNumberMM> | ||
<_BuildNumberDD>$(_BuildNumber.Substring(6, 2))</_BuildNumberDD> | ||
<_BuildNumberR>$(_BuildNumber.Substring(9))</_BuildNumberR> | ||
|
||
<!-- yy * 1000 + mm * 50 + dd --> | ||
<_BuildNumberShortDate>$([MSBuild]::Add($([MSBuild]::Add($([MSBuild]::Multiply($(_BuildNumberYY), 1000)), $([MSBuild]::Multiply($(_BuildNumberMM), 50)))), $(_BuildNumberDD)))</_BuildNumberShortDate> | ||
|
||
<VersionSuffixBuildOfTheDay>$([System.Convert]::ToInt32($(_BuildNumberR)))</VersionSuffixBuildOfTheDay> | ||
|
||
<_BuildNumberSuffix>$(_BuildNumberShortDate).$(VersionSuffixBuildOfTheDay)</_BuildNumberSuffix> | ||
</PropertyGroup> | ||
|
||
<!-- This is temporary until we finish https://github.com/aspnet/AspNetCore-Internal/issues/1338 --> | ||
<PropertyGroup Condition=" '$(TEAMCITY_VERSION)' != '' "> | ||
<_BuildNumberSuffix>$(BuildNumber)</_BuildNumberSuffix> | ||
<VersionSuffix>$(PreReleaseLabel)-$(_BuildNumberSuffix)</VersionSuffix> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<_BuildNumberSuffix Condition=" '$(_BuildNumberSuffix)' == '' ">0</_BuildNumberSuffix> | ||
<VersionPrefix>$(MajorVersion).$(MinorVersion).$(PatchVersion)</VersionPrefix> | ||
<VersionSuffix Condition=" '$(VersionSuffix)' == '' ">$(PreReleaseLabel)-$(_BuildNumberSuffix)</VersionSuffix> | ||
|
||
<!-- Run the build with /p:IsFinalBuild=true to produce the product with 'final' branding and versioning --> | ||
<IsFinalBuild Condition=" '$(IsFinalBuild)' == '' ">false</IsFinalBuild> | ||
<IncludePreReleaseLabelInPackageVersion>true</IncludePreReleaseLabelInPackageVersion> | ||
<IncludePreReleaseLabelInPackageVersion Condition=" '$(IsFinalBuild)' == 'true' AND ('$(PreReleaseLabel)' == 'servicing' OR '$(PreReleaseLabel)' == 'rtm')">false</IncludePreReleaseLabelInPackageVersion> | ||
|
||
<!-- The version in files --> | ||
<PackageVersion>$(VersionPrefix)</PackageVersion> | ||
<PackageVersion Condition=" '$(IncludePreReleaseLabelInPackageVersion)' == 'true' ">$(VersionPrefix)-$(VersionSuffix)</PackageVersion> | ||
|
||
<ExperimentalVersionPrefix>0.1.$(PatchVersion)</ExperimentalVersionPrefix> | ||
<ExperimentalPackageVersion>$(ExperimentalVersionPrefix)</ExperimentalPackageVersion> | ||
<ExperimentalPackageVersion Condition=" '$(IncludePreReleaseLabelInPackageVersion)' == 'true' ">$(ExperimentalVersionPrefix)-$(VersionSuffix)</ExperimentalPackageVersion> | ||
</PropertyGroup> | ||
|
||
<!-- Run 'dotnet msbuild version.props' to test changes to this file. --> | ||
<Target Name="InspectVersionNumbers"> | ||
<Message Importance="High" Text="PackageVersion = '$(PackageVersion)'" /> | ||
<Message Importance="High" Text="VersionPrefix = '$(VersionPrefix)'" /> | ||
<Message Importance="High" Text="VersionSuffix = '$(VersionSuffix)'" /> | ||
</Target> | ||
|
||
</Project> |