Skip to content

Commit

Permalink
RIDER-60790 Add gradle task to report project version into TeamCity.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfilippov committed Apr 5, 2021
1 parent 970d742 commit c1b39bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions resharper/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@
<GenerateErrorsGenInputs Remove="$(PsiGenToolsDir)/ErrorsGen.exe" />
<GenerateErrorsGenInputs Include="$(PsiGenToolsDir)/../ErrorsGen.exe" />
</ItemGroup>
<Target Name="ReportVersion" BeforeTargets="Build">
<Message Importance="High" Text="Build are using version: '$(Version)'" />
</Target>

</Project>
8 changes: 7 additions & 1 deletion rider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ logger.lifecycle("version=$version")
logger.lifecycle("BuildConfiguration=$BuildConfiguration")

changelog {
path = "../CHANGELOG.md"
path = file("../CHANGELOG.md")
headerParserRegex = new Regex(~"\\d+\\.\\d+(\\.\\d+)?.*")
}

Expand Down Expand Up @@ -99,6 +99,12 @@ task publishCiBuildNumber {
}
}

task setDotNetVersionTcParam {
doLast {
println("##teamcity[setParameter name='DotNetVersion' value='$project.version']")
}
}

task publishCiBuildData {
dependsOn publishCiBuildNumber, publishCiBackendArtifacts
}
Expand Down

0 comments on commit c1b39bb

Please sign in to comment.