我的jenkinsfile.groovy
(在从机上运行windows
)有以下输出:命令:
def commitHash = bat(returnStdout: true, script: "git rev-parse HEAD").trim()
commitHash
内容:
c:\jenkins-slave\workspace\test-K5I54FOWDXJU7QWEX2YF4ZSWVNSFITDVMLAIK3SVMG3V4JJM2QHA>git rev-parse HEAD 123456
我怎么能从中得到呢123456
?