youngmon/atlassian-qna huggingface dataset:
Move Bitbucket Cloud Premium Annual Plan from credit card payment to invoicing?
Asked by Catherine Bruni:

Is it possible to move Bitbucket Cloud Premium Annual Plan from credit card payment to invoicing? The customer removed their credit card information in anticipation of moving to invoicing however no update has been made. Is this even possible?


Answers:
author: Theodora Boudale
body: Hi Catherine,

The Bitbucket Cloud Premium Annual Plan has more payment options including invoicing.

Has the primary billing/technical contact for this Bitbucket workspace not received any email yet?  
If they haven't, or if you don't know who the primary billing/technical contact is for this workspace, I would advise that an administrator of this workspace creates a ticket with our billing and licensing team.

They can create a ticket via this link: <https://support.atlassian.com/contact/#/>  
In "What can we help you with?" select "Billing, payments and pricing" and then "Problems with a payment or credit card"

Please ask them to provide the URL of the Bitbucket workspace in the details of the ticket, explain the issue, and that they want to move from a credit card payment to invoicing, so we can check the status of the license in our system and advise on options and next steps.

Kind regards,  
Theodora


Tags: billing

bitbucket-cloud

cloud

cost

premium
bitbucket datacenter connecting to jenkins
Asked by Kiril Dubrovsky:

i've deployed bitbucket datacenter using the AWS quickstart into private networks with a public load balancer so jira can integrate.

This is the link to details on the quickstart architecture: <https://aws.amazon.com/quickstart/architecture/bitbucket/>

And I have a jenkins instance with a private load balancer. The bitbucket VPC an subnets can reach the Jenkins load balancer using peered networking and security groups are open.

<br />

However, bitbucket can't reach the load balancer when I create app link to jenkins:

