Bamboo vcs tagging problem / question

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

3 answers

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.)

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?

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Sep 18, 2018 in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26,151 views 2 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you