youngmon/atlassian-qna huggingface dataset:
Bamboo Automatic Branch Detection of a deleted branch
Asked by Todd Behunin:

I'm using Automatic Branch Detection of my plan and have several branches. I deleted a few branches (in Bamboo) because I didn't want to wait however many days of inactivity for them to automatically drop off. Well, now I have a need to start working back in those branches and have Bamboo to detect and rebuild them. However, that automatic detection isn't working on those deleted branches. It seems as if the Bamboo database had "soft deleted" the branches and is remembering NOT to auto detect them again. Is there a way around this?


Answers:
author: PiotrA
body: Hello Todd,

I don't think there exists simple workaround to make Bamboo picking up again deleted branches. Please take a look at the following issue: <https://jira.atlassian.com/browse/BAM-12161> - there is discussion why Bamboo is behaving this way. You can consider placing your vote on that issue, so we know that re-creating deleted branches is a highly needed feature in Bamboo.

On the other hand - why re-creating manually these branches in Bamboo is not an option for you? Is it because you have multiple plans that you would have to traverse and the amount of 'create branch' buttons you would need to hit is too high? Or is it some other reason?

regards,


Tags: branch
Bamboo agent on EC2 instance long start
Asked by Vasyl Boroviak:

We are using Bamboo OnDemand and EC2 agent. The EC2 instances are being started several times a day. But each start takes more that half an hour. See the logs.

```
Jun 5, 2013 1:50:15 AM Currently there are no agents that can build: AA-BBB-JOB1. New elastic instance(s) will be started (providing the configuration allows it).Jun 5, 2013 1:50:16 AM 1 elastic instance(s) will be started for those builds that cannot be build on currently connected agents.Jun 5, 2013 1:50:16 AM Requested that new elastic instance be created for configuration: Our_main_build_imageJun 5, 2013 1:50:17 AM Elastic instance [i-cedb7ba2] transitioned from STARTING to IDENTIFIED.Jun 5, 2013 1:50:57 AM Elastic instance [i-cedb7ba2] transitioned from IDENTIFIED to RUNNING.Jun 5, 2013 2:20:03 AM An elastic agent is loading on instance: [i-cedb7ba2]Jun 5, 2013 2:23:23 AM Elastic Agent "Elastic Agent on i-cedb7ba2" started on instance i-cedb7ba2
```

As you can see EC2 instance starts in 40 seconds.

Whereas time betweed "instance RUNNING" and "agent is loading" is **30 minutes**!

That is a waste of time and money.

What can be the cause of this 30 minutes lag? How to fix?


Answers:
author: Przemek Bruski
body: Sounds like this: <https://jira.atlassian.com/browse/BAM-12459>


author: Ephraim Moss
body: Any progress on this?


author: Przemek Bruski
body: You need your private key on your server to do that. I assume you regenerated it? Support will be able to put it back on the server.

You can also use regular AWS Console to get your password if you don't want to store your private key on the server.


author: Vasyl Boroviak
body: Pezemek, thank you. There is another issue with the agent log - I can't login to my EC2 instances any more. It does not generate password. I did nothing to the image though. Would have to resolve that first.


author: Przemek Bruski
body: You'd need to look at the agent log on the instance to find out why it takes so long.
Gradle support for Bamboo
Asked by Kieran Sheehan:

Hi,

Are there plans for Gradle support for Bamboo?


