youngmon/atlassian-qna huggingface dataset:
Can I create/clone a Bamboo build plan using the REST API?
Asked by Jason Rider:

I need to create/clone build plans using the REST API. I want to define a build plan "template" then have dev teams be able to auto-create a plan for their project on demand. Do you have any examples or suggestions on how best to do this?

E.g. <http://bambooci.cgelsie.com:8080/rest/api/latest/clone/BT-PFSJAD:BT-NewPlan>


Answers:
author: Przemek Bruski
body: Not possible, sorry. We are working on a REST API that will let you do it though.

comments: author: Jason Rider
body: Thanks for the quick response Przemyslaw. Do you have a timeframe when Atlassian may make this available? -should have posted this here


author: Jason Rider
body: Would this capability be possible through the Java API or any other way?


author: Michael Wetthasinghe
body: Has this been implemented now?


Tags: bamboo-administration
Add more ssh key to git repository?
Asked by whtank:

I have two agents can fulfill requirement of my plan, but the referenced repository of this plan used ssh as authentication. Currently only one ssh can be added or set to this repository that result in only one agent can execute this plan. I hope repository can add more ssh key then plan can execute on multiple agents.


Answers:
author: Przemek Bruski
body: Change authentication type to none and provide keys on each of the agents. You can have as many keys as you want.


author: whtank
body: Two agents represents two PCs. We don't hope share the ssh key between two agents. Because it's not recommended to share a private key from a PC to any other PCs


author: Mike Friedrich
body: Can you explain why you need two ssh keys for authentication and why two agents cannot use the same key?
can bamboo test projects written in golang?
Asked by James Munson:

I've yet to see it brought up in any of the big golang communities, google isn't finding much either.

Does anyone have any experience testing Golang projects with Bamboo? Does it support the default testing framework out of the box or do you need to manipulate it into using some java compatibility layer? Do GoConvey tests run properly?


