Make sure changecount is an integer

This commit is contained in:
Dan Hawkins 2018-12-01 08:25:26 +00:00
commit 75708e8b1d

View file

@ -12,7 +12,7 @@ def getGitRevision(String gitrootpath, int basebuildnumber) {
dir( gitrootpath) {
def int changecount
if (isUnix()) {
changecount = sh(returnStdout: true, script: "git rev-list HEAD --count").trim()
changecount = sh(returnStdout: true, script: "git rev-list HEAD --count").trim().toInteger()
}
else {
def stdout = bat(returnStdout:true , script: "git rev-list HEAD --count").trim()