Answers:
author: Bob Swift (personal)
body: I have considered adding Gradle support to [Groovy Task for Bamboo](https://bobswift.atlassian.net/wiki/display/BGTP) similar to the Gant support. [Open an issue](https://bobswift.atlassian.net/browse/BGTP) and I will evaluate further. [BGTP-8](https://bobswift.atlassian.net/browse/BGTP-8) was opened and resolved. Comments welcome.

comments: author: Kieran Sheehan
body: Thanks to Bob's amazing reactivity, there is now support for Gradle in Bamboo. It is a plugin so currently unavailable for OnDemand, which is a pity.


author: shubham patni
body: @Bob Swift \[Bob Swift Atlassian Add-ons\] so we can not use Bamboo with Gradle as of now..is it?


author: Bob Swift (personal)
body: Yes you can for Bamboo server.


author: shubham patni
body: @Bob Swift \[Bob Swift Atlassian Add-ons\] what u mean by Bamboo server...I'm new here..please guide. Thanks.


author: Bob Swift (personal)
body: The add-on is currently only available for Bamboo Server (local install) and **not** Bamboo Cloud.


Tags: cloud
How to create a Maven branch with Bamboo
Asked by gcobr:

Hi,

I would like to know if Bamboo is going to adjust the SCM config inside my pom.xml file when I use it to create a branch for a Maven project.


Answers:
author: PiotrA
body: Hello Gabriel

No, Bamboo out-of-the-box doesn't adjust pom.xml SCM config when creating a Bamboo plan-branch.

However, might I ask what exactly config you would need to have adjusted? Maybe there exists some workaround for your particular use case...

regards
i am unable to receive recovery email
Asked by nawaz butt:

i am unable to receive password recovery emails. kindly help me.


Answers:
author: Caroline R
body: Hi, [@nawaz butt](/t5/user/viewprofilepage/user-id/4691595)!

Thank you for reaching out to Atlassian Community!

I would like to confirm if you were able to reset your password. In case you were not, could you please confirm if this issue occurred with the account linked to the email you used to post this question?

Looking forward to hearing from you.

Kind regards,   
Caroline


author: Zulfiqar Bin Zafar
body: Hello [@nawaz butt](/t5/user/viewprofilepage/user-id/4691595) ,

Please check that you are entering the correct email that you used at the time of registration.

Thanks \& Regards,

Zulfiqar Bin Zafar

comments: author: nawaz butt
body: yes i am entering the correct email adress.


author: Zulfiqar Bin Zafar
body: Please try the following steps:

1. Open an incognito window in your browser and navigate to <https://id.atlassian.com/login>
2. Try to login using your e-mail account and the password you normally use to access your e-mail.
3. If that does not work, ask your admins of your e-mail domain to check if the Atlassian Cloud domains and IP ranges are whitelisted in your E-mail server and Firewall:  
   [Atlassian cloud IP ranges and domains](https://confluence.atlassian.com/cloud/atlassian-cloud-ip-ranges-and-domains-744721662.html)
4. Then, click in the option **"can't login?"** at the <https://id.atlassian.com/login> to trigger the password reset again.
5. Check if the reset password notification is not flagged as SPAM in your mailbox


author: nawaz butt
body: thankyou
My cloned repository looks nothing like the repository on bitbucket
Asked by Ryan Wright:

Hi all,  
I am new to git, i set up sourcetree with bitbucket to manage my unity project. I have been commiting changes frequently as a just incase. I started about 6 weeks ago.  

Yesterday my dell laptop black screened for no reason (its 6 weeks old also).  

Luckily I have been using bitbucket and sourcetree to save my details. The project looks like this in bitbucket with an assets folder etc etc.

Any idea why or how i can get the information that is on bitbucket onto my PC?? rather than this clone that looks nothing like the repository?  

Thanks in advance. Sorry I am very new to all the GIT and just set it up as an emergency. I did not expect my brand new laptop to break.


Answers:
author: Vishwas
body: Hey [@Ryan Wright](/t5/user/viewprofilepage/user-id/4659635)

Welcome to Atlassian Community !!

Looks like you have done bare clone hence local folder structure has git files. Can you mention which command did you use while cloning the repository ?

Usually I do it from git bash vis git commands, the command I use is would look like this

```
git clone https://username@bitbucket.org/teamsinspace/documentation-tests.git
```

PFA

![Picture1.png](https://community.atlassian.com/t5/image/serverpage/image-id/175797iFC47341CA7519D40/image-size/large?v=v2&px=999 "Picture1.png")

![Picture2.png](https://community.atlassian.com/t5/image/serverpage/image-id/175798i06C1631439505FCC/image-size/large?v=v2&px=999 "Picture2.png")

And those pack files are like zip files of multiple objects, which git can extract when needed.

More about git object, packs in this article <https://alblue.bandlem.com/2011/09/git-tip-of-week-objects-and-packfiles.html>

Hope this information helps.

Regards,

Vishwas


author: Ryan Wright
body: For anyone else that may look at this, all i had to do was "check out" the repository locally and it did the job.  
This is probably a super basic thing but I am very new to GIT. At least the issue helped me to understand a bit more about it and I am super happy that I had made the bitbucket repository and commited often.

comments: author: Vishwas
body: yes, git checkout would the would update the current working directory from the remote branch.
Transfer OAuth consumer between accounts
Asked by BuckettestPrime:

Hi,  
My company have a production OAuth Consumer in a free Atlassian account- I want to move it to our paid account.  
How should I go about it?  
Thanks!


Answers:
author: Caroline R
body: Hi, [@BuckettestPrime](/t5/user/viewprofilepage/user-id/4691084)! Welcome to the community!

Currently, it's not possible to transfer OAuth consumers between workspaces, you would need to [create a new one](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/) under this paid workspace to use it there.

With that said, you can either create a [feature request](https://jira.atlassian.com/secure/Dashboard.jspa) for our development team to consider that or let me know if you want me to open it for you.

Kind regards,   
Caroline

comments: author: Jason Boileau {Appfire}
body: [@cara](/t5/user/viewprofilepage/user-id/3580791) is this still the case? Has a request been opened that we can follow?


author: Caroline R
body: Hi, Jason,

We have created a feature request to add the ability to transfer OAuth consumers between workspaces, you can access this feature through the following link:

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

I would suggest that you add your vote there (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features.

You are more than welcome to leave any feedback, and 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.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud

oauth
for how long I can visit a page referring to a merged PR?
Asked by Florin Cosmin Onciu:

I have made a bad PR that got merged some time ago, and I still have the link to that page. I am wondering if it will ever expire and if yes, when?  

Some context:

It has been a while since I merged the problematic PR and would like to give it another close look. the web ui helps me with my investigation, but I am worried I will loose the ability to navigate to each file after a while.

I hope my question makes sense.

Thanks in advance!


Answers:
author: Caroline R
body: Hi, [@Florin Cosmin Onciu](/t5/user/viewprofilepage/user-id/3088371)!

Thank you for reaching out to Atlassian Community!

You don't need to worry about that, the link won't expire, you will always be able to access this PR as long as the repository is not deleted.

Please don't hesitate to ask for any further information if needed.

Kind regards,   
Caroline

comments: author: Florin Cosmin Onciu
body: thanks for a quick response!


Tags: bitbucket-cloud

cloud
How do i get it operational
Asked by Aaren hill:

I cant geft the cloud to fuction right


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

We can't help you with that, you have given us nothing to work with. Could you explain what you are doing and why you're expecting it to do something differently to what you are getting?


Tags: bitbucket-cloud

cloud
Build status not appearing in pull request
Asked by Gopinath D:

Hi All,

I have been integrated Jenkin with Bitbucket for my application.

In Jenkin side, I have added the configuration in "Build with BitBucket Push and Pull Request Plugin" Triggers while create and update.

In Bitbucket Cloud, I have added a web hook for JenkinUrl/bitbucket-ppr-hook, for triggering.

It works fine and I use to get build status (green tick or red cross) in every pull request raised or updated with new changes.

Now, for no reason, this status stopped showing and I didn't do any configuration changes from my end.

Any licensing issue ? Need to be in any specific plans ?

Can you please help on identifying the issue and fix it.

Thanks,

Gopi


Answers:
author: Theodora Boudale
body: Hi Gopi,

I'd like to ask a few questions so we can better help you:

**1.** Does a build get triggered in Jenkins, when an event specified in the Triggers of this webhook occurs?  
I'm just trying to understand if the webhook does not get triggered at all, or if it does and it's just the status that is not showing.

**2.** If you open the **Commits** page of this repo on Bitbucket website, do you see a build status there for the commits of the PR's source branch (assuming that the builds get triggered)?

**3.** Do you see any statuses listed if you run the following API call for one of the affected PRs?

```
curl -u <Bitbucket_username>:<app-password> https://api.bitbucket.org/2.0/repositories/<workspace-id>/<repo-slug>/pullrequests/<pr-id>/statuses
```

where  
*\<Bitbucket_username\>* your Bitbucket username  
*\<app-password\>* either your Atlassian account's password or an app-password  
*\<workspace-id\>* the workspace id of the workspace that contains this repo  
*\<repo-slug\>* the repository's slug  
*\<pr-id\>* the id of the PR, which you can find in the URL of the PR when you open it on Bitbucket website

Kind regards,  
Theodora


Tags: bitbucket-cloud

build

cloud

jenkins

pull-request

status
how can i run a flask app using bitbucket pipelines by integrating it with deployment servers??
Asked by Aravind Kundurthi:

how can i run a flask app using bitbucket pipelines by integrating it with deployment servers??

please provide a demo flask app bitbucket-pipelines.yml file


Answers:
author: Oleksandr Kyrdan
body: Hi [@Aravind Kundurthi](/t5/user/viewprofilepage/user-id/4690655)

Thank you for your question!

As an example, you could follow this [answer](https://community.atlassian.com/t5/Bitbucket-questions/Deploy-to-AWS-with-Elastic-Beanstalk/qaq-p/1802364#M71925) that provides code structure for your bitbucket-pipelines.yaml and an app for the AWS.

Also, good example in the repository for the [heroku-deploy pipe.](https://bitbucket.org/bitbucketpipelines/example-heroku-deploy-python)

Where you deploy your app to the Heroku:

```
script:  - pipe: atlassian/heroku-deploy:1.2.1    variables:      HEROKU_API_KEY: $HEROKU_API_KEY      HEROKU_APP_NAME: 'My awesome shiny app'      ZIP_FILE: 'your-app-sources.tar.gz'
```

Best regards,  
Oleksandr Kyrdan

comments: author: Aravind Kundurthi
body: Thanks [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)


Tags: bitbucket-pipelines

flask

heroku

python
How can I create a pull request by making my own uri without using curl?
Asked by Aayush Jain:

Is there any way for me to specify something in the URL to default the title of the pull request? It seems that the title is now either the title of the commit (if there is only one commit) or the branch name (if there are multiple commits). I would like to default something within my control if possible.

Grateful for any answer


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

Yes, you can create a pull request with your own URI without curl. They are two different things. The URI is the point you need to connect to in order to ask Bitbucket to do something. Curl is just a program that can call a URI. You can call your URI with whatever program you want.

For contstructing the uri, and what data to send it (including "description") see <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post>
Are the azure pipes still supported or are they deprectaed
Asked by Michael Wirth:

I haven't seen any updates on these projects for a while. I wonder if the concept of these pipes is still supported or if they were deprecated.

It would be nice to update the version of the tools (azure-cli, kubectl, helm) from time to time.


Answers:
author: Igor Stoyanov
body: [@Michael Wirth](/t5/user/viewprofilepage/user-id/797941) hi.   
We released a new version of the [azure-aks-deploy:1.1.0 pipe](https://bitbucket.org/atlassian/azure-aks-deploy/src/1.1.0/), where we updated azure-cli image to version 2.39.0, kubectl to version v1.25.0 with kustomize v4.5.7.

Regards, Igor


author: Igor Stoyanov
body: [@Michael Wirth](/t5/user/viewprofilepage/user-id/797941) hi. Thanks for your question.

Currently our strategy is the next:  
we update pipes if users ask us to bump versions because something not work or not supported in old versions.

In example: [Update firebase deploy](https://community.atlassian.com/t5/Bitbucket-questions/Upgrade-firebase-tools-to-the-newer-version-in-firebase-deploy/qaq-p/1855243) .

If you need something to be updated point us here and describe the reason why you need it.

Regards, Igor.

comments: author: Michael Wirth
body: Thanks Igor,

Please update azure-cliand the kubectl in the [azure-aks-deploy](https://bitbucket.org/atlassian/azure-aks-deploy/src/master/) pipe.

I would like to use the kubectl 'kustomize' feature for my deployment.

Best Regards

Michael


author: Igor Stoyanov
body: [@Michael Wirth](/t5/user/viewprofilepage/user-id/797941) hi. We will notify you when new version of pipe becomes available.

Regards, Igor.


Tags: azure

bitbucket-pipelines

cloud

kubernetes
Bitbucket-pipelines run pytest with access to an RDS database
Asked by thierry_paret:

I need to run pytest from bitbucket-pipelines with connection to an RDS database.

As my RDS test database is not publicly open, how can I get my pipeline IP to allow it to access to RDS?


Answers:
author: Nic Brough -Adaptavist-
body: A pipeline could be running on any number of addresses, and they can change. You'll need to enable the range(s) documented at <https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/>

comments: author: thierry_paret
body: OK... thanks... not sure, I wanted to open all these adresses... Will try to find another solution.


author: Nic Brough -Adaptavist-
body: What do you mean by "another solution"?

You have a service that you have asked a Cloud system to connect to. The Cloud system could be running on any one of a range of IP addresses. So if you want it to connect to your service, then you are going to have to allow all of those IP addresses through your firewall.


author: thierry_paret
body: Oh yes sure... But I was thinking of doing some differents tests... may be installed the database inside a docker image for the tests


author: thierry_paret
body: I used IP addresses in Valid IP addresses for bitbucket pipelines build environment... but still unable to connect to RDS database? I need to recheck my database settings for the connection


Tags: bitbucket-pipelines

cloud
Updating multiple repositores simultaneously
Asked by Aleg:

Hi,

We have growing number of repositories and we sometimes need to update all of them with the same change - this wastes a lot of time. Is there a way to update multiple repositories simultaneously?

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Aleg](/t5/user/viewprofilepage/user-id/3875617),

Are all these repositories fork of a certain repository and do they share common history? If so, it is possible to configure multiple push urls in your local clone of one repo, make changes in that clone and then push to multiple remote repos. I can share steps on how to do that if that's the case, please feel free to let me know.

However, if these repositories don't have common history, then trying to push to multiple repos from the clone of a single repo will give you an error.  
There is a way to override this by merging these histories with the flag *--allow-unrelated-histories*, but this means that you would merge and eventually push to all repos the history of all others, and I wouldn't recommend that.

Kind regards,  
Theodora

comments: author: Aleg
body: Hi Theodora,

Im not talking about a single repository to multiple repositories push or forks.

For example, if I have 10 completely different repositories, each repository represents a different service from different dev team. I decided that I want to add a script / install node package (using npm) / edit file common to all repositories / etc\`... to all of the 10 repositories.

Options I have are:

Clone, create a new branch, do the changes, push, PR \* #X repositors

Obviously it does not scale and before we try to solve it in-house, I wanted to see how others are handling it or if atlassian got any solution because I have not found any from atlassian.


author: Theodora Boudale
body: Hi [@Aleg](/t5/user/viewprofilepage/user-id/3875617),

Thanks for providing more info and explaining your use case.

The only way I can think of to automate this would be by scripting it, so create a script that:

* clones a number of repos (that you specify)
* then for each clone:
  * create a new branch
  * add a new file to the branch (or replace an existing file)
  * push changes to the remote
  * create a PR using our API:  
    <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post>
  * possibly delete these clones after the process is completed

Every time you want to make such a change, you could change the repositories that this would run for, and also the change that would be applied to these repos.

I found that there is a tool (not developed by Atlassian) that works with that logic:

* <https://github.com/lindell/multi-gitter>

But I'm afraid that it doesn't support Bitbucket Cloud yet. There is an open request to add support for Bitbucket Cloud:

* <https://github.com/lindell/multi-gitter/issues/99>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

repository

update