如何设置" Git Changelog"在詹金斯?

时间:2016-03-15 15:48:35

标签: git jenkins changelog

https://wiki.jenkins-ci.org/display/JENKINS/Git+Changelog+Plugin

首先,我只看到我的屏幕截图中的内容,无法找到"打印作业摘要页面"和"创建文件"部分。然后我得到了如下所示的错误。谁能告诉我如何在这个插件中正确设置参数?

enter image description here

Checking out Revision a781fbc49bda7083ebc05e28cee60de4e4258b17 (refs/remotes/origin/master)
 > D:\Git\bin\git.exe config core.sparsecheckout # timeout=10
 > D:\Git\bin\git.exe checkout -f a781fbc49bda7083ebc05e28cee60de4e4258b17
 > D:\Git\bin\git.exe rev-list a781fbc49bda7083ebc05e28cee60de4e4258b17 # timeout=10
[GitChangelog] $ cmd /c call C:\Users\SVC_SE~2\AppData\Local\Temp\hudson6987037442402124620.bat

D:\public_jendevslave_1\workspace\Playground\GitChangelog>set
...
GIT_BRANCH=origin/master
GIT_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17
GIT_PREVIOUS_COMMIT=a781fbc49bda7083ebc05e28cee60de4e4258b17
WORKSPACE=D:\public_jendevslave_1\workspace\Playground\GitChangelog

D:\public_jendevslave_1\workspace\Playground\GitChangelog>exit 0 
Saving processed git changelog to file D:\Jenkins\git_changelog.txt.
ERROR: Build step failed with exception
java.lang.RuntimeException: Ref a781fbc49bda7083ebc05e28cee60de4e4258b17 not found.
    at de.wellnerbou.gitchangelog.jgit.GitLogBetween.getJGitLogBetween(GitLogBetween.java:34)

Build step 'Publish Git changelog' marked build as failure

2 个答案:

答案 0 :(得分:1)

当您添加“Post Build Step”时,您可以选择“Git Changelog”和/或“Git Publisher”。你应该选择“Git Changelog”。

答案 1 :(得分:0)

请从Post-build Actions中选择Git Changelog,然后像在您的屏幕截图中进行配置,或者按照下面的我的屏幕截图进行操作。

Git Changelog from Post-build Actions Dialog

相关问题