You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Yuen-Chi Lian <me...@yclian.com> on 2008/08/11 06:38:04 UTC

None interactive SVN fails during release execution (couldn't pass pre-commit hooks)

Hi guys,

My SVN is set up with pre-commit hooks to verify, 1. if there's comment,
2. if a ticket number is mentioned.

I couldn't find a way to specify comment (the scmCommentPrefix option
doesn't seem to help either), so whenever I run the `mvn
release:prepare` command, Maven will with this error:

[INFO] Executing: svn --non-interactive commit --file
/tmp/maven-scm-1393002532.commit --targets /tmp/maven-scm-40854-targets
[INFO] Working directory: /home/yclian/development/svn/foo/trunk
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Unable to commit files
Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: 'pre-commit' hook failed with error output:
At least one open ticket must be mentioned in the log message.

As you can see, the svn command is run in non-interactive mode, is there
any where I can interrupt or provide a comment for the commits done by
the plugin?

Thanks.

-- 
Yuen-Chi Lian | www.yclian.com
"I do not seek; I find." - Pablo Picasso


Re: None interactive SVN fails during release execution (couldn't pass pre-commit hooks)

Posted by Yuen-Chi Lian <me...@yclian.com>.
Thanks for the reply Brett.

> When you say the scmCommentPrefix doesn't help - does the option not
> work, or is it not letting you change the comment to the extent you'd
> like? Currently, I don't think there is any other way to configure it.

Apparently I didn't configure that correctly. What a shame.

It now works!

-- 
Yuen-Chi Lian | www.yclian.com
"I do not seek; I find." - Pablo Picasso



Re: None interactive SVN fails during release execution (couldn't pass pre-commit hooks)

Posted by Brett Porter <br...@gmail.com>.
When you say the scmCommentPrefix doesn't help - does the option not
work, or is it not letting you change the comment to the extent you'd
like? Currently, I don't think there is any other way to configure it.

Of course, the values are consistent, so you might be able to change
your pre-commit hook to allow the default commit messages from the
release plugin as well.

Cheer,s
Brett

2008/8/11 Yuen-Chi Lian <me...@yclian.com>:
> Hi guys,
>
> My SVN is set up with pre-commit hooks to verify, 1. if there's comment,
> 2. if a ticket number is mentioned.
>
> I couldn't find a way to specify comment (the scmCommentPrefix option
> doesn't seem to help either), so whenever I run the `mvn
> release:prepare` command, Maven will with this error:
>
> [INFO] Executing: svn --non-interactive commit --file
> /tmp/maven-scm-1393002532.commit --targets /tmp/maven-scm-40854-targets
> [INFO] Working directory: /home/yclian/development/svn/foo/trunk
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Unable to commit files
> Provider message:
> The svn command failed.
> Command output:
> svn: Commit failed (details follow):
> svn: 'pre-commit' hook failed with error output:
> At least one open ticket must be mentioned in the log message.
>
> As you can see, the svn command is run in non-interactive mode, is there
> any where I can interrupt or provide a comment for the commits done by
> the plugin?
>
> Thanks.
>
> --
> Yuen-Chi Lian | www.yclian.com
> "I do not seek; I find." - Pablo Picasso
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org