fix build script if not git cloned
This commit is contained in:
@@ -28,6 +28,7 @@ def gitCommitHash = { ->
|
|||||||
exec {
|
exec {
|
||||||
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
commandLine 'git', 'rev-parse', '--short', 'HEAD'
|
||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
|
ignoreExitValue = true
|
||||||
}
|
}
|
||||||
return stdout.toString().trim()
|
return stdout.toString().trim()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user