youngmon/atlassian-qna huggingface dataset:
How do I specify a build that does not count towards successful builds?
Asked by Valery:

I have a CodeFresh pipeline that runs very slow tests.

I want it to be triggered on each commit, but I don't want Bitbucket to count it towards successful builds.

How do I do that?


Answers:
author: seanaty
body: At the moment I don't think what you're asking for is possible.

I think that if merge restrictions were more specific then you could do this. Here is the public issue requesting that: <https://jira.atlassian.com/browse/BCLOUD-21205>

e.g. let's say you want to ran builds A, B and C but only A and B are required to pass. Today you can only specify that 2 builds are passing, but it would be better if you could say I want builds A and B to be required.


author: Sean Conaty
body: .


Tags: bitbucket-cloud

build

cloud

merge
Trying to get insights from data in Bitbucket, Jira and Confluence
Asked by maksimaniskov:

Hello, Given commit histories in Bitbucket, task hierarchy and history in Jira, quite a lot of system and software design documents in Confluence, I want to link source code fragments to the documents.

When I do it by hand, I review file history, then follow links to Jira tasks, then look through all cross references there and hyperlinks in task definition mentioning docs in Confluence. It's quite time consuming and cannot be scaled easily, you know.

I wonder if there is any out-of-the box support for this sort of analyzes, or any 3rd party software available? I appreciate you giving me any pointers or hints!


Answers:
author: Fabian Lim
body: Hi [@maksimaniskov](/t5/user/viewprofilepage/user-id/4653927)

You may want to contact blended perspectives for an honest opinion: <https://www.blendedperspectives.com/mars/>

Regards


Tags: bitbucket-server

confluence

jira
Pipelines maven project with custom dependencies
Asked by Francesco Lombardoni:

Good evening. I would like to set up a pipeline to deploy a maven project A that has a dependency on another project B. Project A and project B are committed in two different repositories, both in my bitbucket account. How can I do?

Thanks


Answers:
author: Norbert C
body: Hi Francesco,

Thank you for contacting Atlassian Community. I'm Norbert from Bitbucket Cloud Support, it's nice to meet you! Welcome to the Atlassian Community!

Based on my observation you would like to deploy a maven project and you have two repositories, but Project A has a dependency from Project B.

What I would like to recommend you is to clone the Project B repository in Project A's Pipelines. You can do this by following the steps mentioned in this documentation: <https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines>

Please let me know if this is the functionality what you were looking for, Francesco. We're here to help :).

Best Regards,

Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Francesco Lombardoni
body: Thanks!!!


author: Norbert C
body: You're welcome Francesco, we're always happy to help ;)

Have a great weekend ahead!

Best Regards,

Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Problem when clicking on Jira issue in Bitbucket
Asked by Aviad:

When I connect Bitbucket to Jira Issues, and I click on an issue, it says that I don't have access to the issue, but I am the admin, so I should have the access:![Screenshot 2021-11-29 173727.png](/t5/image/serverpage/image-id/171296i551EAE42ECAF5FBA/image-size/large?v=v2&px=999 "Screenshot 2021-11-29 173727.png") {#toc-hId--1209502384}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


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

May I ask the browser you're using? Could you please try to open it using Chrome, for example, and click the Jira issue link to see if you are able to open it?

