我正在尝试将 Jenkins 与 UCM ClearCase 环境集成,但在构建过程中遇到了问题。
首先,我在我的集成流上创建了一个 -recommended 基线,并在我的开发流上重新建立了这个基线。
我的詹金斯工作是在我的集成流上配置的,并在“子流”上轮询
我在文件中添加了一个“#”以进行一些更改并在轮询后触发构建。在那次更改之后,我创建了将被插件检测到的基线。
它似乎工作正常,直到出现导致构建失败的错误:
[CCUCM] Getting snapshotview
[CCUCM] Updating view using all modules.
java.io.IOException: Error while retrieving changes
at net.praqma.hudson.remoting.deliver.GetChanges.invoke(GetChanges.java:49)
at net.praqma.hudson.remoting.deliver.GetChanges.invoke(GetChanges.java:21)
at hudson.FilePath.act(FilePath.java:981)
at hudson.FilePath.act(FilePath.java:959)
at net.praqma.hudson.scm.CCUCMScm.generateChangeLog(CCUCMScm.java:563)
at net.praqma.hudson.scm.CCUCMScm.checkout(CCUCMScm.java:246)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1265)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1759)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1949)
at java.lang.String.substring(String.java:1916)
at net.praqma.clearcase.ucm.entities.Activity$Parser.parse(Activity.java:275)
at net.praqma.hudson.remoting.deliver.GetChanges.invoke(GetChanges.java:43)
... 13 more
Processing baseline
[CCUCM] Build result: FAILURE
[CCUCM] Cancelling the deliver. Cancelling
Failed.
[CCUCM] Performing common post build steps
[CCUCM] Build failed.
如果我在更改后不创建新基线,并且在“初始”级别更改旧基线,则构建成功但未交付更改,因为旧基线不包含最后的更改。
有人对这个问题有想法吗?