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?
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
(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.
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:
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.
Rafael P. Sperafico
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.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Planning and grooming sessions all come with their own sets of rules. Team members meet to estimate stories or other work items, all according to an agreed-upon process. And with every session comes ...
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!
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