youngmon/atlassian-qna huggingface dataset:
Bitbucket invoice are not generated automatically
Asked by nexware_technologies:

Bitbucket invoice are not generated automatically. Also they have freezed the access for the developer for not paying the invoice, Without invoice generation from Atlassian we cannot pay it right?


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

If you have a monthly subscription, payment is made automatically every month via the credit card you have added in the workspace's **Settings \> Plan details** on Bitbucket website.

If the payment has failed, you can do either of the following:

* Contact the bank or provider of the credit card to figure out why the payment failed and if it's possible to resolve the issue.  
  After the issue is resolved, you can upgrade the workspace's billing plan from workspace's **Settings \> Plan details**.
* Alternatively, if you have another credit card available, you can update the credit card details from workspace's **Settings \> Plan details** .  
  Afterwards, upgrade the workspace's billing plan from the same page (workspace's **Settings \> Plan details**).

For billing-related issues, I would suggest reaching out to our team responsible for billing and licensing. You can do this via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Billing, payments and pricing", in "Select a topic" select "Problems with a payment or credit card".

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


author: Brant Schroeder
body: [@nexware_technologies](/t5/user/viewprofilepage/user-id/3109223)

Invoices can be found at [https://my.atlassian.com/product](https://community.atlassian.com/t5/Bitbucket-questions/where-can-I-donwload-bitbucket-invoices/qaq-p/the%20orphan%20area%20i%20on%20the%20first%20floor). Note that if you're on the free plan you won't have any invoices, as you're getting the service for free. You also need to be the owner of the product to see the invoices and they are created automatically each month. Are you on the free plan?


Tags: bitbucket-cloud

cloud
Pushing docker images to self hosted r
Asked by Mart? Bastida Comas:

Hi, I have spun up a docker registry on docker.domain.com.

From any machine I can login to the registry via:

```
docker login -u username -p password docker.domain.com
```

And from the browser if I browse to <https://docker.domain.com/v2> I get the typical Basic Auth pop up to enter credentials. After logging in I get the typicial blank {} response.

Now, I have a pipeline (the docker template from bitbucket) that contains (I know this is not safe, I was just trying to get to the error):  

```
- docker login -u username -p password docker.domain.com
```

Which is the same line as before. But this time when I run the pipeline I get:
> Error response from daemon: Get <https://docker.domain.com/v2/>: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)


Answers:
author: Caroline R
body: Hi, [@Mart? Bastida Comas](/t5/user/viewprofilepage/user-id/4658327), thank you for reaching out to Atlassian Community.

As you confirmed it works locally and by the error message you received, what could be happening is that your private docker registry could be behind a firewall and not allowing the pipeline to connect. If that's the case, you would need to ensure that these IPs are whitelisted:

* <https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/>

Please let me know how it goes and feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Mart? Bastida Comas
body: Thanks [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

I will give it a try and come back.

But I doubt it's the problem. The registry is hosted in a VPS and I have not configured a firewall. But I will check with the VPS provider just in case.


author: Pramodh M
body: Hi [@Mart? Bastida Comas](/t5/user/viewprofilepage/user-id/4658327)

If you are using custom docker registry, try with v1 as described here

<https://docs.docker.com/engine/reference/commandline/login/>

If you have solved the issue, feel free to post it here

Thanks,

Pramodh

comments: author: Mart? Bastida Comas
body: Hi [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) and thanks for the reply.

From what I have read on the post you are suggesting that I need to install a credential store helper on the pipeline?

Because the documentation mentions a /v1 path. But it is part of the example on how to configure a credential store.


author: Mart? Bastida Comas
body: Excuse me [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) for my insisting but I don't really understand how the link you sent me can help with the problem I'm struggling.

The links seems to work around the idea of using an external Credential Store to increase security. How can this help me?

Moreover, from any machine other than the bitbucket pipelines the docker login command works...

Thanks


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

image
Integrating LDAP to Bitbucket cloud
Asked by angelaaa:

Hey,

Is there somewhere a guide on how to connect bitbucket cloud to AD?

On the server, it's made with user directories but on the cloud user directory seems to be different.

I saw this flow: Can be done: LDAP \<-\> Okta/ADFS \<-\> Atlassian Access \<-\> Bitbucket

We use Okta for verification but I don't quite understand how to connect it

and is it a must to use Atlassian Access?

Thanks.


Answers:
author: Vishwas
body: Hey [@angelaaa](/t5/user/viewprofilepage/user-id/4634181)

That's correct we can't get directly LDAP to integrate Atlassian Cloud Applications. So authentication and authorization mechanism will happen involving an SSO Solution.

We have to use Atlassian Access for connecting SAML SSO Idp to Atlassian Access

To connect OKTA with Atlassian Access did you check this doc

<https://support.atlassian.com/provisioning-users/docs/configure-user-provisioning-with-okta/>

Please check this thread too it may be helpful <https://community.atlassian.com/t5/Bitbucket-questions/Can-you-connect-bitbucket-cloud-to-active-directory/qaq-p/1420485>

Regards,

Vishwas


author: Nitin_miniOrange
body: Hi [@angelaaa](/t5/user/viewprofilepage/user-id/4634181),

The Atlassian Cloud application does not support integration with AD directly.

However, you can connect Okta to AD and use Atlassian Access to sync the user and group information in Bitbucket cloud via SSO.

Please refer to the below links to integrate AD with Okta.

1. [Get started with LDAP integration](https://help.okta.com/en/prod/Content/Topics/Directory/ldap-agent-get-started.htm).
2. [Integrate Okta with LDAP AD](https://www.youtube.com/watch?v=Rl7eBd1bxlg&ab_channel=OktaCDEV).

Thanks \& Regards,

Nitin


Tags: bitbucket-cloud

cloud

ldap
Pipeline failing without error message
Asked by Sander de Kroon:

Our pipeline keeps on failing without giving a reason why.

![Schermafbeelding 2022-01-20 om 15.15.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/178834iCF5C4B4468208E7A/image-size/large?v=v2&px=999 "Schermafbeelding 2022-01-20 om 15.15.20.png")

It certainly has something to do with our custom Docker image, but I cannot figure out what exactly. Whenever I try another public image, the pipeline runs just fine. But if I use our own, it fails on the build step.

**The Docker image:** <https://hub.docker.com/r/sudwestfryslan/default-pipeline>

**bitbucket-pipelines.yml**

```
image:
name: sudwestfryslan/default-pipeline
username: $DOCKER_HUB_USERNAME
password: $DOCKER_HUB_PASSWORD
email: $DOCKER_HUB_EMAIL
pipelines:
default:
- step:
script:
- php --version
- npm --version
```

**What I have tried** **:**

* Changing to another public image -\> Works! Unfortunately, that's not a solution as I want to use a custom image.
* Include the tag in the image name (e.g. :latest or :php74) -\> makes no difference
* Include the complete URL to the docker registry -\> makes no difference
* Include/exclude docker credentials -\> makes no difference

Right now I'm kind of stuck, as I do not know what error is occurring.


Answers:
author: Oleksandr Kyrdan
body: Hi [@Sander de Kroon](/t5/user/viewprofilepage/user-id/4717799)

Thank you for your question!

Have you tried to move custom docker image usage to the step and add service: - docker parameter?

```
image:
  name: atlassian/default-image:3

pipelines:
  default:
  - step:
      image: sudwestfryslan/default-pipeline
      script:
        - php --version
        - npm --version
      service:
        - docker
```

Also, try to test your custom docker image locally with command and make sure that it works correctly:

```
docker run -it sudwestfryslan/default-pipeline
```

Best regards,  
Oleksandr Kyrdan

comments: author: Sander de Kroon
body: I have tested the image locally and it works :). But it did turn out that my local machine was the 'problem' so to speak.

I'm on a mac with a M1 processor. This, by default, produces ARM images. And apparently these do not work on the Pipelines.

For anyone encountering the same issue, I've written a short blogpost about it here [https://sanderdekroon.xyz/blog/bitbucket-pipelines-docker-and-the-apple-m1-chip/](https://sanderdekroon.xyz/blog/bitbucket-pipelines-docker-and-the-apple-m1-chip/%20)


author: Oleksandr Kyrdan
body: [@Sander de Kroon](/t5/user/viewprofilepage/user-id/4717799) Thank you for sharing your solution and contributing to the community.


author: Vytautas Stankus
body: this saved my day :D thanks


author: Advitum
body: I spent way to long debugging this problem, until I found this thread.

Sanders Blog is gone, but for anyone having the same problem, the blog post can be restored here: <http://web.archive.org/web/20230926025303/https://sanderdekroon.xyz/blog/bitbucket-pipelines-docker-and-the-apple-m1-chip/>


author: Sander de Kroon
body: I've restored the blog post :)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker
Required builds plugin does not recognize successful Jenkins build
Asked by patrick brus:

I've set up this new plugin to only allow merges to the master in case a certain Jenkins job has successfully built. Before that, I used the "minimum number of successful builds" which worked totally fine. But the problem with the new plugin is, that the successful build is not recognized even if it runs green.

Is there anything else one has to consider when adding the name of the Jenkins job which shall be successful before allowing the merge? I have added the name of the multibranch pipeline job directly, because it's located in the Jenkins root folder and not in any subfolder.

In the pull request under last builds I can also see that the status of this build is green, but the merge check still says that this job first has to be executed successfully for the latest build.


Answers:
author: Konrad Dlugosz
body: Hi Patrick,

I have encountered the same issue that you were having. Did you manage to find solution for this ?


Tags: bitbucket-server

server
I typed git push -u origin master and got an error saying rejected. How do I fix it?
Asked by Veronica Chiaravalli:

Hi,

I typed git remote add origin.... (and my https to the repository)

Then I typed git push -u origin master

I got an error saying rejected. I attach the snapshot.

How can I fix this?

Thank you.

Best regards,

Veronica![new-error-cannot-push-to-my-repo.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/178831i5306342A430EE741/image-size/large?v=v2&px=999 "new-error-cannot-push-to-my-repo.jpg")


Answers:
author: Vishwas
body: Hey [@Veronica Chiaravalli](/t5/user/viewprofilepage/user-id/4717776)

Welcome to Atlassian Community !!

From the error i could see that the remote changes are way forward(means there are already changes pushed to remote and your local is outdated). To fix this you can take a *git fetch*from remote and then push the code.

Regards,

Vishwas

comments: author: Veronica Chiaravalli
body: Hi Vishwas,

Thank you.

How do I do that? I am a beginner.

Regards,

Veronica


author: Vishwas
body: Hey

Not a problem, I will guide you.

My guess you are doing commands to do git operations ?

just run this command:

*git fetch*

and then

*git push -u origin master*

Let me know in case of any issues.

Regards,

Vishwas


author: Veronica Chiaravalli
body: Hi,

I did it and I still got an error.

After the git fetch it gave some info.

Then I did the git push -u origin master and got this:

![last-error-message-after-git-fetch-and-git-push.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/178869i427BA4993928621D/image-size/large?v=v2&px=999 "last-error-message-after-git-fetch-and-git-push.jpg")


author: Veronica Chiaravalli
body: Hi,

I am still stuck and unable to push the files to my repo.

The only difference is that the error message changed.

Could you please help me?

Thank you very much.

Kind regards,

Veronica Chiaravalli


author: Vishwas
body: Hey,

I guess this is not allowing with just a fetch command we have to run git pull and then run git push.

As mentioned in this article [https://stackoverflow.com/questions/57664991/bitbucket-error-failed-to-push-some-refs#:\~:text=This%20is%20usually%20caused%20by,push%20%2D%2Dhelp'%20for%20details](https://stackoverflow.com/questions/57664991/bitbucket-error-failed-to-push-some-refs#:~:text=This%20is%20usually%20caused%20by,push%20%2D%2Dhelp'%20for%20details).

You may have to run this command:

    git pull origin master --allow-unrelated-histories

Please check this out, let me know any issues.

Regards,

Vishwas
two-step verification and JetBrains PyCharm problem
Asked by volkovdmt:

Please help me solve the authorization problem:  
I have 2-factor verification enabled  
When cloning a repository, I used to enter my login - password.  
And from now it asks me to enter the app password  
I created an app password in the bitbucket settings  
When I from the command line (Ubuntu / Debian) use "git clone \<myrepo\>"  
and then enter login - app password. Everything is works fine  
But here is problem: In JetBrains PyCharm CVS -\> git -\> manage remotes  
I entering login-password: it asks for APP password  
I enter the login -app password (exactly correct) - writes that the password is entered incorrectly.


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

Since the app password is working when you clone from command line, there doesn't seem to be an issue with app-password permissions (when it comes to cloning).

However, I am unsure what operations are performed in JetBrains PyCharm CVS -\> git -\> manage remotes when you enter the app password. It is possible that the operations performed need more permissions than the ones you have given to the app password or there is some different issue.

For testing purposes, I would suggest creating an app password with all permissions enabled and see if that works for you.

I would also suggest reaching out to JetBrains support to ask what are the minimum permissions required for the app password to work in that context and if there is another issue that may be causing this error.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jetbrains

python
Create docker service for runner
Asked by nioanto:

Hi to all,

I have an instance of bitbucket cloud , it is possible to create a docker service or docker stack (or compose) for pipeline runner to run on my EC2/Compute Engine/Linode?

even using code like this on my linux :

```
docker container run -dit \
-v /tmp:/tmp \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/containers:/var/lib/docker/containers:ro \
-e ACCOUNT_UUID={SOME_UUID} \
-e REPOSITORY_UUID={SOME_UUID} \
-e RUNNER_UUID={SOME_UUID} \
-e RUNTIME_PREREQUISITES_ENABLED=true \
-e OAUTH_CLIENT_ID={SOME_CLIENT_ID} \
-e OAUTH_CLIENT_SECRET={SOME_CLIENT_secret} \
-e WORKING_DIRECTORY=/tmp \
--name runner-tempsensors \
docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
```


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

If you want to use a Docker service in your pipelines runner builds, you can configure it in the bitbucket-pipelines.yml file of your repo.

You can see an example in the following documentation (see section "**Custom docker-in-docker image**"):

* <https://support.atlassian.com/bitbucket-cloud/docs/configure-your-runner-in-bitbucket-pipelines-yml/>

Is this something that works for you?

In case you have a different requirement, could you please share some more details on what your requirement is and what you are trying to achieve?

Kind regards,  
Theodora


Tags: agent

aws

bitbucket-cloud

bitbucket-runners

cloud

devops

docker

linux

service
Bitbucket Scriptrunner Require that a pull request is associated with a valid Jira issue
Asked by anovinnikova:

Hello guys,

I'm trying to prevent pr from merging in release branch if Jira issue fix version is not the same as branch name using Require that a pull request is associated with a valid Jira issue built-in script

![Screenshot 2022-01-20 133439.png](/t5/image/serverpage/image-id/178787iAD622158D07F6253/image-size/large?v=v2&px=999 "Screenshot 2022-01-20 133439.png")

![Screenshot 2022-01-20 133449.png](/t5/image/serverpage/image-id/178788i961C745B1B66C541/image-size/large?v=v2&px=999 "Screenshot 2022-01-20 133449.png")

However,

fixVersion = '${mergeRequest.pullRequest.toRef.displayId}'

is not working for me, as in Jira issue the names of versions are "2.03", "2.49", and so on and I'm having an error that Edit the PR title (or add commits) to reference an issue from (fixVersion = 'release/5.1'):

![Screenshot 2022-01-20 133623.png](/t5/image/serverpage/image-id/178789iBEF2F7919144D6B9/image-size/large?v=v2&px=999 "Screenshot 2022-01-20 133623.png")

This error pops out if in Jira issue fixVer we have "5.1" instead of "release/5.1"

However, we can't rename release versions in Jira, so the only way is to write a validator when fixVer in Jira Issue equals target branch name after release prefix and have this merge check only if target branch is a release branch

So the validation JQL for me should be something like this:

release/JiraIssueFixVer = '${mergeRequest.pullRequest.toRef.displayId}'

(I've tried fixVersion = '${mergeRequest.pullRequest.toRef.displayId}'.split("/")\[1\] and that didn't work , and I've also tried substring by index instead of splitting, that didn't work either)

+ condition that target branch is release branch (run merge check if only merging to release branch, don't run merge check if merging to other branches)

Is there any way to get this working? I haven't written any custom merge checks before and can't understand how it can be achieved.


Answers:
author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@anovinnikova](/t5/user/viewprofilepage/user-id/4335018)

I think your JQL is failing because you need to swap single quotes with double quotes

I believe this script would match a branch named 'release/5.1' with a jira fixVersion = '5.1'
> fixVersion in ("${mergeRequest.pullRequest.toRef.displayId.split('/')\[1\]}")

Hope this helps, please let us know if this works for you!

Regards

Yannis

comments: author: anovinnikova
body: Hi!

Thanks for your response and sorry for the late answer.

I've checked the JQL, it works perfect!

Thank you very much for your help.


Tags: bitbucket-server

merge

scriptrunner

server
Fraud report
Asked by LoiLD:

I tracked down this repository is fraud:  
<https://bitbucket.org/cryptosniper/snipingbot/src/master/>  

that came from this video link:  
<https://www.youtube.com/watch?v=_vM6HDannzo>

please check! and be careful!


Answers:
author: artiko00
body: hi here are another repo with cripto scams!  

<https://bitbucket.org/planv1/v1/src/main/>  

take care!

comments: author: Andy Heinzer
body: Thanks for reporting it [@artiko00](/t5/user/viewprofilepage/user-id/5589306)

That repo has been taken down.


author: Andy Heinzer
body: Thanks for flagging this, I have requested that our Bitbucket and abuse teams investigate this repo in more detail.

Andy


author: Nic Brough -Adaptavist-
body: I've added it to Atlassian's "need to check (and kill) malicious site" list.


Tags: atl-rvw

bitbucket-cloud

cloud
Why did I stopped receiving from bitbucket emails?
Asked by MentorW:

Hi, I had a problem with Gmail a few days ago and after fixing it I stopped receiving emails from bitbucket. I tried changing the settings but it didn't help.

I already had this problem a few months ago and then managed to get the notifications back, maybe it's the same problem. Then it added me to some list through which I didn't receive emails.


Answers:
author: Caroline R
body: Hi, [@MentorW](/t5/user/viewprofilepage/user-id/4714484), welcome to the community!

I checked our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. So I removed your email from this suppression list.

Could you please confirm if you receive the notifications now?

Kind regards,   
Caroline

comments: author: MentorW
body: Thanks very much :D


Tags: bitbucket-cloud

cloud

email
abort: error: _ssl.c:507: EOF occurred in violation of protocol
Asked by H G:

Hi!

I'm getting this all the time when trying to pull or push to mercurial repository. Re-installed SourceTree, but that didn't help. Upgraded OS X to Yosemite, but that didn't help either. Anybody know what the problem is?


Answers:
author: Zolt?n Leh?czky
body: Getting this as well randomly with certain repos but from Mercurial.


author: Seth
body: Do you get the error when pushing or pulling from the terminal?
SourceTree 1.6.1 taking over 2GB Memory Windows
Asked by Serhiy:

When i launch SourceTree and open repo, gui gets freeze and it occupies more and more of ram.


Answers:
author: albertofb1
body: I had exactly the same problem, Sourcetree 1.6 took until 3gb of memory loading file's list. I could solve this issue installing the 1.5 version. Here, you can download it:

<http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.5.2.exe>


author: Serhiy
body: i fix it by this way:1. Uninstall SourceTree and msysgit2. Relaunch pc3. Install SourceTree with embeded git client4. Thats all


author: Jonid Bendo
body: Same thing happens on my Windows 8.1 and i haven't found a solution yet :(