youngmon/atlassian-qna huggingface dataset:
Build plan and linked repository for different build environment
Asked by Aakash Basnet:

I am thinking of creating a three different build plan for three different environment like Sys, Int and Prod.Do I have to create a different repositories for each build plan to linked with? or Can I go with single repository for each build plan? My core intent is to get idea on how to perform continuous integration build for different environment. Or only single build plan and single repository is sufficient to carry out build for each environment if so how?

Please suggest me how to carry out the build plan?

Thank you


Answers:
author: dericleeyy
body: You can use the same linked repository for different build plans. There isn't a need to create multiple instance of the same repository if the different build plans are using the same code.

Looking at this, you can have a single build plan and multiple deployment deployment environment. The build plan is responsible for compilation and testing of the project. The deployment environment is responsible of transferring the artifacts to the environment and starting up the application.
Is there a way to export a bamboo configuration in a non-binary format?
Asked by Nicholas Fisher:

We are trying to put our bamboo configuration in version control. Is there a way to export the bamboo configuration in a text format? A human readable format such as xml would be preferred.


Answers:
author: Nicholas Fisher
body: Is there a plan to do this? Is there a way to make an official request/issue?

comments: author: Krystian Brazulewicz
body: This issue seem to be closest to your requirements: <https://jira.atlassian.com/browse/BAM-11453>. Please vote on it.


author: Krystian Brazulewicz
body: We do not provide such solution at the moment.


Tags: bamboo-administration
How do I upgrade JDK in Bamboo Cloud?
Asked by Ben:

Currently, BambooCloud is using JDK 1.8.0 update 31. Is there a way to force an update to update 40, other than creating my own elastic image with it installed manaully? or do we have to wait for Atlassian to do it? And if so, is there a link to their schedule to do that?


Answers:
author: rsperafico
body: Hello Ben,

Thank you for your question.

Please, notice the URL you have provided is for openJDK whereas the stock images in Cloud are using Oracle instead (in most cases). However, you are able to install the Java version that suits you most by going to "***Bamboo administration \>\> Elastic Bamboo \>\> Image configurations \>\> \[stock image\]*** " and hit "***Edit*** " under "***Operations***".

You should find "***Instance startup script***" at the bottom page where you can download and install the JDK that you require.

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


author: Jo?o Palharini
body: Hi Ben!

There's no way to force a JDK update on Atlassian Cloud. All dependencies are shared between multiple servers and all clients are supposed to have all (or the major part of) softwares running under the same version.

Unfortunately, we cannot disclose any road map for future updates on JDK under our servers. Anyway, be sure that we do our best to keep all dependencies as updated as possible but we have to ensure, in first place, full compatibility with our products and between dependencies as well. That means lots of testing before an update goes into production! :wink:

--

Cheers!

Joao

comments: author: Ben
body: Seems like waiting over a month to get the latest JDK into Bamboo is excessive, particularly if no date given. Specifically, we need the fix for <https://bugs.openjdk.java.net/browse/JDK-8056984> and the alternative of making our own elastic images is a lot of work. As usual, it seems that Atlassian Cloud doesn't get the love it deserves for it's paying customers...


Tags: cloud
Bamboo agent recovery?
Asked by Timothy Harris:

How does Bamboo recover when an agent is lost/goes off line during a build?

Is there any recovery per say or si the build just marked as failed?


Answers:
author: Timothy
body: > How does Bamboo recover when an agent is lost/goes off line during a build?

Technically, Bamboo does not look for an agent. The agent tells Bamboo that it is on. Bamboo deactivates the agent if the agent does not ping it in a certain amount of time.
> Is there any recovery per say or si the build just marked as failed?

It will be marked as failed as failed != queued.


Tags: agent
How do I fail build if anything gets written to stderr?
Asked by splatteredbits:

Our current build server fails a build if anything is written to stderr. I'd like to mimic the same behavior, since we have dozens and dozens of PowerShell scripts whose error handling was written with that behavior in mind.