Just to let you know, currently, [we support the latest versions](https://support.atlassian.com/bitbucket-cloud/docs/which-browsers-does-bitbucket-support/) of [Chrome](https://www.google.com/chrome/), [Firefox](http://www.mozilla.org/firefox/), [Safari](http://www.apple.com/safari/), and [Microsoft Edge](https://www.microsoft.com/en-us/windows/microsoft-edge). If you are experiencing this issue in one of these browsers, could you check your browser's version and update to the latest stable version, if necessary?

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Aviad
body: I tried now in Edge, and it worked.

In Brave browser (based on Chromium), it is not working.

I hope you will add support to it,

Thanks


author: Caroline R
body: Hi, [@Aviad](/t5/user/viewprofilepage/user-id/4653566),

Thanks for getting back to us and confirming it worked in Edge.

About adding Brave to our supported browsers, we already have a feature request for that:

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

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
Not receiving bitbucket workspace invite on my email
Asked by Wadic Engineer:

Workspace invite emails are not coming on my email \<email_removed\>

Maybe my email got blocked by JIRA server. Who can unblock my email???


Answers:
author: Theodora Boudale
body: Hi [@Wadic Engineer](/t5/user/viewprofilepage/user-id/4502960),

I checked in our system and I saw a hard bounce event for your email with the message
> 550: 550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces

It looks that we attempted to send an email to your email address at a time when it was not operational. The hard bounce informs us that the email does not exist and in this case, it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed the email from the suppression list, could you please ask one of your admins to resend the invitation now?

A new invitation needs to be sent, as the previous ones were dropped.

Please feel free to let me know if things are ok now and if you need anything further!

Just a heads up, I removed the email from your post to protect your privacy.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Docker-compose run django test
Asked by Jonas Gabriel da Costa Martins:

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

I have a problem, where I try to run django tests with docker-compose, but every time the tests lock, like the image above.

bitbucket-pipelines.yml

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

docker-compose-pipeline.yml

![pipeline3.png](/t5/image/serverpage/image-id/171275i60998502F8BAA43E/image-size/large?v=v2&px=999 "pipeline3.png")![pipeline4.png](/t5/image/serverpage/image-id/171276i31775D5A498CC5B4/image-size/large?v=v2&px=999 "pipeline4.png")


Answers:
author: Norbert C
body: Hi Jonas,

Thank you for contacting Atlassian Community! I'm Norbert from Bitbucket Cloud Support, it's nice to meet you! Also, welcome to the Atlassian Community :)

Can you verify what's the issue you experience, please? When I reviewed the pictures, I haven't found any error message mentioned.

Also would it be possible for you to run it locally with the same setup as in Pipelines? You can run a build locally by following the steps mentioned in this documentation: [Debug Pipelines locally with Docker - Atlassian Documentation](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/)  

Please let us know how it goes, we're here to help :)

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-pipelines

cloud

django

docker

jira-software

jira-software-cloud

postgres

redis
Usage of pipe.yml
Asked by Shivas Fotedar:

I want to reduce repetition of variables being passed to a pipe

I am using pipe for email notification and want to set up the default values of username,password,from,to, host,port etc variables in pipe.yml so that i can just mention the pipe name and mention the variables whose values change in the bitbucket-pipelines.yml

Is it possible to do this?

I tried to do this got a validation error for the required fields username, password etc


