We have a SVN repo that has a precommit hook to force a message on commits.
When we are setting up the VCS tagging task, we get errors because the Bamboo task doesnt supply a message. The error message is below.
Is there a way to have bamboo add the message? What is the recommend solution in this scenario.
com.atlassian.bamboo.task.TaskException: Exception when tagging repository at com.atlassian.bamboo.plugins.vcs.task.VcsTaggingTask.execute(VcsTaggingTask.java:57) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:183) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:91) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:84) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:204) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:103) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:109) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:50) at java.lang.Thread.run(Unknown Source) Caused by: com.atlassian.bamboo.repository.RepositoryException: Error while creating tag at com.atlassian.bamboo.repository.svn.SvnRepository.createTag(SvnRepository.java:1793) at com.atlassian.bamboo.plugins.vcs.task.VcsTaggingTask.execute(VcsTaggingTask.java:52) ... 8 more Caused by: org.tmatesoft.svn.core.SVNException: svn: Commit failed (details follow): svn: Commit blocked by pre-commit hook (exit code 1) with output: ***************************************************************************** Your commit has been blocked because you didn't give any log message Please write a log message describing the purpose of your changes. Important: Please add the issue identifier (ie, PS-15, OPS-15) in upper case then try committing again. -- Thank you, Onlife Health Configuration Management Team ***************************************************************************** at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:64) at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:51) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.copyReposToRepos(SVNCopyDriver.java:380) at org.tmatesoft.svn.core.internal.wc.SVNCopyDriver.setupCopy(SVNCopyDriver.java:629) at org.tmatesoft.svn.core.wc.SVNCopyClient.doCopy(SVNCopyClient.java:426) at com.atlassian.bamboo.repository.svn.SvnRepository.copyRepository(SvnRepository.java:1751) at com.atlassian.bamboo.repository.svn.SvnRepository.createTag(SvnRepository.java:1789) ... 9 more
Please add the below code and skip all validations if the build is from bamboo. It worked for me.
AUTHOR=`$SVNLOOK author "$REPOS"`
if [ "$AUTHOR" = "xxxxxxxxxx" ]; then
exit 0
fi
Hi Guys,
There is actually an improvement request to make the VCS tagging more configurable with the commit message. You can watch the request at https://jira.atlassian.com/browse/BAM-10658
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sure, pass a message with the commit.
Not knowing exactly how your subversion commit is being created (are you using a plugin or just tagging from the command line) you can add a -m "my checkin message to satisfy the Onlife Health Configuration Management Team"
as an argument to whatever command you are using to generate the commit action.
I do most of my svn activity using scripts but I suspect you can add the -m "your message here" string on the argument line of whatever subversion action you're committing. (tagging, branching, etc.)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi got the same problem, but the -m does not work for me
I am using the VCS Branching plugin with SubVersion as repository
and in the Display Name field I've added: AppName_1.1.x -m "Branch created by Bamboo"
but it failds with error:
14-Mar-2013 08:05:31 Caused by: org.tmatesoft.svn.core.SVNException: svn: Commit failed (details follow): 14-Mar-2013 08:05:31 svn: Commit blocked by WANdisco pre-replication pre-commit trigger (exit code 1) with error: Please enter a commit message which details what has changed during this commit. 14-Mar-2013 08:05:31 svn: MERGE of '/repos/test/BambooTest/branches': 409 Conflict (http://svnglobal.xxx.xxxxx.com)
anyone?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.