Application 'Jenkins-primary' seems to be offline. [Click here to Relocate.](https://git.gradientai.systems/plugins/servlet/applinks/listApplicationLinks#)

I'm trying to use these instructions to connect bitbucket and jenkins.

<https://plugins.jenkins.io/atlassian-bitbucket-server-integration/>

Is there a better way to connect these two applications over private networking? Do I need to redeploy bitbucket?


Answers:
author: Kiril Dubrovsky
body: If you're using the instructions listed here, when you add the application link URL's, add /login to the jenkins hostname.

The app link requires a 200 response from the jenkins server, and if you go to the default page of a jenkins instance, it throws a 403.

My app link is working now after making that change.


Tags: bitbucket-server

server
How build a NET 6.0 pipeline
Asked by Lucas Technology Services:

I'm trying build a NET 6.0 pipeline but I'm having errors


Answers:
author: Patrik S
body: Hello [@Lucas Technology Services](/t5/user/viewprofilepage/user-id/4990759) ,

Welcome to Atlassian Community!

In order for us to assist you, could you please share the bitbucket-pipelines.yml file of your build and also the logs where you are seeing these errors?

Also, I just wanted to note that when using pipeline infrastructure to run your build it's not currently possible to build native Windows applications such as applications built on top of NET Framework, which is a framework only compatible with Windows.

It's only possible to build .Net **Core** applications in bitbucket pipelines infrastructure, as .Net Core is cross-platform.

In case your builds need to use windows native frameworks/applications, you have the option to use [bitbucket windows runners](https://support.atlassian.com/bitbucket-cloud/docs/set-up-runners-for-windows/), where the build/script will run in your own infrastructure on a machine that runs with Windows OS.

Thank you, [@Lucas Technology Services](/t5/user/viewprofilepage/user-id/4990759) .

Kind regards,

Patrik S

comments: author: Lucas Technology Services
body: My print is:

![BitBucket_error1.png](https://community.atlassian.com/t5/image/serverpage/image-id/207511i884A9B916F887446/image-size/large?v=v2&px=999 "BitBucket_error1.png")![BitBucket_error2.png](https://community.atlassian.com/t5/image/serverpage/image-id/207512i7E39BE716FBB6D40/image-size/large?v=v2&px=999 "BitBucket_error2.png")![error_pipeline.png](https://community.atlassian.com/t5/image/serverpage/image-id/207513i50D1F96B892B3020/image-size/large?v=v2&px=999 "error_pipeline.png")


author: darc_lab
body: .NET 6.0 is .NET Core last LTS version and it runs on linux.


Tags: atl-gruland

bitbucket-cloud

cloud
Will enable the Pipeline creates extra subscription cost?
Asked by David Wong:

I would like enable the pipeline in one of our repository, will this action creates extra cost in my month subscription?


Answers:
author: Patrik S
body: Hello [@David Wong](/t5/user/viewprofilepage/user-id/4062419) ,

Thank you for reaching out to Atlassian Community.

Enabling pipelines in your repository will not create extra costs for your subscription, and each type of plan (Free, Standard or Premium) comes with a different amount of build minutes that you can use in your pipeline, which are outlined in the following documentation :

<https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Plan-details>

You can check the used and remaining build minutes of a workspace by going to *Workspace Settings \> Plan details*.

You will only be extra charged in case you are in the Standard or Premium plan and your**[use go over the build minutes included in your plan](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/#Going-over-your-build-minutes-limit)** , where we'll automatically add more minutes for the current month ($10 per 1,000 additional build minutes per billing cycle). When your next billing cycle begins your build minute usage will reset, and you won't be billed the additional charge (unless you go over again).

Hope that helps to clarify your questions!

Thank you, [@David Wong](/t5/user/viewprofilepage/user-id/4062419) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Link Bitbucket Cloud to JIRA Server
Asked by Tierney White:

I am trying to link Jira server 8.5.2 to Bitbucket cloud.

I have followed all instructions, creating the OAuth consumer in Bitbucket and then using the key and secret to link from Jira using a DVCS account but I get the following error:

Invalid OAuth credentials. Check Jira log for more information.

The key and secret are correct but it does not connect.

Is it possible the version or Jira is too old (8.5.2)?

Which Jira log should I be checking for further information?


Answers:
author: Ben
body: Hey Tierney,

Firstly, please try the following steps to recreate the connection and try again:

* Tick the **Private Consumer** checkbox in Bitbucket.
* Recreate the OAuth token in Bitbucket Cloud.
* Re-enter the OAuth credentials in the Jira application.

If this does not work - can you make sure you have **whitelisted Bitbucket Cloud IPs** to make sure the connection is not being dropped before reaching Bitbucket?   
<https://confluence.atlassian.com/bitbucket/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall-343343385.html>

Can you also check your network firewall to see if any connection is being dropped from Jira when Jira makes the API call to Bitbucket for Incoming / Outgoing?

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Tierney White
body: Thanks [@Ben](/t5/user/viewprofilepage/user-id/17418)

Setting private consumer solved the problem.


Tags: bitbucket-cloud

cloud
Example use of RefsCommandParameters with ScmService
Asked by John Lawlor:

I am modifying a plugin for Bitbucket which has broken due to changes in Bitbucket 8.x.

I am trying to find a sample usage of this class:

<https://docs.atlassian.com/bitbucket-server/javadoc/8.0.0/api/com/atlassian/bitbucket/scm/RefsCommandParameters.html>

I can't figure it out from the javadoc

Thanks in advance!


Answers:
author: John Lawlor
body: This worked for me:

```
RefCallback refCallback = new RefCallback() {
    @Override
    public boolean onRef(@Nonnull Ref ref) throws IOException {
        refs.add(ref);
        return true;
    }
};
scmService.getCommandFactory(repository).refs(new RefsCommandParameters.Builder().build(), refCallback).call();
```


Tags: bitbucket-server

server
Cannot push using git on linux
Asked by Gleb Kartashov:

Steps I've taken:

Follow this guide exactly <https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/>

This is my test connection message:

```
ssh -T git@bitbucket.org
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```

This is message I get when I try to push my files into my repo

```
root@jirau-virtual-machine:/var/atlassian/application-data/jira/scripts# git push bitbucket2
root@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

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

This repo does exist in my Bitbucket Cloud and was created by me

My remote settings:

```
root@jirau-virtual-machine:/var/atlassian/application-data/jira/scripts# git remote -v
bitbucket2 ssh://bitbucket.org/inforcekz_jira/scripts/src/master/ (fetch)
bitbucket2 ssh://bitbucket.org/inforcekz_jira/scripts/src/master/ (push)
```

SSH settings under Personal settings in Bitbucket:

![image.png](/t5/image/serverpage/image-id/206914i9435B919963EA71E/image-size/large?v=v2&px=999 "image.png")

SSH port is open on my VM as I can only connect to it via SSH


Answers:
author: Piotr Karze?ek
body: I've got the same issue, but I found better solution, I just changed remote from git@bitbucket.org into user@bitbucket.org


author: Ben
body: Hey Gleb,

Welcome to the Bitbucket Cloud Community!

A common issue I see is that the SSH will authenticate, but it will not use the correct key and therefore will fail to grant access.  
Please try to update your remote URL as follows to specify the username to authenticate with in GIT, provided your \~/.ssh/config file has been mapped correctly this should authenticate without issues:

```
git remote set-url origin username@bitbucket.org:workspaceID/reposlug.git
```

If this does not work, try to edit your config file directly to, again, specify the username that you would be using to authenticate with - replacing "username" in the text below:
> #username account  
> Host bitbucket.org-username  
> HostName bitbucket.org  
> User git  
> IdentityFile \~/.ssh/privatekeyname  
IdentitiesOnly yes  
Hope this helps.  
Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

git
Unable to login Bitbucket - We couldn?t log you in
Asked by Sumate Khaonuna:

Hi,  
I am getting following error when login to bit bucket account.

"You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again."

Thanks,  
Sumate


Answers:
author: Theodora Boudale
body: Hi [@Sumate Khaonuna](/t5/user/viewprofilepage/user-id/4990282),

Your Bitbucket Cloud account was indeed inactive, so I went ahead and reactivated it.

Please feel free to let me know if you are able to log in now.

Kind regards,  
Theodora


author: Craig Castle-Mead
body: Hi [@Sumate Khaonuna](/t5/user/viewprofilepage/user-id/4990282)

Have you tried logging in using another browser and/or incognito/private browser mode?

If you can login using incognito, I'd recommend disabling all your browser extensions, then enabling 1 by 1 and trying each time until your login stops functioning and then you've found the conflicting plugin.

<br />

CCM

comments: author: Sumate Khaonuna
body: I've already tried in Edge and incognito mode of Chrome still no luck. I also deleted all cookies and site data related to bitbucket/atlassian/jira.

I think i used to have bitbucket long time ago. may be it was suspended/deactived due to inactive for long time.


Tags: bitbucket-cloud

cloud
heroku-deploy
Asked by malik_rumi:

This is my first time trying to use pipelines, docker, and yaml. I copied the starter script from the repo and put it into pycharm, along with the script portion. However, pycham immediately complained:

*remove prohibited property 'step' and 'script'*

which is here:

```
push: &push
  step:
    name: Push and Tag
    image: python:3.7
  script:
- pipe: atlassian/heroku-deploy:2.0.0
```

That seemed like a pretty major disagreement to my untrained eyes, so I came here for an explanation.


Answers:
author: Patrik S
body: Hello [@malik_rumi](/t5/user/viewprofilepage/user-id/908139) ,

Thank you for reaching out to Atlassian Community!

I'm not very familiar with Pycharm, but since this is an external IDE, it might be not correctly configured to process the yml file or it expects a different syntax than Bitbucket. I would suggest you take a look at the pycharm's official documentation of [how to configure it to interpret YML files](https://www.jetbrains.com/help/pycharm/code-style-yaml.html).

If that does not work either, my recommendation is to use the official's Bitbucket Cloud online validator: <https://bitbucket-pipelines.prod.public.atl-paas.net/validator>

You can paste your YML code into this validator and it will point out any formatting issue or syntax error. As long as your YML file passes the checks of the online validator, you should be good at using it as the definition of your pipeline.

Thank you, [@malik_rumi](/t5/user/viewprofilepage/user-id/908139) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

heroku
Unable to locate package atlassian-plugin-sdk
Asked by Jonathan Griffin:

I am following the instructions as posted [here](https://developer.atlassian.com/server/framework/atlassian-sdk/install-the-atlassian-sdk-on-a-linux-or-mac-system/) but cannot install the SDK. I keep getting **Unable to locate package atlassian-plugin-sdk** error. I realize there is another [similar question](https://community.atlassian.com/t5/Jira-questions/Unable-to-install-atlassian-plugin-sdk-on-ubuntu/qaq-p/136668) but that answer did not help either.

Any help would be greatly appreciated.


Answers:
author: dorialan
body: If you're trying to do that in a Docker container on M1, you gonna need to override the platform, e.g. \`--platform amd64\`


Tags: bitbucket-server

server
Is it possible to fail the step from where a remote pipeline is called through trigger-pipeline ?
Asked by jmgarciadelmoral:

Hello,

I am using atlassian/trigger-pipeline:5.0.0 without any issue. It triggers the pipeline and it waits for the remote pipeline to finish. All that works perfectly.

However, It is mandatory for my use case that the pipeline/step from where I am calling the other pipeline, follows the status of the remote pipeline.

Currently, if the remote pipeline fails, atlassian/trigger-pipeline ony shows a red message, but the step is marked as success. What I need, is that if the pipeline that is being called fails for any reason, the step from which I am calling it, also fails.

Is there any strategy or workaround to accomplish this?

Thanks

Juan


Answers:
author: Theodora Boudale
body: Hi Juan,

I assume that you are using the variable **WAIT: 'true'** in the definition of the pipe?

If set to true, the pipe will wait for the triggered pipeline to complete. If the triggered pipeline fails, the pipe should also fail and the step with the pipe should fail as well.

I am unable to reproduce the behavior you are describing using the same version of atlassian/trigger-pipeline pipe.

I would suggest creating a support ticket for this issue so we can further investigate. The support ticket will be visible only to you and Atlassian staff, so you can share the URL of a build that uses this pipe and we can look into this.

I see that you are an admin of a workspace on a paid billing plan that uses Pipelines. If the issue concerns a repo of that workspace, you can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

trigger
Bitbucket Server upgrade path from version 4.14.4 to 8.2
Asked by Bibin Varghese:

Hi,

Currently we are using Bitbucket server 4.14.4. Can we upgrade directly from 4.14.4 to version 8.2 or do we need to upgrade to an intermediate version first?


Answers:
author: Mahesh Shinde
body: Hi [@Bibin Varghese](/t5/user/viewprofilepage/user-id/2929010) :

You can't upgrade bitbucket directly as there are major customizations done in each major upgrade.

You can choose step by step upgrade path like 4.14 -\> 5.x -\> 6.x -\> 7.x -\> 8.2.

Please, check release notes for each version: <https://confluence.atlassian.com/bitbucketserver/bitbucket-server-upgrade-guide-776640551.html>

Also make sure to check supported platforms like git, database version for each version.

Link: <https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html>

Regards,

Mahesh Shinde


Tags: bitbucket-server

server
Max number of self hosted runner: can I configure 200 repository with 1 runner each?
Asked by Droghini Diego:

What is the absolute maximum total number of self-hosted runners that can be created?  
The page <https://support.atlassian.com/bitbucket-cloud/docs/runners/> says

* **Total number of runners** : You can configure up to **100 runners per workspace and 100 runners per repository**

But it is not clear if the number "100" is to intend relative or absoulte.

**For example can I configure 200 repository with 1 runner each?**


Answers:
author: Ben
body: G'day Droghini!

Welcome to the Bitbucket Cloud Community! :)

The documentation states that you can configure up to 100 runners per workspace, this means a maximum of 100 runners at a time spread across the repositories on your workspace.

If you were to say have 100 runners on a single repository within a workspace, you would hit the limit as that repository belongs to a workspace.

Hope this makes sense.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-runners

cloud
How to block pull requests merge for a specific branch using Bitbucket Cloud / Bitbucket Server?
Asked by Vivek Gupta:

Hi,

I want to block pull requests merge for a specific branch when SonarQube Quality Gate fails.

Please let me know if this feature is available in Bitbucket Cloud / Bitbucket Server.

Thanks in advance.


Answers:
author: Mahesh Shinde
body: Hi [@Vivek Gupta](/t5/user/viewprofilepage/user-id/4443383) :

You can use There is one SonarQube community article which can help you here.

Please, go through it: <https://community.sonarsource.com/t/how-to-block-your-pr-merge-in-sonarqube-with-bitbucket-server/18559>

Regards,

Mahesh Shinde


Tags: bitbucket-cloud

bitbucket-server
New SSL Certificate Not Loading in Bitbucket Server
Asked by Engineering Services:

We have uploaded the new SSL Certificate for Bitbucket in the linux server and when we try to start the bitbucket server we are getting below error  
We use bitbucket.properties that only refer the pfx file(new file)  
PFB - Error  
Description:

The Tomcat connector configured to listen on port 443 failed to start. The port may already be in use or the connector may be misconfigured.

Action:

Verify the connector's configuration, identify and stop any process that's listening on port 443, or configure this application to listen on another port.

2022-07-18 10:42:11,490 INFO \[main\] c.a.b.i.boot.log.BuildInfoLogger Bitbucket 5.12.0 has shut down

Whenever we tried to install the new certificate. the java process is not listening on 443 and getting the log as port utilized by some other service. we have also checked the 443 has not been used for any service


Answers:
author: Mahesh Shinde
body: Hi [@Engineering Services](/t5/user/viewprofilepage/user-id/1242017) :

As per the error, its not related to certificate issue. Please, find the process which is using port 443, It looks like there is a different application using that port (usually nginx or apache)

Check this site: <https://confluence.atlassian.com/bitbucketserver/securing-bitbucket-server-with-tomcat-using-ssl-776640127.html>

Please, use below commands:

sudo lsof -i -P -n \| grep LISTEN  
sudo netstat -tulpn

By the way i would recommend using an apache or nginx reverse proxy configuration: <https://confluence.atlassian.com/bitbucketserver/proxying-and-securing-bitbucket-server-776640099.html>

Regards,

Mahesh Shinde

comments: author: Engineering Services
body: Mahesh, thanks for your suggestion.

When we checked from our end we could see whenever we install the certificate and starting the bitbucket service. It is started with different port number and it is not listening on port 443. We have also verified that 443 is not been used by any services.

Regards,

Ram


author: Engineering Services
body: Team the issue got fixed after creating a new PFX file and updated in the server.


author: Mahesh Shinde
body: Glad to hear, that issue got fix.


author: Engineering Services
body: Thanks Mahesh


Tags: bitbucket-server

server
Cant push code to my repository
Asked by Ammar Saleem:

My bitbucket repository 4GB limit has been reached and I cant push changes or delete any file.I have accidentally uploaded libs and build files to my repository.Is there any option to increase size limit or a way to delete unnecessary files from repository.


Answers:
author: Ammar Saleem
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) yes as the limit is exceeded I can no longer make any change to repository to reduce size.I tried deleting a file![Screenshot 2022-07-19 at 12.37.56 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/206677i76FE7AB598977B4D/image-size/large?v=v2&px=999 "Screenshot 2022-07-19 at 12.37.56 PM.png") but Im getting this error.


author: Fabio Racobaldo _Herzum_
body: Hi [@Ammar Saleem](/t5/user/viewprofilepage/user-id/4989510) ,

welcome to the Atlassian community!

Limit is 4 GB and, as explained here <https://support.atlassian.com/bitbucket-cloud/docs/reduce-repository-size/> , you can try to reduce your repo size.

Hope this helps,

Fabio

comments: author: Ammar Saleem
body: thanks


author: Fabio Racobaldo _Herzum_
body: you're welcome


Tags: bitbucket-cloud

cloud