How to fix [ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) on project

Hello folks,

If you ended up in this post, I guess you probably run into some trouble, regarding your Jenkins release job.
So, you have configured a release job that uses the jgitflow-maven-plugin and you get the following error during the build:

[ERROR] Failed to execute goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start (default-cli) on project [project-name]: Execution default-cli of goal external.atlassian.jgitflow:jgitflow-maven-plugin:1.0-m5.1:release-start failed: String index out of range: -6 -> [Help 1]

Searching the Jira tickets of the plugin,, I found out that there is a workaround, where you have to add an additional behavior of checkout to specific local branch:

Figure 1. Recommended workaround

In my case, I just went directly for the Clean before checkout option, (Source Code Management -> Additional Behaviors -> Add):

Figure 2. My workaround

Both are fine, depending on your preferences.

Cheers!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s