File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ $buildInfo = Initialize-BuildEnvironment
55[xml ]$buildVersionXml = Get-Content .\BuildVersion.xml
66$buildVersionData = $buildVersionXml.BuildVersionData
77$preReleaseSuffix = " "
8- if (! [ string ]::IsNullOrWhiteSpace( $buildVersionData.PreReleaseName ) )
8+ if ($buildVersionData.PSObject.Properties [ ' PreReleaseName' ] )
99{
1010 $preReleaseSuffix = " -$ ( $buildVersionData.PreReleaseName ) "
11- if (! [ string ]::IsNullOrWhiteSpace( $buildVersionData.PreReleaseNumber ) )
11+ if ($buildVersionData.PSObject.Properties [ ' PreReleaseNumber' ] )
1212 {
1313 $preReleaseSuffix += " .$ ( $buildVersionData.PreReleaseNumber ) "
14- if (! [ string ]::IsNullOrWhiteSpace( $buildVersionData.PreReleaseFix ) )
14+ if ($buildVersionData.PSObject.Properties [ ' PreReleaseFix' ] )
1515 {
1616 $preReleaseSuffix += " .$ ( $buildVersionData.PreReleaseFix ) "
1717 }
@@ -46,6 +46,8 @@ if( $localCommitSha -ne $remoteCommitSha )
4646 throw " Local HEAD is not the same as origin, these must be in sync so that only the tag itself is pushed"
4747}
4848
49+ Write-Information " tagging $tagname on $releasebranch "
50+
4951git tag - a $tagname - m " Official release: $tagname "
5052git checkout develop
5153git merge $releaseBranch
You can’t perform that action at this time.
0 commit comments