Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvn gitflow:release-finish fail with "There is no release branch." #18

Closed
emerout opened this issue Jun 14, 2016 · 2 comments
Closed

mvn gitflow:release-finish fail with "There is no release branch." #18

emerout opened this issue Jun 14, 2016 · 2 comments
Assignees
Labels

Comments

@emerout
Copy link

emerout commented Jun 14, 2016

On a fresh cloned repo,
mvn gitflow:release-start and mvn gitflow:release-finish are working fine.

But on the second time, gitflow:release-finish failed with " There is no release branch."

[INFO] --- gitflow-maven-plugin:1.2.2:release-finish (default-cli) @ foolab ---
[INFO] Checking for uncommitted changes.
[INFO] Checking for SNAPSHOT versions in dependencies.
release/0.1.7
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] foolab ............................................. FAILURE [  5.057 s]
[INFO] foolab-web ......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.512 s
[INFO] Finished at: 2016-06-14T11:37:35+02:00
[INFO] Final Memory: 11M/224M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.amashchenko.maven.plugin:gitflow-maven-plugin:1.2.2:release-finish (default-cli) on project foolab: There is no release branch. -> [Help 1]
@emerout
Copy link
Author

emerout commented Jun 14, 2016

Got it,

A bug when you set that :

<configuration>
    <verbose>true</verbose>

in com.amashchenko.maven.plugin.gitflow.AbstractGitFlowMojo#executeCommand

        final StreamConsumer out;
        if (verbose) {
            out = new DefaultConsumer();
        } else {
            out = new CommandLineUtils.StringStreamConsumer();
        }

        final CommandLineUtils.StringStreamConsumer err = new CommandLineUtils.StringStreamConsumer();

        // execute
        final int exitCode = CommandLineUtils.executeCommandLine(cmd, out, err);

        String errorStr = err.getOutput();
        String outStr = "";
        if (out instanceof StringStreamConsumer) {
            outStr = ((StringStreamConsumer) out).getOutput();
        }

outStr value is always empty ...

Workaround is to set verbose false

@aleksandr-m
Copy link
Owner

This should fix it. Thanks for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants