youngmon/atlassian-qna huggingface dataset:
Workspace configurations
Asked by Joao Pedro Correia:

can you configure the pipeline in a workspace of all the child repositories that inherit this bitbucket pipeline?


Answers:
author: Joao Pedro Correia
body: ok thankyou


author: Saxea _Flowie_
body: Hi [@Joao Pedro Correia](/t5/user/viewprofilepage/user-id/5348574) ,

Not via inheritance, but there're [Share Pipelines.](https://support.atlassian.com/bitbucket-cloud/docs/share-pipelines-configurations/)

comments: author: Joao Pedro Correia
body: And branch settings, such as PR activation, merge blocking and direct commits in dev, always making a squash commit, is there any way to make this setting defaut?


author: Saxea _Flowie_
body: You can define branch restrictions at Project level, but not at Workspace level, and they are inherited by the repositories. Branch restrictions support merge checks/blocking and direct commits in dev.

I'm not sure what you mean by PR activation, but you can define PR permissions in branch restrictions as well.

Default merge strategy e.g. squash commit is also supported at Project level for the repositories to inherit it. However you can't enforce it or restrict it.

[Flowie](https://flowie.app), a Bitbucket addon we develop, provides more granular control over these and other settings. e.g. It can [enforce a merge strategy](https://flowie.app/docs/en/plugins/merge#restricting-merge-options-and-default-values) per branch for all repositories, defined at Workspace level. Additionally, you could also define that it should always close the branch after a merge for instance.


Tags: bitbucket-cloud

cloud
file could not be downloaded (HTTP/2 429 ) on 'composer update'
Asked by Joseph Indurante:

I am encountering the following issue while executing 'composer update' on my project:

\*\*Error:\*\* The requested files could not be downloaded (HTTP/2 429).

This problem specifically arises when Composer attempts to download certain private repositories.

In my composer.json file, I have defined repositories as follows:

<br />

{  
"type": "vcs",  
"url": "[https://bitbucket.org/\*\*\*\*\*\*.git](https://bitbucket.org/******.git)"  
}  

Considering that I should be comfortably within the limit of 1,000 requests per hour, I am seeking insights into the possible reasons for this error. Your assistance in resolving this matter would be greatly appreciated.


Answers:
author: Syahrul
body: G'day, [@Joseph Indurante](/t5/user/viewprofilepage/user-id/5348526)

Welcome to the community.

My question is, are you authenticated when making API calls? If not, you are probably using anonymous requests, which are limited to 60 requests per hour, as stated in our documentation.

[API request limits](https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/)

Regards,  
Syahrul

comments: author: Joseph Indurante
body: [@Syahrul](/t5/user/viewprofilepage/user-id/744536) we are using an auth.json with consumer-key, consumer-secret, and access-token


Tags: bitbucket-cloud

cloud
Despite being logged in correctly, the Cloning tool is not allowing cloning to occur.
Asked by Caden C Maners:

Logged in to bitbucket account, but does not allow cloning to occur. Detects as an invalid URL.


Answers:
author: Ben
body: Hi Caden,

May I know which protocol is affected when you attempt to execute the clone command in a terminal? Is it SSH or HTTPS (or both)? Please provide any error message you see when you attempt this and try both protocols to determine if one is working.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Caden C Maners
body: HTTPS:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote \[REDACTED\]  
Output:  
Error: remote: Invalid credentials  
fatal: Authentication failed for '\[REDACTED\]'

SSH:

Command: git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks ls-remote git@bitbucket.org:\[REDACTED\]  
Output:  
Error: FATAL ERROR: Network error: Software caused connection abort  
fatal: Could not read from remote repository.

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


author: Ben
body: Hi Caden,.

The most common issue customers are experiencing related to authentication is due to the deprecation of GIT username/password in favour of App Passwords on 01/03/2022:  
<https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>

You will need to make use of an App Password for communicating to GIT via HTTPS.  
We have documentation for usage of app passwords at the following link:  
<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/#Create-an-app-password>

<br />

Essentially, when connecting via HTTPS you will use your App Password alongside your username seperated with a ":" character.

Therefore if you are authenticating to GIT over HTTPS to push/pull you will need to update your remote URL's to include the \*AppPassword\*:

```
git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

```

**The same applies when performing git clone:**

```
git clone https://USERNAME:APP_PASSWORD@bitbucket.org/workspaceID/reposlug.git

```

I would suggest ensuring also that all stored passwords related to authentication over GIT are cleared from your machine (ie Credential Manager for Windows, Access Keychain for Mac or /etc/shadow folder for Linux).

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


author: Ben
body: May I also know what software you are using? The SSH error seems to relate to a software-specific problem.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

sourcetree
How to execute script on a self hosted server
Asked by ???:

Hi.

I'am running a self hosted runner.

I want to execute script in a host server, not container.

docker volumes - \<host-server ssh-key Path\>:/mnt

when i run command in a host server, docker gateway = "172.17.0.1"

docker inspect --format='{{json .NetworkSettings.Networks.bitbucket_new_default.Gateway}}' runner-name \| jq

How can i execute command in a host server using pipelines script?

\`\`\`  
image: atlassian/default-image:4  
pipelines:  
default:  
name: deploy  
runs-on:  
- self.hosted  
- linux  
- test  
script:  
- ssh -i /mnt/id_ed25519 ubuntu@172.17.0.1 "echo test"  
\`\`\`


Answers:
author: Syahrul
body: G'day, [@???](/t5/user/viewprofilepage/user-id/5348328)

Welcome to the community!

I assume you are using Linux docker based on the Yaml above. If yes, a limitation in Linux docker prevents the runner from accessing the host file system.

If you wish to, the options would be via SCP or Rsync if necessary.

For more information on limitations, please check our documentation:

[Runner limitation](https://support.atlassian.com/bitbucket-cloud/docs/runners/#Usage-limits)

Regards,  
Syahrul

comments: author: ???
body: I solved.

docker volumes mount !


Tags: bitbucket-cloud

cloud
Bitbucket Cloud product release track unavailable
Asked by Rehnuma Noor:

Hello,

I'm looking for a way to change my organization's Bitbucket release track to Bundled. I'm currently able to make the change for Jira and Confluence in Access but don't see an option to add Bitbucket.

Does anyone how I can resolve this? Is the feature not available for Bitbucket?

Thank you,

Rehnuma Noor


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hi [@Rehnuma Noor](/t5/user/viewprofilepage/user-id/1192655)

Release tracks are only available for Jira and Confluence Premium.

comments: author: Rehnuma Noor
body: Hi Robert,

Thanks for confirming. Any idea if it will be available at any point?


author: Robert Wen_ReleaseTEAM_
body: I suspect it will follow when user administration for Bitbucket Cloud moves to the Admin Hub which is slated to complete Q4 2024 according to this article.

<https://bitbucket.org/blog/unified-user-management>


author: Rehnuma Noor
body: Understood. We'll keep an eye out for it. Thanks again.


Tags: bitbucket-cloud

cloud
GC Request
Asked by DuyThai89:

Hello

I ran BFG to reduce my repo size, can you please run GC on this repo: \[REDACTED\]

Thank you


Answers:
author: Ben
body: Hi Duy Thai,   

I've successfully run garbage collection against your remote repository in the back end to clean up any dangling commits.  

The repository size has reduced from 4.1GB and is now currently 1.1GB.  

Would it be possible for you to check it on your end (by navigating to your **Repository \> Settings** ) and see if that has helped?  

We want to inform you that we do have a Feature request ([BCLOUD-11610](https://jira.atlassian.com/browse/BCLOUD-11610)) to provide users with the option to limit the filesize that is able to be pushed to GIT to prevent such issues from occurring again.   
Our Dev team is currently working on implementing the feature request and we don't have any ETA for its implementation. I would suggest you "Watch" this ticket for future updates from our Dev team.

Hope it helps, Duy Thai.   
Let me know how it goes.  

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Get the pipeline triggered URL
Asked by Naor Zveda:

Hi,

I'm using <https://bitbucket.org/atlassian/trigger-pipeline/src/master/>

Once the pipe is running I can find inside the logs the pipeline ID which is running now.  
is there a way to get the triggered URL pipeline (the process that is being triggered) as an environment variable or middle script that can use steps or pipes to use this URL and send it to slack or post it into some PR as a comment?

Senario:

Repo A - Sanity testing repo

Repo B - Production product  
Once I'm opening a PR inside Repo B, my pipeline is configured to run:  
Install, build, deploy demo env, unit testing, and trigger a pipeline on Repo A (Sanity testing)  
There is a way to get the URL from the triggered task and for instance add a comment to Repo's B PR the URL that is being running ? instead of digging in the step logs?  


Answers:
author: Patrik S
body: Hello [@Naor Zveda](/t5/user/viewprofilepage/user-id/4690841) ,

thanks for reaching out to Bitbucket Cloud Community!

Unfortunately, the pipe [atlassian/trigger-pipeline](https://bitbucket.org/atlassian/trigger-pipeline/src/master/) does not currently share the build URL or the build ID with the build container once the pipe completes its execution. That information is currently available only within the pipe's container.

However, since atlassian pipe repositories are public, you have the option to fork the pipe [atlassian/trigger-pipeline](https://bitbucket.org/atlassian/trigger-pipeline/src/master/) and do some custom modifications on the pipe's script to cover your use case. Bitbucket Pipelines offer the built-in variables *BITBUCKET_PIPE_STORAGE_DIR* and *BITBUCKET_PIPE_SHARED_STORAGE_DIR*that can be used to share state/data between pipes or between the pipe and a step, so you could change the pipe's script to save the build URL to a file inside those directories, and once the pipe is finished you can then get the content of the file in your step's script.

For further details and examples on how to share that information between the pipe and the step you may refer to the following article :

* [Sharing information between pipes](https://support.atlassian.com/bitbucket-cloud/docs/advanced-techniques-for-writing-pipes/#Sharing-information-between-pipes)

With the build ID in hands, the API endpoint [Create a comment in a Pull Request](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-comments-post) can be used to post this information as a comment in a Pull Request.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Naor Zveda](/t5/user/viewprofilepage/user-id/4690841) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

trigger
Is it possible to separate changed files from the repository in pipeline?
Asked by Jan Kom?nek:

As title says I would love to have a way to separate changed files (that were commited) from rest of the repository. It could help me save a TON of time and deployment proccess, although if you know any better way to deploy on a VPS, sure write me about it :D Currently I am using scp deploy from atlassian.  

Thanks in advance for any help!  

JK


Answers:
author: Theodora Boudale
body: Hi Jan and welcome to the community!

You could use the rsync pipe instead:

* <https://bitbucket.org/atlassian/rsync-deploy/src/master/>

I am copying from the [rsync man page](https://manpages.ubuntu.com/manpages/trusty/en/man1/rsync.1.html):
> Rsync finds files that need to be transferred using a "quick check" algorithm (by default) that looks for files that have changed in size or in last-modified time. Any changes in the other preserved attributes (as requested by options) are made on the destination file directly when the quick check indicates that the file's data does not need to be updated.

Getting a list of changed files may not be easy or straightforward, depending on the type of pipeline and how it was triggered. The following command will show changed files in the commit that triggered the build:

```
git diff --name-only HEAD HEAD~1
```

This will work if you have a pipeline running on a **branches** definition and you push one commit at a time. However, if you push e.g. five commits, the build will be triggered for the last commit only, and this command will miss the changed files in the previous four commits.

Figuring out how many commits you need to go back to adjust the **git diff** command would need to involve some scripting using our [APIs](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-pipeline-uuid-get). You would need to check the previous builds one by one: e.g. if the current build is number 50, first check if build 49 ran on the same branch and for the same definition, and if so, get the commit hash of the commit that triggered this build. If not, continue the process for the previous build.

For builds running on a **pull-requests** definition, the list of changed files in that pull request is easier to get with the following API endpoint:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-diffstat-get>

Kind regards,  
Theodora

comments: author: Jan Kom?nek
body: Thanks a lot! The rsync pipe did the job!


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

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


Tags: atl-pipelines

bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket deactivated my account without any reason or notice
Asked by Muhammad Salman Nadeem:

![Screenshot 2023-10-23 at 10.22.28?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/287792iA3F0DDCE1AB2BE3C/image-size/large?v=v2&px=999 "Screenshot 2023-10-23 at 10.22.28?PM.png")


Answers:
author: Theodora Boudale
body: Hi [@Muhammad Salman Nadeem](/t5/user/viewprofilepage/user-id/5347674),

I see that you have already created a support ticket for this issue, you can ask any questions you have to my colleague who is working on your ticket.

[@schurikov](/t5/user/viewprofilepage/user-id/3512283), you can ask your friend to create a support ticket via <https://support.atlassian.com/contact/>, in "What can we help you with?" select "My account". Please ask them to include the email of the deactivated account in the ticket description and mention that the issue concerns a deactivated account.

Kind regards,  
Theodora


author: schurikov
body: Same thing has happened with an account of my friend, very interesting: what's going on? and how it can be fixed?


Tags: bitbucket-cloud

cloud
How to retrieve a bitbucket workspace
Asked by Azeh Gideon:

How do you retrieve a bitbucket workspace which you tried creating but didn't complete the process and now it shows up as unavailable?


Answers:
author: Ben
body: Hi Azeh,

Did you get to the process of actually completing the signup process? May I know if you received some error message when creating the workspace?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How do I find Project Admin for my team's projects in Bitbucket?
Asked by Kumar_ Mohan 1:

My team needs to delete some old repos but realized only project admins shall do that. They came to me being their Scrum master. I have project admin access for Jira project but not bitbucket. I need to find who the project admin for my team's projects so that I shall reach the right person and get it resolved. So, how do I find Project Admin for my team's projects in Birbucket?


Answers:
author: Theodora Boudale
body: Hi Kumar and welcome to the community!

Does your question concern Bitbucket Cloud or Bitbucket Server/Data Center? I see that your question has the tag 'bitbucket-cloud', but there is no Bitbucket Cloud account with the email of your community account. The URL of a Bitbucket Cloud repo starts with <https://bitbucket.org/>, while Bitbucket Server/Data Center ones have a different custom URL.

Both Bitbucket Cloud and Bitbucket Server/Data Center don't show project admins to users who are not admins. You can ask your colleagues or a manager in your company who the project admin is.

In case you are using Bitbucket Cloud with a different email address and you cannot figure it out, I can create a support ticket on your behalf so we can share with you the names of the admins. In case you are using Bitbucket Server/Data Center, Atlassian doesn't have visibility to these instances as they are self-hosted, so you will need to ask internally in your company.

Kind regards,  
Theodora

comments: author: Kumar_ Mohan 1
body: I'm not asking who my project admin is.

The question is, how do I find who the project admin of my project in Bitbucket so that I shall reach them and get my issue fixed. Thanks


author: Theodora Boudale
body: Hi Kumar,

As I said in my previous reply, I'm afraid that it is not possible to find this info in Bitbucket if you are not an admin. You can find out by asking internally in your company or via a support ticket if this concerns Bitbucket Cloud. Please feel free to let me know if you need anything further.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Fisheye watch gets stuck sending the same email(s) indefinitely
Asked by Michael Rubin:

I am running FishEye 2.7.15 on Windows, against a local mirror of a CVS repository residing on the same server as the FishEye installation. Quite frequently (several times a week) a 'watch' will get stuck sending people the same email indefinitely. The way to get it unstuck is to check something else in to that repo.


Answers:
author: Felipe Kraemer
body: Hi Michael,

Looks like you're stumbling on an existing bug: <https://jira.atlassian.com/browse/FE-3454>

It was not fixed yet, unfortunately.

We strongly suggest you to add any comments to the issue above as well as [voting](https://confluence.atlassian.com/display/JIRA/Watching+and+Voting+on+an+Issue) on the issue to create it's popularity and likelihood of being fixed in a future release.

Please see the document below for more information on Atlassian's bug fixing policy:

<http://confluence.atlassian.com/display/Support/Atlassian+Bug+Fixing+Policy>

Kind regards,  
Felipe Kraemer  
Atlassian Support


author: Norman Abramovitz
body: I would contact support if you have not done so already.

There does not seem to be resolution reported here the last time this issue was asked about.

<https://answers.atlassian.com/questions/50636/fisheye-sends-repeated-commit-notifications>


Tags: email

watch
Trying to get the "Create Issue" link to appear
Asked by Michel Parisien:

Hello,

I am trying to use crucible for the first time, and I was really looking forward to being able to associate a ticket to a line of code, as they do in the video at <http://www.atlassian.com/software/crucible/overview> at 1:38. When I created my crucible review from my JIRA issue, the review was automatically associated with the issue.

Unfortunately, unlike in the video, I do not have that "Create Issue" link in my comment.

Note I am the moderator of the review, I do not know if that makes any difference.


Answers:
author: Felipe Cuozzo
body: Please open a support request at <https://support.atlassian.com> as there may be some configuration problems with your instance that prevent the "Create Issue" option to appear, please link to this page.


author: Michel Parisien
body: I am no longer using crucible, I am now using bitbucket, so this issue no longer applies to me.


Tags: cloud

fisheye-crucible-svn-ondemand
Fisheye/Crucible start-up seems to be tied to login account
Asked by Dan Feeny:

Thanks in advance.

We're running FishEye/Crucible on a Windows Server 2008 R2 OS and starting the apps by using the /FISHEYE_HOME/run.bat method.

We recently experienced a power outage while the Crucible maintainer was sick and when logging into the machine with another account and starting up Crubible/Fisheye with the same /FISHEYE_HOME/run.bat method found that the server was unconfigured with no application data.

We have found that the server and app data is tied to the current maintainer's account. This is obvious unsustainable and creates significant risk should that maintainer leave the company.

How can we reconfigure this server so that any administrator can start the services and have all existing data persist regardless of who starts up the services?


Answers:
author: LeonardoL
body: Hi,

You can try to configure application to run as a windows service to be initialized with the server. Please refer to documentation below:

<https://confluence.atlassian.com/display/FISHEYE/Running+FishEye+as+a+Windows+service>

Cheers,

Leonardo.

comments: author: Dan Feeny
body: I'll give it a try and report the results. The key to success will be whether we lose the existing repository and review data or not. Finger crossed.


author: Dan Feeny
body: Thanks, that did the trick.