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