The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am interested in setting up an email alert that would get triggered if the code in our production environment differs from what is in the SVN Trunk.
I am wondering if something like this could be accomplished using bamboo.
From your description, I assume you have 2 branches in your SVN repository - a trunk and a production branch. Now you wanted to get an alert when there is a mismatch in both the branches. Please clarify if otherwise.
We can do so by the following sequence.
Write a script (using a Script task) with the below logic.
- Do an svn diff against 2 branches. The below command lists a summary of files that have been added/modified/deleted
svn diff http://REPOS/trunk http://REPOS/branches/PRODUCTION --summarize
- If the result throws more lines, exit the script with exit 1
- This fails the build and sends you an email notification.
- You can now add a trigger to the plan, such that this build is run whenever a new commit is made in the repository.
Hope that helps.
Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.