Problems with hotfix:finish

70 views
Skip to first unread message

Karla Jacobsen

unread,
May 19, 2014, 7:19:21 PM5/19/14
to maven-jgit...@googlegroups.com
I've hit a snag with the hotfix:finish. I keep getting error messages such as "Error finishing hotfix: Error releasing: Ref hotfix/in/hotfix/1.19.1 can not be resolved". The "hotfix/in" part doesn't look right, but I can't figure out how it's getting in there. I'm trying to run this goal in Jenkins, so that might be part of the problem. Has anyone else seen this or have any suggestions for debugging?

Here is the stack trace for the error:

Waiting for Jenkins to finish collecting data[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m1:hotfix-finish (default-cli) on project devops-example-parent: Error finishing hotfix: Error releasing: Ref hotfix/in/hotfix/1.19.1 can not be resolved -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m1:hotfix-finish (default-cli) on project devops-example-parent: Error finishing hotfix: Error releasing: Ref hotfix/in/hotfix/1.19.1 can not be resolved
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
	at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:178)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
	at hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
	at hudson.remoting.Request$2.run(Request.java:328)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error finishing hotfix: Error releasing: Ref hotfix/in/hotfix/1.19.1 can not be resolved
	at com.atlassian.maven.plugins.jgitflow.HotfixFinishMojo.execute(HotfixFinishMojo.java:112)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 30 more
Caused by: com.atlassian.maven.plugins.jgitflow.exception.JGitFlowReleaseException: Error releasing: Ref hotfix/in/hotfix/1.19.1 can not be resolved
	at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowHotfixManager.finishHotfix(DefaultFlowHotfixManager.java:385)
	at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowHotfixManager.finish(DefaultFlowHotfixManager.java:110)
	at com.atlassian.maven.plugins.jgitflow.HotfixFinishMojo.execute(HotfixFinishMojo.java:108)
	... 32 more
Caused by: org.eclipse.jgit.api.errors.RefNotFoundException: Ref hotfix/in/hotfix/1.19.1 can not be resolved
	at org.eclipse.jgit.api.CheckoutCommand.call(CheckoutCommand.java:241)
	at com.atlassian.maven.plugins.jgitflow.manager.DefaultFlowHotfixManager.finishHotfix(DefaultFlowHotfixManager.java:236)
	... 34 more



Reply all
Reply to author
Forward
0 new messages