Answers:
author: RudeyG
body: If you don't want to make changes to your existing PowerShell script, one idea is you can write a wrapper script and put that wrapper script into Bamboo Build Plan Task. Wrapper script will do 2 things:

1. Calling the actual PowerShell script and catch its stderr output;
2. Generate a non-zero exit code if it caught output in stderr.


Tags: build
Bamboo reports "unable to detect changes" when Stash is backing up
Asked by Mark de Bont:

configuration : Bamboo 5.7.x linked to Stash 3.6.x.

Every night when Stash is being backed-up (using the Backup client from marketplace) Bamboo generates the following system Errors:

"

[Sandbox - Sonar_On_Sandbox](http://einz6318:8085/browse/SAN-SON) : Unable to detect changes  
This error may have occurred due to an authentication issue with Stash. [Save the repository configuration](http://einz6318:8085/admin/configureGlobalRepositories.action?repositoryId=3506183) to refresh the authentication details.  
(30 Mar 2015, 6:16:25 AM)  
"  
Is there a way to ignore these errors?  
I understand the Stash backup makes the repository unavailable but it would be nice to have smarter way of ignoring these items.


Answers:
author: rsperafico
body: Hello Mark,

Thank you for your question.

Unfortunately the functionality you're requesting is not currently implemented in Bamboo. Due to that, I have created a new issue in our development issue tracker for this functionality to ensure our development team is aware of your request:

* <https://jira.atlassian.com/browse/BAM-15792>

I would suggest on adding any comments to the issue above as well as [voting](https://confluence.atlassian.com/display/JIRA/Watching+and+Voting+on+an+Issue) on the issue to create its popularity and likelihood of being implemented in a future release.

For more information on how Atlassian implements new features and improvements please see the following document:

* [Implementation of New Features Policy](http://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy)

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


author: Timothy
body: Cron based scheduling:

* <https://confluence.atlassian.com/display/BAMBOO/Cron-based+scheduling>

Don't run builds during the backup I guess.

comments: author: Mike Friedrich
body: Thats not really the answer. You would have to exclude too many features of Bamboo.


Tags: bamboo-administration
Client not found on perforce server while linking perforce repository
Asked by GN:


Answers:
author: rsperafico
body: Hello,

Thank you for your update.

Instead of setting Perforce Visual Client (**p4v** ) as capability in Bamboo, could you please set up **p4** instead:

Screen Shot 2015-03-30 at 11.21.39 AM.png

Please, refer to [Using Perforce with Bamboo - limitations and workarounds](https://confluence.atlassian.com/display/BAMBOO/Using+Perforce+with+Bamboo+-+limitations+and+workarounds) documentation for further information.

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  
[](https://community.atlassian.com/t5/Bamboo-questions/Client-not-found-on-perforce-server-while-linking-perforce/qaq-p/218716?attachment-id=5188){#link_1168e2cf2d7f0a}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/6975/1/Screen%20Shot%202015-03-30%20at%2011.21.39%20AM.png){#display_1168e2cf2d7f0a_0}


author: rsperafico
body: Hello,

Could you provide more information, please?

* screenshot repository configuration in Bamboo
* screenshot Perforce capability under "*Bamboo administration \>\> Build resources \>\> Server capabilities*"
* are you able to connect to Perforce by opening a "*Command Prompt / Terminal*" in the same box where Bamboo is running?

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support

comments: author: GN
body: Thank you Rafael, I am afraid I cannot share screenshots at this point in time.

Yes I am able to connect to perforce, I have perforce visual client installed and I am able to connect to perforce server.

In the server capabilities,Perforce executable points to the visual client executable p4v.

Port points to perforce_server:port_num

Workspace points to the actual workspace name say "drv-lin-ex"

Depot view points to All the mappings that are part of Workspace but something like `//clientName/depot/Prj/...` .

Also, if there are multiple mappings like this one above, how can use that in Depot View

Thanks Again for your help. Any doc with an example would be really helpful.


Tags: bamboo-administration
Bamboo Authentication Captcha
Asked by Philippe Aubin:

Is there a way to disable the captcha on failed auth in Bamboo ?

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


Answers:
author: rsperafico
body: Hello Philippe,

Thank you for your question.

Please, go to "*Bamboo administration \>\> Security \>\> Security settings* " and hit "*Edit*" button.

Please, uncheck the option "*Enable captcha on signup* " and hit "*Save*" button.

Please, refer to [Using Captcha for failed logins](https://confluence.atlassian.com/display/BAMBOO/Using+Captcha+for+failed+logins) documentation for further information.

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
Bamboo separate repositories for server / client interfaces
Asked by Emeric LEBON:

We're currently developing a server/client application. The server is a maven Java EE project. The client interfaces are in HTML5. We use Stateless REST interfaces to communicate with each other. As there are two subteams in our project team, we decided it was a good thing to separate the server and client interfaces in two git repositories (web dev team doesn't need the server for developing/testing interfaces, and vice versa).

However, when it comes to packaging, we need to integrate the web interfaces into the server package. To do this, we use git subtrees to install the web interfaces in the server projet before launching `mvn package`. This is not a good thing since the code is duplicated in the server git repository, and we have to check manually for newer versions of the web interfaces.

We recently have felt the need for a CI server, and we went for **Bamboo**, as we already use Stash, Jira and Confluence in our company.

Is there a way to make Bamboo actually do the web interfaces integration before packaging so we don't have to use `git subtree`?


Answers:
author: Radek Antoniuk
body: I would define two repositories to check out from in Bamboo and then use packaging to bundle them together.

You can use any packaging tool you want, e.g. maven or gradle to do that.


author: Aakash Basnet
body: Bamboo is a CI server that is used to build and deploy with its resulted artifact. So for the packaging we need to configure a bamboo build plan, and for that we need a source repository to linked with the code and version control like git,svn or any other is necessary to collaborate with the stash. since stash is a git repository management system so it is better to use git as vcs.
Bamboo RSS Basic Auth
Asked by Todd Morrison:

Can someone detail how to access bamboo build RSS feeds from an external location for an auth protected instance?

We would like to consume the feed for custom notification and are not comfortable making builds public.


Answers:
author: Christopher Jones
body: I struggled with urllib and redirect to authentication page. With Python 3, urllib3, and feedparser i got something to work.

```
import feedparserimport urllib3# colon separated creds - replace USERNAME and PASSWORD with Bamboo account infoheaders = urllib3.make_headers('USERNAME:PASSWORD')?# replace bamboo with your bamboo server name or ipaddress and BUILDKEY with the build key of the project/build plan you want to get updates for.d = feedparser.parse('https://bamboo/rss/createAllBuildsRssFeed.action?feedType=rssAll&amp;buildKey=BUILDKEY', request_headers=headers)print(d.status)print(d.headers)print(d['entries'][0]['links'][0]['href'])# print(d) # print the whole feed
```


Tags: cloud
atlas-package no jar file
Asked by Yu Huang:

Hi, I am learning and using SDK to develop a plugin for bamboo.

When I atlas-package in my helloword project, it build successfully, but there is no jar file in the target directory.

I can export the jar file from the eclipse and it works, but I can never use atlas-package to create the jar. Why the atlas-package does not work? I need help, thanks.

\[INFO\] Scanning for projects... \[WARNING\] \[WARNING\] Some problems were encountered while building the effective model for helloworld:helloworld:pom:1.0.0 \[WARNING\] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-comp iler-plugin is missing. @ line 76, column 21 \[WARNING\] \[WARNING\] It is highly recommended to fix these problems because they threaten t he stability of your build. \[WARNING\] \[WARNING\] For this reason, future Maven versions might no longer support buildin g such malformed projects. \[WARNING\] \[INFO\] \[INFO\] Using the builder org.apache.maven.lifecycle.internal.builder.singlethrea ded.SingleThreadedBuilder with a thread count of 1 \[INFO\] \[INFO\] ------------------------------------------------------------------------ \[INFO\] Building helloworld 1.0.0 \[INFO\] ------------------------------------------------------------------------ \[INFO\] ------------------------------------------------------------------------ \[INFO\] BUILD SUCCESS \[INFO\] ------------------------------------------------------------------------ \[INFO\] Total time: 1.710 s \[INFO\] Finished at: 2015-03-25T10:20:05-07:00 \[INFO\] Final Memory: 10M/149M \[INFO\] ------------------------------------------------------------------------


Answers:
author: Daniel Wester
body: Can you post the pom.xml ? Does anything get created in the target folder? Which SDK version are you using?

comments: author: Yu Huang
body: Thanks, I have figured out that: in my pom.xml, if I keep the \<packaging\>atlassian-plugin\</packaging\> element as this package, it will create the jar. If I change the packaging to something else such as pom or war, it will not create the jar file. That is really strange. because "-" cannot be part of a package name.


author: Daniel Wester
body: packaging doesn't mean package name - it's how maven should 'package' it. atlassian-plugin adds a bunch of magic related to usage manifest generation which Maven won't normally do.


author: Yu Huang
body: Thanks, I have figured out that: in my pom.xml, if I keep the \<packaging\>atlassian-plugin\</packaging\> element as this package, it will create the jar. If I change the packaging to something else such as pom or war, it will not create the jar file. That is really strange. because "-" cannot be part of a package name.
Agent says 'No builds can be executed' but instance and image say otherwise, what am I doing wrong?
Asked by Derek Rosenzweig:

I am evaluating Bamboo as a CI/CD option for my company, and I've run into a couple little snags.

When I spin up an instance of an elastic image, such as 'Ubuntu stock image' or 'Amazon Linux stock image', the Elastic Agent that it runs always has "**No builds can be executed. The capabilities may not meet the requirements for any jobs or the agent may be dedicated to specific deployments.**" The actual elastic image, and the elastic instance itself do not have that message, in fact they correctly show that they can run my jobs, and the Agent Matrix correctly shows that they can run the jobs/plan that I had set up.

I have a secondary issue which I am not sure is related. I have my repository in BitBucket and I set it up to use the Bamboo hook so it can push changes to my Plan Branch, using my credentials. I also configured the Plan Source Repository settings to look at the proper repository, with all the proper credential values. However, when I push commits to a branch on BitBucket, it does not trigger the build plan for the branch. I can manually run the build and it does get the proper commit, and it even runs on the agent which says it can't run any jobs. I'm very confused here, and the online docs didn't really help.


Answers:
author: Derek Rosenzweig
body: I managed to get my BitBucket repo to successfully tell Bamboo to run the plan branch upon pushing new code to a feature branch. Steps I took:

1. Changed the value of the username field in the BitBucket Bamboo Hook Advanced Settings from an email address to actual username
2. Added the outbound trigger IPs addresses from <https://confluence.atlassian.com/display/BITBUCKET/What+are+the+Bitbucket+IP+addresses+I+should+use+to+configure+my+corporate+firewall> to the Plan configuration - honestly, this should be something Bamboo does behind the scenes automatically. If it can't even integrate with its own systems correctly...

Still no explanation for why the Elastic Agents say they can't run any jobs even though they do...


author: Derek Rosenzweig
body: he;lp


author: Derek Rosenzweig
body: could really use an answer to either of my questions...


Tags: bitbucket-cloud

cloud

link
Cannot add ssh key
Asked by nhlakagiftmzobe:

It says "Someone has already added that SSH key to another account."


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This happens when you try to use the same key for two different accounts. You should not be doing this, a key should belong to a single (user) account.

There's no easy way to find out which of your other accounts may have already uploaded the key, and hence no way to remove it.

The solution, assuming you don't want to use the older account, or can't find out where it is, is to generate a new key for the newer account and add that instead.
Is there a .NET 4.7.2 Pipeline Template?
Asked by Thengum George:

I am implementing the pipeline in bitbucket and my dot net framework is 4.7.2.

Does anyone know the correct .NET 4.7.2 image to use with bitbucket-pipelines.yml?

Thanks

George


Answers:
author: Theodora Boudale
body: Hi George,

With Pipelines that run in our infrastructure, it is possible to build .NET Core applications, but not .NET Framework.

However, we do provide runners for Windows which allow you to run builds in Pipelines on your own Windows infrastructure:

* <https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/>

You can build .NET Framework applications with runners and no Docker image is needed for the build, as it runs on your Windows machine.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
App password creation for Postman
Asked by aytekin bilici:

Hi everybody,

I would like to deploy my postman collections to Bitbucket. For this integration, Postman needs an app password which should be provided by Bitbucket. There is an article about it in Bitbucket support but this article doesn't comply with my Bitbucket on the cloud. So I can not find an option to create an app password for Postman.

Regards

aytekin


Answers:
author: Ben
body: G'day!

To authenticate your calls to Bitbucket API with Postman you need to provide your bitbucket username along with an App Password.  
You can find the bitbucket username of your account going to your account's personal settings (<https://bitbucket.org/account/settings/>), and looking for the field **Username** under Account Settings.

Then, you can use the Bitbucket username along with an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) (link explains App Password steps) as your credentials for authenticating the request to Bitbucket API.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

password
How many users per free account ?
Asked by rodrigoassismorais:

Good morning!  
I have a free account and I need include another collaborator.


Answers:
author: Theodora Boudale
body: Hi [@rodrigoassismorais](/t5/user/viewprofilepage/user-id/4935069) and welcome to the community!

If you are using Bitbucket Cloud, you can have up to 5 users (including yourself) in a workspace on the free plan.

You can see more details here about what the free plan includes:

<https://www.atlassian.com/software/bitbucket/pricing?tab=cloud-tab>

Kind regards,  
Theodora


author: Curtis
body: The free plan offers up to 5 users for the workspace.
Bitbucket Statistics (pull /merge/declined request) in database? where is data stored?
Asked by Archie Gaw:

Hi,

Is the information on the statistics for pull/merge request saved on some database for bitbucket? as I'm currently looking at trying to develop a report via tableau to show the statistics for out bitbucket. but currently have no Idea how to connect to bitbucket to get the information? is there a way to connect to Database?

where are the data stored for bitbucket? I've read about connecting external database,

but not sure if i understand correctly. if there is a external database connected, then the bitbucket data will be stored there and we can query against the tables?

tableau supports some normal database types, hoping bitbucket will have a database like that .

thanks,

Archie


Answers:
author: Uladzislava Kastsitsyna _Stiltsoft_
body: Hi,

One way to achieve this is by using [Awesome Graphs for Bitbucket](https://link.stiltsoft.com/qexhy0). Our app provides REST API that allows you to export detailed pull request information. You can learn more about it [here](https://docs.stiltsoft.com/awesome-graphs/data-center/export-and-integrations/rest-api/getting-commits-and-pull-requests-via-rest-api#GettingcommitsandpullrequestsviaRESTAPI-PullRequestsAPIs).

Below is an example of an output you can get using our REST API:

![](https://docs.stiltsoft.com/awesome-graphs/files/data-center/179143060/179143078/1/1716274962684/prs-w-cycle-time.png)

Let me know if you have any questions!

Best regards,  
Uladzislava


Tags: metric

server

statistic
Someone has already added that SSH key.
Asked by Bayu:

Hello Bitbucket

When i want to add ssh key in my personal settings, there is message "Someone has already added that SSH key." Could you help me to fix this thing.

Thank You


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This happens when you try to use the same key for two different accounts. You should not be doing this, a key should belong to a single account.

There's no easy way to find out which of your other accounts may have already uploaded the key, and hence no way to remove it.

The solution, assuming you don't want to use the older account, or can't find out where it is, is to generate a new key for the newer account and add that instead.


Tags: bitbucket-cloud

cloud