• Community
  • Questions
  • Do Subversion and Bamboo applications need to be on the same machine ?

Do Subversion and Bamboo applications need to be on the same machine ?

This question is in reference to Atlassian Documentation: Configuring source code management triggers for Subversion


I'm trying to set up a remote trigger for my plan from our Subversion server.

Documentation says the post-commit script must contain the following line:

/path-to-your-bamboo-installation/scripts/svn-triggers/postCommitBuildTrigger.sh base-url BUILD-KEY

But this suggest that the Subversion server is on the same machine than Bamboo. If I try typing the absolute path to the script in another machine, of course the script answers saying it can't find the path specified.

How to target the postCommitBuildTrigger.sh from another server?


3 answers

How about running ssh remotely?

ssh user:pwd@bambooserver '/path-to-your-bamboo-installation/scripts/svn-triggers/postCommitBuildTrigger.sh base-url BUILD-KEY'

Of course, it's better to generate a trusted relationship between the servers, so use

ssh-keygen -t rsa -b 2048
ssh-copy-id user@bambooserver
(check the ssh manual)


Windows, heh? Nevermind, use OpenSSH or cygwin (that beast is nice too). Open SSH may be easier to set up, though.


Uh-oh! I just realized you will need a cygwin anyway (it's a sh) on that Windows.


Thanks for your answer !

I forgot to tell that I'm running all under Windows...

Answer to EDIT2: there is a postCommitBuildTrigger.py in the same folder under Bamboo installation. It seems to be doing the same stuff. Maybe I can target this one instead.

0 vote

Hello Brice,

Thank you for your inquire.

If you are using a remote SVN server, copy file "atlassian-bamboo/repositoryScripts/svn-triggers/postCommitBuildTrigger.sh" to the SVN repository .../hook/post-commit folder so that the postCommitBuildTrigger.sh file can be accessible from post-commit trigger file.

Edit the Subversion repository's hooks/post-commit trigger file with something like:

/path/to/postCommitBuildTrigger.sh http://localhost:8085/api/rest/updateAndBuild.action?buildKey=PROJ-PLAN

See below for more information about the scripts. Please refer to Configuring source code management triggers for Subversion.

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

Kind regards,
Rafael P. Sperafico
Atlassian Support

Thanks for this answer ! I will try this but before on last question : I guess that as I'm running all under Windows, I need to use the .py file instead of the .sh file, right ?

Yes, in this case you would be using the Python version instead (.py). Please, make sure you have Python installed and available to your system in the PATH environment variable.

You will notice postCommitBuildTrigger.py has a script written and an example on how to use it.

Suggest an answer

Log in or Join to answer
Community showcase
Jason Wong
Published 11 hours ago in Agility Beta

Welcome to agility

Every team in the world is unique, and so   Atlassian believes   that each and every team's best way of working  needs to  be molded to their unique circumstances  – ...

230 views 5 14
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot