I've dug through the other articles and can't seem to find any help for my situation. We are attempting to link our source controlled *Java* bamboo-specs bitbucket repo into bamboo.
However, when I make a change ( done via Pull Request using FF merge strategy ), I can see the log in bamboo where it gets the merge update, however there is nothing indicating that the bamboo-specs ever tried to run ( success/error ).
To start with, I have verified that the bamboo-specs are good in that I can run the `mvn test` and `mvn -Ppublish-specs` locally with no issues. Attached is the pom.xml with no external dependencies
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<!-- Test dependencies -->
<!-- run 'mvn test' to perform offline validation of the plan -->
<!-- run 'mvn -Ppublish-specs' to upload the plan to your Bamboo server -->
Some things I am not sure if are affecting this:
1) We have disabled the local agent on the bamboo server for security ( only use remote agents ). Does this agent need to be enabled to process bamboo-specs??
- Our bamboo server does have maven and java installed.
2) In our PlanSpec.java, we define the bambooServer object using the actual URL ( eg: http://mybamboo.com/bamboo ) instead of localhost:8085. Do you have to use localhost to have this work?
3) In any case, how are credentials used when bamboo runs PlanSpec.java. Do we have to supply some sort of .credentials in our repo for it to use to authenticate?
4) The bamboo-specs linked repo is not used by any build plan. The idea is this is a separate repository that is only used to host our entire bamboo configuration.
- The linked Repository was granted full access to All Projects and All Linked Repositories
For points 1 - 3, none of these should be a factor with the RSS import as it works a little differently and point 4 is OK as well.
Firstly, in the logs do you see anything like this confirming that it's running the update?
2018-04-20 17:23:17,243 INFO [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-11] [BranchChangedEventListener] Detected a possible Bamboo spec change in repository. Running update.
If so, are there any errors after that? Possibly Git errors or anything saying there was an exception trying to dispatch the StashBranchChangedRemoteEvent? E.g.
there was an exception thrown trying to dispatch event [com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent
Also, what version of native Git are you running on the Bamboo Server and has it been added as a Server Capability in the Administration settings? Older version of native Git (such as 1.7.1) will cause issues.
Lastly, if Maven actually ran as part of the RSS import there should be logs located at $bamboo-home/xml-data/repository-specs/<repository-id> (the repository ID can be observed in the URL when mousing over the linked repository in the admin settings) which may shed more light on what went wrong.
I never see anything confirming its trying to run the update. I see that it is getting the merge event from bitbucket:
2018-04-16 10:07:26,124 INFO [AtlassianEvent::0-BAM::EVENTS:pool-2-thread-1] [PullRequestAwareEventListener] Received pull request merged event [ bamboo-specs, from: refs/heads/devops-86, to: refs/heads/master]
After that a whole lot of nothing. No logs indicating it actually tried to execute a bamboo-specs update.
Both git and maven are added as server capabilities ( running native git 2.8.2 on the bamboo server )
And the linked repository is configured to be a bamboo-specs repo
When i try to run curl from my local, bamboo-specs are being detected and changes are updated.
curl -X POST -H "Content-Type: application/json" "https://build.company.name/rest/api/latest/repository/scan?repositoryId=
But from bamboo its not working.
G’day Bamboo customers, As we approach GA for Bamboo Data Center , we would like to inform you that the Data Center Apps Program for Bamboo starts this quarter. How long does it take? We are g...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events