I am trying to integrate Jenkins with a UCM ClearCase environment and I have a problem during the build.
First, I created a -recommended baseline on my integration stream and rebased this one on my dev stream.
My jenkins job is configured on my integration stream and polling on "child streams"
I added a "#" in a file to make a little change and trigger the build after a poll. After that change I created baseline which will be detected by the plugin.
It seems to works fine until an error which cause the build to fail :
[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.
If i don't create a new baseline after a change and I change an old baseline at "INITIAL" level, the build is successful but the changes are not delivered since the old baseline does not contains the last changes.
Is someone have an idea about this problem ?