Answers:
author: Mihai
body: We moved to travis because of this issue. Bamboo supports only java out of the box. Anything else(I've configured go, node and ruby) is just a pain to configure(not to mention the maintenance). You end up spending more time making your tests run on bamboo than running the tests


author: Przemek Bruski
body: There are no dedicated Go plugins on Bamboo Cloud. You can run them as long as you can script them (through a script task) and the test results will be available as long as they can be exported into a format that Bamboo understand (e.g. JUnit, search for parser tasks in Bamboo).


Tags: cloud

golang
Bamboo cloud - installing mysql/mongo/python
Asked by bastianb:

Hello,

In order to switch from Jenkins to Bamboo I am wondering if it is possible to install application alongside bamboo cloud, for example different version of mysql and mongo (ex. mysql5,6 \& mysql5.5), python 2.6/2.7 ?

Also can we install more package to python? What can of access we have to install those ?

Thank you.


Answers:
author: Przemek Bruski
body: You choose the size of you instance, you can install anything you want.


author: bastianb
body: What about having different version of mysql for example? does the could version allow to install anything? How big is the instance?


author: Przemek Bruski
body: You can use instance configuration script - basically a script ran as root when the instance starts. You can enter it in the image configuration page. Internally, we set up databases (mysql/postgres and even Oracle) and extra packages (like firefox).


Tags: cloud
How can I auto link Bamboo manual rebuilds to JIRA?
Asked by Haani_Niyaz:

I currently have a repository which contains the JIRA issue ID so when I first run the plan, the job auto links it to JIRA successfully. However, it seems that any subsequent jobs do not recognize the commit. I suspect this is because it is not considered as a 'new' commit anymore.

I do not want to have to link the plan/job to JIRA manually. Is there way to get around this in the event the plan is run manually?


Answers:
author: rsperafico
body: Hello Haani,

Thank you for your question.

In case you are committing something to a repository (i.e.: Stash, Bitbucket) you can add JIRA's issue key to the commit so when Bamboo runs the build, the same will be automatically linked with the JIRA's issue(s) you have provided in the commit.

Please, refer to [Processing JIRA issues with commit messages](https://confluence.atlassian.com/display/AOD/Processing+JIRA+issues+with+commit+messages) documentation for further information.

Now, if you are running your build manually, Bamboo does not know to which issue (in JIRA) the build should be linked to. In this case, I am afraid you will have to add it manually.

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


Tags: bamboo-administration

commit

link
does Clover-for-Ant 4.0.2 support Groovy 2.3.7?
Asked by rishi aggarwal:

Hello, We are planning to Upgrade Groovy v1.7.2 to v2.3.7 AND Gant v1.8 to v1.9.11.

Could you please confirm Clover-for-Ant 4.0.2 and Bamboo v 5.5.1 support Groovy 2.3.7?

Please note we are using [Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 5.5.1 build 4306

Thanks

Rishi Aggarwal


Answers:
author: rishi aggarwal
body: Yes, it works. thanks.


author: rishi aggarwal
body: Yes, it works. thanks.


author: Adrian Moerchen
body: Maybe just try it and give feedback.
Admin kicked out of bamboo admin group
Asked by fredB:

Hi all,

[Atlassian Bamboo](http://www.atlassian.com/software/bamboo/) version 5.6.0 build 4409 here.

I needed to add someone to the admin group, so I went on to the groups editor, edited the bamboo-admin group, found the user to add, clicked save... And then I lost my admin rights.

Firstly, why? There is no safeguard?

So, how do I verify how messed up is the admin group now? How do I add myself back?

thanks,

Fred


Answers:
author: fredB
body: Hey Mike, thanks.

I did the install. The user name I used for the initial admin is the user name I have in our LDAP directory. So for the past few weeks I've been logging in with it because that's just my user name.

The installer user is that one that has lost its permissions.

Naturally, out of desperation I look through the DB tables to see users and groups, I can see my user in the "users" table, the "local_members" puts my in the bamboo-admin group, my user doesn't appear anywhere in the "external_entities" table as a member of our ldap directory.

Wait, I tried to add myself as an admin user from LDAP, I failed at that but the initial admin account is back to the admin group.

Ok, my problem is solved in ways I don't understand. Is there any hope that Bamboo will add some safeguards?

comments: author: Daniel Wester
body: Looks like there's an open issue <https://jira.atlassian.com/browse/BAM-11705> . My suggestion would be to vote for it. But since it's happened to me as well (and I had to go into the database to fix it)... I think it's necessary


author: fredB
body: Thanks Daniel.it's a 2 year old issue, but I cast my vote.


author: Mike Friedrich
body: If you kept the buildin adminitrator (bamboo_admin?) - the one the installer created - you can use that one and add yourself.
Static Analysis for Bamboo
Asked by Timothy Harris:

Hi,

I work for a company in Denmark(Praqma) that specializes in CI/CD. Basically we sell our expertise in this area.

Presently I am working on a project for a customer where pretty much the whole suite of ++**your products**++ is in focus for a POC. From Confluence to JIRA Agile, Stash and Bamboo. We are Atlassian partners.

However, we have, as I see it a **major issue with Bamboo**. We have no static code analysis tool that works with Bamboo...

I had intended to install Sonar and the Sonar plugin for them as I knew the findbugs plugin was broken. But the Sonar plugin is broken with Bamboo 5.6.2. After reading an update on Marvelutions Confluence site, it doesn't look a version that works with Bamboo 5.6.2 will be coming anytime soon. It has been broken for a while and no updates or commits have been done for a year!

Static analysis is usually one of the very first steps added to a CI pipeline. It is pretty much a ++**killer**++ for Bamboo right off the bat!! There simply **has** to be a basic static analysis tool.

So, even though I really like a lot the features in Bamboo, I am forced to shift focus to Jenkins as the CI server for this project.

My question is this. **Do you have any ++plans++ to ensure at least one static analysis tool, which will work out of the box with Bamboo?**

They want static analysis, Bamboo can't deliver and we have no idea if it will ever be able to provide this ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

Personally, I think FindBugs would be enough...

Without some type of statement on your part regarding this I can't recommend the use of Bamboo to this customer, which I think is a shame as it has a lot of promise...


Answers:
author: sbirgisson
body: Hi,

Have you tried the Sonar4Bamboo plugin? <https://marketplace.atlassian.com/plugins/ch.mibex.bamboo.sonar4bamboo>

To be clear, I havent tried it myself and I dont know if that is what you want.

Clover comes with Bamboo out of the box, but is different from normal static analysis, see description here from our Clover developer, <http://stackoverflow.com/questions/24613365/clover-versus-sonar>

Hope this helps,

Regards,

Sigge, QA engineer in Bamboo


author: Timothy Harris
body: I guess this will not be answered...
Bamboo sometimes deletes git repository cache, causing builds to queue
Asked by choover-kayak:

We have a pretty big git repository (12gb). A couple of times per week, our Bamboo server encounters a transient error while fetching from this repository, and deletes it. For example:

```
2014-10-10 15:45:21,370 WARN [Connection monitoring thread - f43779d7-35ef-4a01-bbd3-d46fb736b884] [SshProxyCommand] While connecting to [git@stash-server/10.82.0.208:7999]: Can't connect session, connectFuture is not connected...2014-10-10 15:45:21,474 WARN [4-BAM::PlanExec:pool-8-thread-3] [GitRepository] Deleting directory /bamboo/home/xml-data/build-dir/_git-repositories-cache/9360a00282e07c71c10adb9b42b674a2f2237b1b
```

(The error is just as often "connection refused" or "closed unexpectedly")

After deleting the repo, Bamboo starts a fresh clone. Since our repo is large, a clone can take a long time - sometimes as long as an hour. While the re-cloning happens, no builds trigger, and any manual builds stay queued until the clone is complete.

Are there any configuration changes we can make to mitigate this problem? Why does Bamboo delete the git repository so aggressively? We don't see any corresponding errors in our Stash logs.


Answers:
author: Timothy Harris
body: I know this doesn't help your specific issue now ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

But a 12Gb repository is insane and I can't help making a comment :smile:.

Have you thought about splitting your repository?

Trying to work Agile with CI/CD principles will never work with repo that size...


Tags: bamboo-administration

git
Grails 2.4 on Bamboo OnDemand?
Asked by Joachim Martin:

Is this possible? Looks like it's just 2.2.

Is it possible to install the Bamboo Grails Wrapper plugin?

<https://github.com/commercehub-oss/bamboo-grailswrapper-plugin>

This would allow us to build any version of grails that includes the wrapper and you guys wouldn't need to keep up with grails releases.


Answers:
author: Przemek Bruski
body: The best way to check which grails is available on standard images is to log into the ec2 instance and check the /opt directory.

Grails 2.4 will be available with the next image update.

Getting the plugin on OnDemand is tricky ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad"), sorry.


Tags: cloud
Can i install bamboo under Linux to build .NET projects?
Asked by Octopus Microfinance:

We are moving from one server to another very soon.

I think it is clear we need to deploy bamboo on Windows platform but still need confirmation for this.

Would you kindly help me, guys?


Answers:
author: Mike Friedrich
body: My understanding is that this should be possible.

More precise, this scenario should be possible:

* Bamboo server on linux
* Bamboo Remote Agents on Windows machines

One thing need to be checked, the Server Capabilities vs. Agent Capabilities (Bamboo Administration area under Build Resources)


author: Krystian Brazulewicz
body: @Mike Friedrich has described a configuration you might need: Bamboo server running on Linux and remote agents doing compilation/testing/deployments on Windows.


author: Jason Monsorno
body: Check out <http://www.mono-project.com/>. There may be some changes, compromises, or even enhancements you have to do to the code to make it mono compatible but then you can compile on \*nix systems as well as Windows.


Tags: c

linux
Possible to integrate all current Bamboo plan branches?
Asked by D:

Is it possible to merge currently available plan branches into a "combination branch" that contains all changes from the current plan branches?

Trying to give you a short introduction why I'd like to do this

We are more or less following the git-flow workflow. But integrating "feature" branches back to develop should only happen after a review of the corresponding pull request in Stash.

But the issue here is that from time to time pull requests are checked too late and we will have a lot of conflicts near sprint end as nobody took care about the pull requests. (Organisational issue I know)

Idea is now to let Bamboo do the integration of "everything open" to get feedback about merge issues as soon as possible. But as we don't want to (cant't) merge to "develop" automatically the build in merging features of Bamboo won't cut it. At least for my current understanding.

I know that it wouldn't solve any issues. But we would have at least an indicator that we run into problems as soon as possible and the developer created the conflict is at least aware if not responsible for solving it.

Is this a scenario Bamboo itself can help in general or is it something we have to solve on (build) script level?


Answers:
author: Mike Friedrich
body: Why dont you just create an "integration" branch for that in git that is used by Bamboo only (fetch and push)?

Then use that in Bamboo as the primary branch, but developers in the git repo still use the "develop" branch for branching and merging their work.

I guess you still have to manually or by script merge from "develop" before starting a build or *update* that branch in regular intervals.

Would that work?

Or you could still let Bamboo merge to "develop", but dont let it push back to the repo.


author: Pawel Skierczynski
body: There is nothing like this in Bamboo. You probably could come up with some kind of crazy script but I wouldn't

You may want to test feature branch with one another branch. Don't merge all feature branches together - it doesn't scale well and it will just always fail.

I would use branch updater/gatekeeper features but without push at the end. So you build your branch merged to devel and run tests on that.

comments: author: D
body: \< - it doesn't scale well and it will just always failThat's what I'd expect as well. So I thought there might be something that could help or mitigate this problem in Bamboo as it already has the plan branches feature. Or maybe a clever idea on how to tackle this.Just to reflect on my issue. At the end it boils always down to a people/organisation issue I'd say.


author: Pawel Skierczynski
body: Maybe I don't understand you process. In my opinion immediate testing each feature branch with develop and maybe encouraging people to not leave feature branches alive for long is enough. Even more - red test on feature branch is not critical error - it's just indicator for author. He may have "work-in-progress" and knows that it's failing for 2 days and it's probably okay.


Tags: bitbucket-server

workflow
Unable to pull repos list using GET method
Asked by puru kovvuri:

Hi Team,

We're trying to pull repos list with cloud API and not able to get it.

<https://api.bitbucket.org/2.0/repositories/workspaceID>

![Screenshot 2022-04-10 122625.png](https://community.atlassian.com/t5/image/serverpage/image-id/192301i91BEFFB106F813D0/image-size/large?v=v2&px=999 "Screenshot 2022-04-10 122625.png")


Answers:
author: Karthick S
body: Hello [@puru kovvuri](/t5/user/viewprofilepage/user-id/4195856)

Thank you for reaching out to Atlassian Community!

Could you please ensure the App password created has the necessary permissions? It also expects the username, not the email ID.

Reference: <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Alternatively, you may try using CURL and see if the issue persists?  

```
curl -X GET -u username:AppPassword "https://api.bitbucket.org/2.0/repositories/{workspace-id}"
```

I hope this helps.

Kind regards,

Karthick S

comments: author: puru kovvuri
body: [@Karthick S](/t5/user/viewprofilepage/user-id/4557546)

Excellent, it has worked. Thank you so much !!

Is there a way to get last code committed user details and timestamp?


author: Karthick S
body: Hello [@puru kovvuri](/t5/user/viewprofilepage/user-id/4195856)  

Glad to know it helped! You may use [this API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get) which would return commits for the specific repository. I have provided a sample CURL query that returns the results based on the recent update. The first response is the last code committed.

```
curl -X GET -u username:AppPassword "https://api.bitbucket.org/2.0/repositories/workspace_id/repo_slug/commits?sort=updated_on"
```

I hope this helps.

Kind regards,

Karthick S


author: puru kovvuri
body: [@Karthick S](/t5/user/viewprofilepage/user-id/4557546) Thank you again !!


Tags: bitbucket-cloud

cloud
In New server i want to install PyAts, So i required bit bucket token.
Asked by venkatesh M:

In New server i want to install PyAts, So i required bit bucket token. Please suggest me how to create bitbucket token..to install pyats


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@venkatesh M](/t5/user/viewprofilepage/user-id/4869036) ,

welcome to the Atlassian community!

Here a simple guide about how-to create a Bitbucket token <https://confluence.atlassian.com/bitbucketserver/http-access-tokens-939515499.html>

Hope this helps,

Fabio


Tags: bitbucket-server

migration-customer-care

server
Repository is over the size limit (4 GB) and will not accept further additions.
Asked by Optiontrading_app:

hello

I had several big files and had many many revisions of those files checked in. I guess that led to the Repository is over the size limit (4 GB) and will not accept further additions warning.

I've deleted all big files in local and when I tried to push, I am getting a warning

remote: Repository is over the size limit (4 GB) and will not accept further additions. again.

any idea?


Answers:
author: Theodora Boudale
body: Hi [@Optiontrading_app](/t5/user/viewprofilepage/user-id/4868793) and welcome to the community.

I ran a git gc for your repo that was over the 4 GB limit, its size is 28.6 MB now.

Does this agree with the size of your local repo, if you run **git count-objects -Hv** ?

We have a feature request to allow users to run a git gc for their remote repos:

* <https://jira.atlassian.com/browse/BCLOUD-11593>

I would suggest adding your vote to the feature request (by selecting the **Vote for this issue** link) if you'd be interested in that feature. You can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Kind regards,  
Theodora

comments: author: Optiontrading_app
body: it worked! thanks.


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you ever need anything else.

Kind regards,  
Theodora


author: Pramodh M
body: Hi [@Optiontrading_app](/t5/user/viewprofilepage/user-id/4868793)

Welcome to the Community!!

You will need to reduce the size of the repository in order to continue working with that,

Please follow the guide here

<https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size>

You may need to consider removing binary files or tracking them via LFS!!

Thanks,  
Pramodh

comments: author: Optiontrading_app
body: i I've already reduced the size of the repository. I deleted the files in my local branch. I am trying to push the deletion to bitbucket but I can't do so because I am over 4gb right now.


author: Pramodh M
body: You will need to raise the Atlassian Support ticket in order to get assistance on this one!!


Tags: atl-rvw

bitbucket-cloud

cloud
Cannot push to repository - access rights
Asked by 06tech:

I stating work on an existing project and my Atlassian account has have been added as an **Admin** to the repository and my SSH public key from my development laptop has also been added to the Access Keys list.

I tried to push up a new branch to the repo and receive this error (I've tried from command line and from Sourcetree - same result):-

```
Unauthorized
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

```

NB: I have cloned the repo via SSH with no problems so read access is fine...

Any ideas on how to fix this?

Thanks


Answers:
author: Karthick S
body: Hello [@06tech](/t5/user/viewprofilepage/user-id/4868692),

Welcome to the Atlassian Community!

Access key in the repository provides READ-only access. Could you try adding the public SSH key in the [Personal settings](https://bitbucket.org/account/settings/ssh-keys/) of the Bitbucket?

Reference: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

I hope this helps.  

Kind regards,  
Karthick S

comments: author: 06tech
body: Thanks for your reply - when I try and add my SSH key to my account through Personal Settings I get an error:-

***Someone has already added that key as an access key to a repository.***


author: Karthick S
body: Hello [@06tech](/t5/user/viewprofilepage/user-id/4868692)

Currently, it is not possible to add the same SSH key more than once. I believe you have mentioned you have added the SSH key in the repository as an access key. If yes, could you please remove it from the repository and then try adding the SSH Key in the [Personal settings](https://bitbucket.org/account/settings/ssh-keys/) of the Bitbucket?

Kindly keep us posted if you face any issues.

Kind regards,

Karthick S


Tags: bitbucket-cloud

cloud

ssh