Answers:
author: Igor Stoyanov
body: [@Shivas Fotedar](/t5/user/viewprofilepage/user-id/4653163) hi. We released a [new version of the email-notify pipe](https://bitbucket.org/atlassian/email-notify/src/0.8.0/), which supports now default parameters of USERNAME, PASSWORD, FROM, TO, HOST.  

Regards, Igor


author: Igor Stoyanov
body: [@Shivas Fotedar](/t5/user/viewprofilepage/user-id/4653163) hi. Thanks for your question.  
Currently this is not possible.

We investigate your suggestion and notify you.

Regards, Igor


Tags: bitbucket-pipelines
Bitbucket Pipeline - Wget Timeout
Asked by Jacopo Orlandini:

Hi, community

WGET (Apache resources) {#toc-hId--1209507282}
----------------------------------------------

In a bitbucket pipeline, I have defined some simple bash for getting Apache Ant resources and I frequently got a connection timeout. The following snippet is the result of Wget when it timeouts:

*** ** * ** ***

--2021-11-29 11:46:30-- <https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz>  

Resolving [archive.apache.org](http://archive.apache.org/) ([archive.apache.org](http://archive.apache.org/))... 138.201.131.134, 2a01:4f8:172:2ec5::2  

Connecting to [archive.apache.org](http://archive.apache.org/) ([archive.apache.org](http://archive.apache.org/))|138.201.131.134|:443... failed: Connection timed out.  

Connecting to [archive.apache.org](http://archive.apache.org/) ([archive.apache.org](http://archive.apache.org/))|2a01:4f8:172:2ec5::2|:443... failed: Network is unreachable.

*** ** * ** ***

I provide the single step to simulate the error (used image:amazoncorretto:11)

```
 if [[ ! -d /opt/apache-ant-1.10.8 || ! -f /opt/apache-ant-1.10.8/bin/ant ]]; then 

   echo "Ant directory not exists!"

   wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz

   tar -xzf apache-ant-1.10.8-bin.tar.gz -C /opt

 fi
```

Temporary solution: I restart the pipeline until a Wget success.  
Note: On my localhost, I never experienced this type of error for reaching Apache. Is docker introducing a TLS problem or other issues? Is there a way to fix this connectivity problem?


Answers:
author: Mark C
body: Hi [@Jacopo Orlandini](/t5/user/viewprofilepage/user-id/4141380)

Thank you for reaching out to the community.

I did try to run the **wget** command below in my test Pipelines.  
However, I'm able to download the file without issue.  
My YAML file configuration looks like below:

```
image: amazoncorretto:11pipelines:  default:    - step:        name: Test        script:          - yum install wget -y          - wget https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.8-bin.tar.gz
```

Would it be possible for you to confirm if you're still experiencing the same issue?

Regards,  
Mark C

comments: author: Jacopo Orlandini
body: At this stage, this problem does not occur anymore and I ran multiple pipelines in the meanwhile. Thank you for your investigation.   

<br />


Tags: bitbucket-cloud

cloud
License issue
Asked by Burak Dinler:

Hi,

When I try to install bitbucket server with my license key it returns an error in below.

"Your license is not valid for this version of Bitbucket."

Please kindly help me to install my product.


Answers:
author: Christian Glockner
body: Hi Burak,

Licenses for Atlassian products are only valid for versions that were released at the time the license expired. If your license expired and a new version is released after that date, the license will not be valid for that version.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Fetching attachments in pullrequests
Asked by Bala:

I would like to fetch pullrequest attachments .

Please guide me with api that will help for both \& cloud \& server version.

I went through documentation - there is no information on how to get/read/download pullrequest attachments

Thanks

Bala


Answers:
author: Theodora Boudale
body: Hi Bala,

I'm not very familiar with Bitbucket Server API, so I'll leave that part for someone else to answer.

In Bitbucket Cloud, I'm afraid that it is not possible to get pull request attachments via API at the moment. I would suggest adding your vote in the following feature request (using the **Vote for this issue** link) and adding yourself as a watcher if you'd like to get notified via email on updates (using the **Start watching this issue** link):

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

server
unable to access Repository
Asked by ppavan:

I'm unable to access the Repository in Bitbucket.![bitbucket.PNG](/t5/image/serverpage/image-id/171206i62359D3F233E7C4B/image-size/large?v=v2&px=999 "bitbucket.PNG")


Answers:
author: Suvradip Paul
body: Hi [@ppavan](/t5/user/viewprofilepage/user-id/4652974) ,

Thanks for posting and welcome to the community.

In Bitbucket, repos are owned by workspace. Each workspace has it's own billing plan and users are managed at workspace level.

Please check this documentation for reference -

<https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/>  
<https://support.atlassian.com/bitbucket-cloud/docs/organize-workspace-members-into-groups/>.

Please let me know if that helps.


Tags: bitbucket-cloud

cloud
Best practice to use pipeline to achieve daily build of arm-based embedded Linux application
Asked by Qian-Hao Huang:

Hi,

Currently my team uses Bitbucket to host our source code of an embedded Linux application project.

Now I want to introduce daily-build feature to our project to replace current manually build procedure.

For our project, we already use docker to keep the build environment identical across different machines. Whenever we build a new version of binaries, we switch to the docker container, which has the toolchain and dependencies we need, and run the build script.

However, I saw the Bitbucket pipeline use docker as well, which makes it not possible to use our docker image again -- we cannot run docker inside docker.

Any suggestions?

Thanks.


Answers:
author: Mark C
body: Hi [@Qian-Hao Huang](/t5/user/viewprofilepage/user-id/4652730)

Welcome to the community.

To use your custom Docker environment, you can actually use [Bitbucket Pipelines Runners](https://support.atlassian.com/bitbucket-cloud/docs/runners/).  
Pipelines runners allow you to run your scripts/commands on your own self-hosted environment.  
You can also check the [Pipelines Runners FAQ](https://support.atlassian.com/bitbucket-cloud/docs/pipelines-runners-frequently-asked-questions/) page for more information.

Hope it helps and let me know if you have further questions.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
API to git pull origin master
Asked by Asipu Pawankumar:

Hi,

Is there any API to git pull


Answers:
author: Caroline R
body: Hi, [@Asipu Pawankumar](/t5/user/viewprofilepage/user-id/4647843)!

Thank you for reaching out to Atlassian Community!

Unfortunately, this is not possible to do via API, you would need to do this with a Git command.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
bitbucket runner status is unregistered, run the access token in vm facing 443 error,the connection
Asked by Rajkumar:

![](https://getsupport.atlassian.com/servicedesk/customershim/secure/attachment/6777555/6777555_MicrosoftTeams-image.png?fromIssue=4611278)


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

The output shows a time out error when trying to connect to <https://api.atlassian.com>

Is the server where you are trying to use runners accessible from the internet? If your server is behind a firewall, you may need to whitelist our IP addresses, you can check the documentation below, the question **"What IP address do I need to whitelist to get Runner to work?"**

* <https://support.atlassian.com/bitbucket-cloud/docs/pipelines-runners-frequently-asked-questions/>

If you're still having issues, could you please provide the output of the following command on the server where you are trying to set up runners?

```
curl --verbose -LI https://api.atlassian.com
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Facing Null pointer while accessing the resource folders in Bitbucket pipeline
Asked by kapil.suri:

Hi All,

I am new to bitbucket pipeline and wanting to run my Selenium functional automated test using the bitbucket infrastructure.

I have a Java based project with Maven as the build management tool. I have tried executing the maven command to run the code on the linux instance but apparently getting Null pointer exception for a resource file as below

java.io.FileNotFoundException: /opt/atlassian/pipelines/agent/build/src/test/resources/testdata/Contact/CreateContact.json (No such file or directory)  
at java.io.FileInputStream.open0(Native Method)  
at [java.io.FileInputStream.open](http://java.io.fileinputstream.open/)([FileInputStream.java:195](http://fileinputstream.java:195/))  
at java.io.FileInputStream.<init>([FileInputStream.java:138](http://fileinputstream.java:138/))

I have tried logging in the directory files and but it shows that my files are not cloned in the instance created.

This is the yml file I have created.  
image: jamesdbloom/docker-java8-maven

clone:  
depth: full

pipelines:  
default:  
- parallel:  
- step:  
name: Build and Test  
caches:  
- maven  
script:  
- docker run -d -p 4444:4444 --shm-size=2g selenium/standalone-chrome:3.141.59-20210607  
- mvn -B verify -Dcucumber.filter.tags="$TAGS" -Dbrowser.type=$BROWSER -DEnvironment=$ENVT -DrunOnRemote=$ON_REMOTE -Dwebdriver.remote.url=$WD_URL  
services:  
- docker  
artifacts:  
- target/\*\*.  
Attached is the project sturcutre for your reference.  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/171175iCDC3AE2B28817184/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Honey Bhatnagar
body: The folder name is Case sensitive, "testdata" folder name should be testData.   

Refer this - <https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/Maven-build-runs-local-but-fails-in-pipeline-with-resource-not/qaq-p/804172>

comments: author: kapil.suri
body: Thanks for the response [@Honey Bhatnagar](/t5/user/viewprofilepage/user-id/4654976)

This seems to have fixed the issue I am facing.
RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad re
Asked by JbLeclercq:

Hello,

I'm getting this error when trying to comitt some changes from my project:

RPC failed; curl 56 OpenSSL SSL_read: error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac, errno 0

From what I understand this could be related to a changelist that is too big?

I tried:

- using git config https.postBuffer 52428000 command

- reverting my CL to a previous state that I had been able to submit in the past and make smaller changes

- creating (out of desperation) a new repository and tryin gto push to that

None of it worked. Am I understanding this wrong? I'm using sourcetree to submit my stuff.


Answers:
author: JbLeclercq
body: Nevermind. I migrated to GitHub and their desktop client, there's a lot of documentation and the client's errors messages are not cryptic, as opposed to sourcetree.

It was still complicated to fix but I managed to retrieve a working pipeline. You can consider this thread "solved".


author: JbLeclercq
body: Hello,

anyone from support for this?


Tags: bitbucket-cloud

cloud

sourcetree
Need git GC on remote repository
Asked by sunny386:

I ran BFG over my repo, push all the files I've cloned with '--mirror', but the size of the repo is still the same in the bitbucket account.

I believe git GC needs to be run, repository name is "\<repo_name _removed\>" and size is showing 1.8 GB.

Thank you.


Answers:
author: Theodora Boudale
body: Hi [@sunny386](/t5/user/viewprofilepage/user-id/2581407)

I can see in our system that your Bitbucket Cloud account with the same email as your community account has access to several workspaces and repos.

I could find one repo with the name you mentioned (from the ones you have access to), and its size is now well below 1.8 GB.

Could you please confirm if things are ok now and if you need any further help?

Kind regards,  
Theodora

comments: author: sunny386
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

The things are okay now.

Thank you.


author: Theodora Boudale
body: Thank you for the confirmation [@sunny386](/t5/user/viewprofilepage/user-id/2581407), please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud

garbage-collection
You are using Git 1.8.3.1. The minimum supported version is 2.11.0. Upgrade to Git 2.11.0+ and resta
Asked by B?nh DSnake:

I install Bitbucket new version and git version 2.34.1. Bitbucket not receive GIT and request update GIT. Please help me.

\[root@vps3 \~\]# git --version  
git version 2.34.1  
\[root@vps3 \~\]#

You are using Git 1.8.3.1. The minimum supported version is 2.11.0. Upgrade to Git 2.11.0+ and resta


Answers:
author: B?nh DSnake
body: Can anyone help me with this problem? I still can't handle it


author: Nic Brough -Adaptavist-
body: Is that the version of git you have on the server or the client?

comments: author: B?nh DSnake
body: git on the server 'CENTOS 7 64'. i install git and atlbitbucket same server. this commandline and result

\[root@vps3 \~\]# free  
total used free shared buff/cache available  
Mem: 3871148 2370356 772272 26156 728520 1259448  
Swap: 4194300 4096 4190204  
\[root@vps3 \~\]# git --version  
git version 2.33.1  
\[root@vps3 \~\]# service atlbitbucket status  
Redirecting to /bin/systemctl status atlbitbucket.service  
? atlbitbucket.service - LSB: Start Bitbucket daemon at boot time  
Loaded: loaded (/etc/rc.d/init.d/atlbitbucket; bad; vendor preset: disabled)  
Active: active (exited) since Fri 2021-11-26 15:42:30 EST; 23h ago  
Docs: man:systemd-sysv-generator(8)  
Process: 1184 ExecStart=/etc/rc.d/init.d/atlbitbucket start (code=exited, stat us=0/SUCCESS)

I tried uninstalling bitbucket to reinstall it. but uninstall failed. link: <https://confluence.atlassian.com/bitbucketserverkb/how-to-uninstall-bitbucket-server-828789036.html>

\[root@vps3 atlbitbucket\]# install_linux_service.sh -u remove_service atlbitbucket  
-bash: install_linux_service.sh: command not found  
\[root@vps3 atlbitbucket\]#


Tags: bitbucket-server

server