youngmon/atlassian-qna huggingface dataset:
Problem connecting with ssh
Asked by pierre_weiss:

Dear administrators,

I cannot connect one of my computers to my bitbucket git repositories. When I type :  

    ssh -T git@bitbucket.org

I just get no information:

authenticated via ssh key.

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

Any idea on how to solve this issue?

Best regards,

Pierre


Answers:
author: Shailesh Gehlot
body: same issue


Tags: bitbucket-cloud

cloud
Can Zephyr integrate with Bamboo?
Asked by Brendan Flynn:

Looking at Zephyr for test case management. Was wondering if it additionally can integrate with Bamboo.


Answers:
author: Rados?aw Cichocki
body: Hi Brendan,

TestFLO integrates with Bamboo very easily.

You will first need to install [TestFLO Core](https://marketplace.atlassian.com/plugins/com.intenso.jira.plugins.suiTest/server/overview) which extends JIRA with test management functionalities and then install [TestFLO Automation](https://marketplace.atlassian.com/plugins/com.intenso.jira.plugins.testflo-automation/server/overview) that will allow you to integrate with Bamboo and Jenkins.

With these 2 plugins you will be able to run your automatic tests contained in a test plan with a single click and see their results directly in JIRA, without ever having to check your logs or the Bamboo server. By the way, it also works with Jenkins.

Here is the [documentation for TestFLO Core](https://intenso.atlassian.net/wiki/display/FLO) and here is the [documentation for TestFLO Automation](https://intenso.atlassian.net/wiki/display/FLO/TestFLO%20-%20Automation).

I encourage you to give it a try and [contact us](https://intenso.atlassian.net/servicedesk/customer/portal/4) if you have any questions.

Regards,  
Rados?aw Cichocki  
Atlassian Expert at InTENSO


author: Krystian Brazulewicz
body: Brendan

As Felipe mentioned we do not currently have integration with Zephyr. However in the spirit of "Be The Change You Seek" we encourage you to try and develop a bamboo-zephyr-plugin.


author: Felipe Kraemer
body: Hi Brendan,

At this time, the functionality you're requesting is not yet possible in Bamboo. I have created a new request for it in our development issue tracker, and you can track it here:

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

Feel free to [vote](https://confluence.atlassian.com/display/JIRA/Watching+and+Voting+on+an+Issue) for the issue and/or leave a comment to describe your use-case in more detail. It will help our development team to build a solution that meets your needs.

If you want to know more about how we prioritise feature requests, take a look at our [policy](https://confluence.atlassian.com/display/DEV/Implementation+of+New+Features+Policy).

Let me know if you have any further questions.

Kind regards,  
Felipe Kraemer  
Atlassian Support


Tags: bamboo-administration
Increasing pipeline runner time limits?
Asked by Peter McTaggart:

I see in the docs that a pipeline step has a time limit of 120 minutes. (<https://support.atlassian.com/bitbucket-cloud/docs/runners/>)

I would like to use Bitbucket pipelines with CML (<https://cml.dev/>) to train big ML models that will take \> 2 hrs to train, possible more than 1 day.

Is there a way to increase these time limits ?


Answers:
author: Ben
body: Hey Peter,

Unfortunately, there is no way at present to increase the time limit per-step for Bitbucket Cloud Pipelines, the limit is capped at 120 minutes.

We do have an existing feature request for our development team however to increase this, please feel free to "Watch" this request to receive further updates related to it:  
<https://jira.atlassian.com/browse/BCLOUD-14603>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How Can I Get Triggered Pipeline Of Pull Request?
Asked by z:

I am using the Bitbucket API to access a pull request via its ID

\`\`\`  
<https://api.bitbucket.org/2.0/repositories/>${CONSTANTS.BITBUCKET_REPO_OWNER}/${REPO_NAME}/pullrequests/${PR_ID}

\`\`\`

When a PR is merged from my "dev" branch to my "stage" branch, a pipeline is automatically triggered.

I want to know how I can get the pipeline ID of that merge. It seems that the pipeline API does not return what triggered it.


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

Pull-requests pipelines run when a PR is created or updated.

If your pipeline runs automatically when a PR is merged, then the trigger is different.  
It could be either the default pipeline, or a branches pipeline for the "stage" branch.

The pipelines API has a target object for each pipeline. If the trigger was a branch pipeline, this object looks as follows:

```
"target": {
  "type": "pipeline_ref_target",
  "ref_type": "branch",
  "ref_name": "develop",
  "selector": {
    "type": "branches",
    "pattern": "develop"
    },
  "commit": {
    "type": "commit",
    "hash": "0b0be990348b6b6f433216d7c2a68b1578aa42f9",
    "links": { [...]
     } 
  }
}
```

If the PR is merged via a merge commit, you can get the hash of the merge commit and then query pipelines builds for that commit.  
Pipelines API does not support filtering at the moment, so you could use another tool, like jq, to filter the results.

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

bitbucket-pipelines

cloud

pull-request
Disable OAuth authentication when pulling the code with Git
Asked by RCVA:

Hello, I think everything is in the title : how do I disable systematic OAuth Authentication when I pull my code with Git ? I always need to press "Authorize" button which opens my browser, log in, and close the tab for each repository I want to update...

![image_2022-04-27_105027043.png](https://community.atlassian.com/t5/image/serverpage/image-id/194824i58029C9E14C430F4/image-dimensions/309x322?v=v2 "image_2022-04-27_105027043.png")


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

I believe that this prompt is coming from the credential manager.

If you are using the following credential manager (this is the most common I have seen):

* <https://github.com/GitCredentialManager/git-credential-manager>

This credential manager has an option to override the available authentication modes presented during Bitbucket authentication:

* <https://github.com/GitCredentialManager/git-credential-manager/blob/main/docs/configuration.md#credentialbitbucketauthmodes>

In this case, you would need to run

```
git config --global credential.bitbucketAuthModes "basic"
```

in order to force basic authentication only. Afterwards, make sure you remove any stored credentials for bitbucket.org from the credential manager, and you should get asked for username and app password next time you pull (which will then be saved).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
"We can't let you see this page" on all my repositories, and my dashboard shows I have no projects
Asked by Blake martin:

I can't access the page to any of my repositories (I am the owner, there are no other admins). I get the error "We can't let you see this page." When viewing my account dashboard, it shows that I have NO repositories or projects.  
Git is still able to access/push/pull the repositories so I know they haven't been deleted, but my browser bookmarks for them all just show me the same error.  

Please advise.


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

This investigation will require sharing sensitive information to resolve so I have raised a ticket in our support system to avoid this information being shared publicly.

You will receive an email shortly with the ticket information, please respond on the ticket portal.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
My email is blocked. How could I login with the old email?
Asked by Scott Williams:

Hi there, my company email was blocked. How could I login with the old email. Is there any way for me to change to another email?


Answers:
author: Ben
body: Hey Scott!

I have raised a support ticket on your behalf as resolving this issue will involve sharing potentially sensitive data which should be kept private.

You should receive an email to your email address with the link to the ticket, please access this and reply there so that we may proceed.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Can't Create New Repo with SourceTree - Can't Load User List
Asked by ThymeNassau:

This has been going on for a while, but ut...  

MacOS + Source Tree - there is no way to create a new repo and publish it to my Bit Bucket Account.

The error returned is:

```
Loading Owners Failed

message: This endpoint has been removed. See our documentation for more information. https://developer.atlassian.com/cloud/bitbucket/rest/api-group-teams/#api-user-permissions-teams-get

```

Does anyone have a workaround yet?

BitBucket is an Atlassian product.  

Source Tree is an Atlassian product  

But the two are unusable together?

HELP!!!


Answers:
author: onofrionapolitano
body: hi, idem -.-


Tags: bitbucket-cloud

cloud

mac

sourcetree
PIPE Connection to jenkins timing out
Asked by Sarath Nagarajan:

Hello Guys,

Any help sooner would be greatly appreciated

I am using PIPE to connect to Jenkins pipeline from BB and using the below code in my BB.yml  

```
- step: &functionalTest

name: functional test

image: python:3.9

script:

- pipe: atlassian/jenkins-job-trigger:0.1.1

variables:

JENKINS_URL: '<<myJenkinsURL>>'

JENKINS_USER: '<<myJenkinsUser>>'

JENKINS_TOKEN: $JENKINS_USER_TOKEN

JOB_NAME: '<<myJenkinsJob>>'

WAIT: 'true'

WAIT_MAX_TIMEOUT: 500
```

It was working fine until last week. However, since Friday i can see number failures in BB pipeline with the timeout. Though the Jenkins job is success and took only 4 mins and 56 secs to execute all test cases. Also i have WAIT_MAX_TIMEOUT: 500 (almost 8 mins max timeout)  
Exception:

```
? Timeout while waiting for jenkins job with build number 254 to be completed
```

PS: Jenkins job for this build ID is successful in 5 mins (including the Sonar report generation)


Answers:
author: o_kyrdan
body: Hi [@Sarath Nagarajan](/t5/user/viewprofilepage/user-id/4640457)

Thank you for your interest to [atlassian/jenkins-job-trigger](https://bitbucket.org/atlassian/jenkins-job-trigger) pipe.  

This pipe isn't released officially in the [Bitbucket Pipes Marketplace](https://bitbucket.org/product/features/pipelines/integrations), but available for beta-testing )

Please, make sure to tune **WAIT_MAX_TIME**according to the variables section in the Readme, instead of WAIT_MAX_TIMEOUT.

There is a bug in the advanced examples that will be fixed with the next release soon.

It would be nice if you provide us with more feedback about [atlassian/jenkins-job-trigger](https://bitbucket.org/atlassian/jenkins-job-trigger) pipe.

<br />

Best regards,  
Oleksandr Kyrdan


author: Sarath Nagarajan
body: Any luck on the above one pls?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

jenkins
Garbage collection Request
Asked by sguzman_vt:

Hi,

I'm trying to reduce size in one of our workspace repository. We have cleared the files which occupied the most space, i had activated the option "Delete dangling commits when over size limit", but it doesn't do anything.

I think we need a garbage collection from support to action this.

Thanks in advance.


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

The option "Delete dangling commits when over size limit" will work only if the repo is over the 4 GB limit, AND if you push a git reset.

If you push anything else, like file deletions or history rewrite, the git gc will not get triggered.

I can run a git gc for your repo, could you please share the last two letters of the repo name and also the repo's size as is displayed in Bitbucket UI, so I can identify it?

Kind regards,  
Theodora

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

Last two letters are "pp" and repo size is 2 GB.

Thanks for answering.


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

I ran a git gc for this repo and its size is 67.7 MB now.

Does this agree with the size of your local repo if you run **git count-objects -Hv** ?

Kind regards,  
Theodora


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

Yes they have the same size, thanks for your help.

Kind regards.


author: Theodora Boudale
body: That's good to hear and you are very welcome.

Just a heads up, we have a feature request to allow users to run a git gc for their remote repos:

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

Feel free to add your vote if you'd be interested in that (by selecting the **Vote for this issue** link). 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.

Please feel free to reach out if you ever need anything else.

Kind regards,  
Theodora


author: Robert Wen_ReleaseTEAM_
body: Hello, [@sguzman_vt](/t5/user/viewprofilepage/user-id/4894597) ! Welcome to the Atlassian Community!

I'm escalating this to someone from Atlassian so they can help you out.


Tags: atl-rvw

bitbucket-cloud

cloud
Create a new repository by copying an existing one
Asked by Gergana Tanova:

Hi, I wanted to create a new repository by cloning an existing one but it ended up in error because it is the URL that contains https// and passwords are not supported by bitbucket any more. How can I do this instead? Do i need to create an App password for this?


Answers:
author: Karthick S
body: Hello [@Gergana Tanova](/t5/user/viewprofilepage/user-id/3111059)

Thank you for reaching out to Atlassian Community!  

As per the Bitbucket [communication](https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity#:~:text=Deprecating%20Atlassian%20account%20password%20for%20Bitbucket%20API%20and%20Git%20activity,-September%2003%2C%202021&text=Starting%20Sep%2013%2C%202021%2C%20new,to%20use%20Bitbucket%20app%20passwords.), Atlassian account passwords are deprecated for Bitbucket API calls and HTTPS git activity (clone, push, pull and fetch), and are being replaced by App Passwords.

App passwords are meant to substitute your real account password and are designed to be used for a specific purpose and limited permissions. They can be easily created and revoked when needed.

You can check more information about the App Password with this [documentation](https://bitbucket.org/account/settings/app-passwords/). If you are using HTTPS, you need to create an app password.

Please note that the command expects the username, not the email ID. You can get the username from your [personal settings](https://bitbucket.org/account/settings/) of Bitbucket.

Alternatively, you may try authenticating using [SSH keys](https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/)   

I hope this helps.  

Regards,  
Karthick S

comments: author: Gergana Tanova
body: Hi Karthick S,

Thank you for your answer!

Regards,

Gergana Tanova


author: Gergana Tanova
body: [@Karthick S](/t5/user/viewprofilepage/user-id/4557546) I am not sure how it works exactly. I created an app password and then filled in my username and password when creating the new repository but it still cannot copy it. I get error message.

remote: Invalid credentials

Authentication failed for '<https://bitbucket.org/>....

Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.ImportException'\>: Command failed. Return value: 128

Do you have any idea why it could be so?

/Gergana


author: Gergana Tanova
body: It was solved, you can disregard my last message.


Tags: bitbucket-cloud

cloud

repository
Couldn't load merge checks
Asked by Joseph Gill:

[https://bitbucket.org/\\](https://bitbucket.org/\)u0021api/internal/repositories/wmsight/flourish-api/pullrequests/4696/merge-restrictions

Failure:

{"type": "error", "error": {"message": "Something went wrong", "id": "36ab254381a142d3be42123a4f12c5b5"}}

Wasting my time again, BB!


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

I'm sorry to hear that you are experiencing issues with Bitbucket Cloud, I will be here to assist you on this matter.

So that I can make sure that we are on the same page - are you encountering this issue when you are performing an API query or is this message displayed when navigating in a web browser?

**If API:**   
- Please provide the API query which you are attempting to execute, as well as the HTTP response code. Feel free to censor out any sensitive information as this is a public forum.

**If browser:**

- Please try to navigate to the page in an Incognito Window with add-ons disabled (if Chrome), alternatively, try a different browser and see if you get the same response.

Looking forward to hearing from you.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I can't receive invitation email
Asked by Elise Zhao:

My team in another corporation invited me to join a workspace on Bitbucket. He was able to send me the invitation last month. But I didn't click "Accpet my invitation". It was expired.

Now he tried to send me the invitation again, but I can't receive the email anymore. The email address is correct and he tried resending it multiple times but to no avail.

FYI, my email is \<email_removed\>


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

I checked in our system and your email is not in any of our suppression lists.

I can also see in our logs that you have received several emails from Atlassian during the last 3 days, but none of them seems to be an invitation email.

My suggestion would be to create a ticket with the support team and share in the ticket the workspace id of the workspace you have been invited to, so we can check the invitations sent from this workspace. (I would not advise sharing it here in order to comply with our privacy policy, as this is a public forum).

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. If the issue is a blocker for you, please make sure to select Level 1 as priority to ensure you get a faster response.

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

Kind regards,  
Theodora

comments: author: Elise Zhao
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) Thank you. Maybe I didn't make it clear. I received the invitation email 3 weeks ago, and it seemed that I can login the space. But I can't see any project.

I can't receive the email of the Bitbucket access of a specific project. So I can't commit any code to the specific location.


author: Theodora Boudale
body: Hi [@Elise Zhao](/t5/user/viewprofilepage/user-id/4895271),

If I understand correctly, you received an invitation 3 weeks ago. However, you mentioned that this old invitation expired, so a new invitation was sent. Is that correct?

My suggestion was to create a support ticket and share the workspace you have been invited to, so we can see what invitations have been sent from this workspace.

Your Bitbucket Cloud account with the email you shared doesn't have access to any workspaces other than your personal one.  
If you can't see any repositories, it's because you don't have access/permissions.  
Please note that ++an invitation sent to a user must be accepted by this user via the invitation email, in order for the user to gain access++.

If the first invitation expired and you were unable to accept it, then another invitation should be sent, and you should accept it in order to gain access.

Please let me know if anything is unclear.

Kind regards,  
Theodora


author: Elise Zhao
body: OK. I have created a support ticket and wait for a reply. Thank you.


author: Theodora Boudale
body: You are very welcome. Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
I don't see data updated after git pull orign master, pipeline bitbucket
Asked by javier:

Hi

I got this pipeline and a runner on my remote machine

bitbucket_pipeline.yml:

image: rust  
pipelines:  
branches:  
master:  
- step:  
name: 'Staging'  
deployment: Staging  
runs-on:  
- self.hosted  
- linux  
script:  
- cd /app  
- pwd  
- git init  
- git remote add origin git@bitbucket.org:hha/app.git  
- ls -la  
- git fetch  
- git checkout master  
- git pull origin master

runner:

docker container run -it -v /app:/app -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/containers:/var/lib/docker/containers:ro -e ACCOUNT_UUID={ccc259a5-3cf0-4d66-a66e-14b9b7a6} -e REPOSITORY_UUID={62e5e6c708-4bce-a251-5110bf9477bf} -e RUNNER_UUID={8f5c2-fac7-5c6c-9d41-97bf60a42b56} -e RUNTIME_PREREQUISITES_ENABLED=true -e OAUTH_CLIENT_ID=yZ8wBSBh37CgMWpGJLLJhofdbehlp -e OAUTH_CLIENT_SECRET=WhhXu2ewDPNb9DF8VL_5R_s75zxHzqqQ1ugrakquRUmpPqft7vBpBfK0XBTr -e WORKING_DIRECTORY=/app --name runner-8f5c2b63-fac7-5c6c-9d41-97bf2b56 docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1

Pipeline is working/passing after setting SSH keys pipeline, but I don't see anything on the path /apps on my remote machine. Changes are done on the docker cotnainer but not on the path of my remote machine, why?

Thanks


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

I'm afraid that Linux runners don't provide access to the host file system.

We have a feature request in our issue tracker that you can vote for and add yourself as a watcher if you'd like to get notified via email on updates:

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

In the meantime, we recommend using SCP / Rsync, if necessary.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-pipelines
How can I search the differences between branches?
Asked by Graham Dudley:

For example I am interested to find out if our release branch has any changes to a SQL table.


Answers:
author: seanaty
body: You can go to the compare page like this one:

<https://bitbucket.org/atlassian/atlaskit-mk-2/branches/compare>

You can find the link to this in the "kebab" menu (the three dots) on the repository main page. It's the option that says "Compare branches or tags"

![Screen Shot 2022-04-26 at 10.15.02 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/194710iA24F79867349F9B7/image-size/large?v=v2&px=999 "Screen Shot 2022-04-26 at 10.15.02 AM.png")


Tags: bitbucket-cloud

cloud