String pom = new File(project.basedir, '../pom.xml').getText('UTF-8')
def matcher = pom =~ /(?s).*<version>(.*?)-SNAPSHOT<\/version>.*/
assert matcher.matches()
- project.properties['scanner.version'] = matcher[0][1] + '-build' + System.getenv()['CI_BUILD_NUMBER']
+ project.properties['scanner.version'] = matcher[0][1] + '.0.' + System.getenv()['CI_BUILD_NUMBER']
]]>
</source>
</configuration>
function configureTravis {
mkdir ~/.local
- curl -sSL https://github.com/SonarSource/travis-utils/tarball/latest | tar zx --strip-components 1 -C ~/.local
+ curl -sSL https://github.com/SonarSource/travis-utils/tarball/v33 | tar zx --strip-components 1 -C ~/.local
source ~/.local/bin/install
}
configureTravis