修复异常构建

Signed-off-by: donghongyu <donghongyu@zhidaoauto.com>
This commit is contained in:
donghongyu
2022-01-21 17:43:12 +08:00
parent d4b8ee9530
commit 2a6451f76c

View File

@@ -321,7 +321,7 @@ def getWorkingBranchName() {
*/
def getWorkingBranchHash() {
def workingBranchHash = ""
def proc = "git log -n1 --format=format:\"%h\"".execute()
def proc = "git log -n1 --format=format:%h".execute()
proc.in.eachLine { line -> workingBranchHash = line }
proc.err.eachLine { line -> println line }
proc.waitFor()