fixed build number

This commit is contained in:
SpaceToad 2014-02-18 08:34:24 +01:00
parent a665980842
commit f8311fd5d1

View file

@ -24,7 +24,7 @@ apply plugin: 'maven' // for uploading to a mnven repo
// grab buildNumber
ext.buildnumber = 0 // this will be referenced as simply project.buildnumber from now on.
if (System.env.hasProperty('BUILD_NUMBER'))
if (System.getenv().BUILD_NUMBER)
project.buildnumber = System.getenv().BUILD_NUMBER
else
logger.lifecycle "SETTING BUILDNUMBER TO 0"