小编Sim*_*man的帖子

Jenkins Changelog for Git标签

我正在尝试设置Jenkins,以根据给定标签以来Git存储库中的更改生成其更改日志。

有人知道这样做的方法吗?

我尝试使用“针对特定分支计算更改日志”的高级行为,并具有以下几种不同的选项:

  • 资料库名称:来源
  • 分支名称:refs / tags / mytag

但是出现类似以下的错误:

Using 'Changelog to branch' strategy.
fatal: bad revision '^origin/refs/tags/mytag'
ERROR: Unable to retrieve changeset
hudson.plugins.git.GitException: Error launching git whatchanged
    at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:786)
    at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152)
    at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145)
    at hudson.remoting.UserRequest.perform(UserRequest.java:121)
    at hudson.remoting.UserRequest.perform(UserRequest.java:49)
    at hudson.remoting.Request$2.run(Request.java:325)
    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at hudson.remoting.Engine$1$1.run(Engine.java:69)
    at java.lang.Thread.run(Unknown Source)
    at ......remote call to tur-ciwinbuild1(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1361)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
    at hudson.remoting.Channel.call(Channel.java:753)
    at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145)
    at sun.reflect.GeneratedMethodAccessor299.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source) …
Run Code Online (Sandbox Code Playgroud)

git jenkins

6
推荐指数
1
解决办法
1574
查看次数

git whatchanged - -M做什么?

我正在看一些使用-M(大写M,而不是小写,记录为包含合并)的代码传递给Git whatchanged的代码.

我无法在手册页中看到该标志的定义(对于1.8.3.1).任何人都可以建议它做什么?它是-m(小写)的反面吗?

git repository git-log

2
推荐指数
1
解决办法
130
查看次数

标签 统计

git ×2

git-log ×1

jenkins ×1

repository ×1