我已经安装好了Jenkins,并且可以通过git提交触发构建。以下是一个日志示例:
00:00:00.016 Building in workspace D:\SomeWorkspace
00:00:00.016 > C:\Program Files (x86)\Git\bin\git.exe rev-parse --is-inside-work-tree # timeout=10
00:00:00.047 Fetching changes from the remote Git repository
00:00:00.047 > C:\Program Files (x86)\Git\bin\git.exe config remote.origin.url http://usr:pwd@gitRepoAddress.git/git/Repo.git # timeout=10
00:00:00.063 Fetching upstream changes from http://usr@gitRepoAddress.git/git/Repo.git
00:00:00.063 > C:\Program Files (x86)\Git\bin\git.exe --version # timeout=10
00:00:00.234 using .gitcredentials to set credentials
00:00:00.234 > C:\Program Files (x86)\Git\bin\git.exe config --local credential.helper store --file=\"C:\Path\To\Temp\git2724877017172338447.credentials\" # timeout=10
00:00:00.250 > C:\Program Files (x86)\Git\bin\git.exe fetch --tags --progress http://usr@gitRepoAddress.git/git/Repo.git +refs/heads/*:refs/remotes/origin/*
我想做的是查看git命令的输出,以便进行诸如检查正在使用的git版本,查看为什么git fetch
很慢等操作,但我无法找出如何显示额外的输出。 有任何想法吗? 当我在此Windows框上安装的git-bash中运行这些命令时,git fetch
运行得更快,并且我不确定如何调试Jenkins中发生的情况。