Make sure changecount is an integer
This commit is contained in:
parent
c4b875e5e9
commit
9b5c42f428
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue