Skip to content

Commit

Permalink
Log version number
Browse files Browse the repository at this point in the history
  • Loading branch information
dtretyakov committed Oct 28, 2016
1 parent c1f1778 commit fcf3daf
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ buildscript {
}

ext {
def correctVersion = hasProperty('versionNumber') && property('versionNumber') ==~ /\d+\.\d+\.\d+.*/
def correctVersion = project.hasProperty('versionNumber') && property('versionNumber') ==~ /\d+\.\d+\.\d+.*/
println property('versionNumber') + ' is correct version: ' + correctVersion
versionNumber = correctVersion ? property('versionNumber') : 'SNAPSHOT-' + new Date().format('yyyyMMddHHmmss')
projectIds = ['group': 'teamcity-dotnet-plugin', 'version': versionNumber, 'artifact': 'dotnet-core-plugin']

teamcityVersion = hasProperty('teamcityVersion') ? property('teamcityVersion') : '9.0'
teamcityVersion = project.hasProperty('teamcityVersion') ? property('teamcityVersion') : '9.0'

teamcityDir = hasProperty('teamcityDir') ? property('teamcityDir') : "$rootDir/servers/TeamCity-${teamcityVersion}"
teamcityDir = project.hasProperty('teamcityDir') ? property('teamcityDir') : "$rootDir/servers/TeamCity-${teamcityVersion}"
teamcityDataDir = "$rootDir/data/" + (teamcityVersion =~ /(\d+\.\d+).*/)[0][1]

teamcityJavaHome = System.properties['java.home']
Expand Down

0 comments on commit fcf3daf

Please sign in to comment.