youngmon/atlassian-qna huggingface dataset:
Disabling Branch Permissions Notifications
Asked by Vishal Dave:

I am more interested in the security of the Bitbucket Cloud product specifically.

I am an administrator within the Bitbucket Cloud instance. I have 2 other administrators who also use the same instance.

Within our repository, we've configured a "branch permission" for 2 reviewers, 2 approvers etc.

If one of the other "administrators" were to disable this branch permission, would all the "administrators" on the account be notified via "Email" of this disabling or turning off?

<br />

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Vishal Dave](/t5/user/viewprofilepage/user-id/4261093) ,

At the moment no notification is sent if a branch permission is removed.

If you'd be interested in such a feature, please feel free to let me know and I can open a feature request for you in our issue tracker.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
check if a branch is not in sync with target in a pull request
Asked by Walid Boussafa:

Is there a way to check if a branch is not in sync with target branch in a pull request using bitbucket rest api ?


Answers:
author: Theodora Boudale
body: Hi [@Walid Boussafa](/t5/user/viewprofilepage/user-id/1242326) ,

I'm afraid it is not possible to do this via API.

You could check this in a local clone of the repo (after fetching all remote branches with git fetch --all) with a git command.

E.g. if the source branch of the PR is 'feature-branch' and the destination branch is 'master', you can run the command

```
git rev-list --left-only --count origin/master...origin/feature-branch
```

The output will show you how many commits behind origin/master, origin/feature-branch is.  
If the output is zero the branches are in sync, otherwise an output X different than zero, means that origin/feature-branch is X commits behind origin/master.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Use crowd and AD as authentication to Bitbucket
Asked by Jonas Taft? R?dfoss:

Hi. I am wondering if there is possible to use Crowd and AD (ldap) as authentication to Bitbucket at the same time? For most of the users we want to use AD (ldap), but for some we want to use Crowd. When I tried, I could'nt login with both users without changing the preferred login method under "user directories" in bitbucket. Is there some configuration I can do to open for both at the same time?


Answers:
author: Jonas Taft? R?dfoss
body: Never mind. I think I figured it out.


Tags: bitbucket-server

server
How to export/download all latest files from multiple commits within a branch?
Asked by Dinesh.Krishna:

Hi,

We have multiple commits within a branch which needed to extracted and migrated in a single file. Is it possible to download all the latest committed files within branch at once?

Thank You.


Answers:
author: Irina Sanikovich _StiltSoft_
body: Hi [@Dinesh.Krishna](/t5/user/viewprofilepage/user-id/4260653) !

Use [this request](https://docs.stiltsoft.com/awesome-graphs/data-center-and-server/export-and-integrations/rest-api/getting-commits-and-pull-requests-via-rest-api#GettingcommitsandpullrequestsviaRESTAPI-Getcommits.2) to get the list of all commits in the repository.  
To retrieve data for a single commit and get a list of files, use [this request](https://docs.stiltsoft.com/awesome-graphs/data-center-and-server/export-and-integrations/rest-api/getting-commits-and-pull-requests-via-rest-api#GettingcommitsandpullrequestsviaRESTAPI-Retrieveasinglecommit) for each of your commits with the **with files parameter**.

You can also create a script for this case. If you are interested in how to do this with the help of Awesome Graphs for Bitbucket, feel free to contact our support tech-support@stiltsoft.com

Irina


Tags: bitbucket-server

server
How to get access to Bitbucket
Asked by Nancy:

User need to access to Merck Cloud Bitbucket Access

User Name :Subrat Keshari Dalsinghray

User Phone Number :[+91 7338133510](avaya-agent-call://call?to=+917338133510)

Repository: <https://bitbucket.org/MerckGroup/po-coe-capture-supplier-actions-workflow/src/master/>

Merckid : X214127

Kindly check and update us ASAP.


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi Nacy,

To request access to the given repository you need to contact the person / team within your organization who manage the repository. Neither of us or atlassian team can grant access to customer repositories.

Regards


Tags: bitbucket-cloud

cloud
Hi guys, I'm starting to pipeline from bitbucket but I have this problem. can you help me
Asked by Angel Ciro Del Mar Ortega:

Symfony\\Component\\Config\\Exception\\FileLoaderLoadException: The file "/opt/atlassian/pipelines/agent/build/app/config/parameters.yml" does not contain valid YAML in /opt/atlassian/pipelines/agent/build/app/config/parameters.yml (which is being imported from "/opt/atlassian/pipelines/agent/build/app/config/config.yml").


Answers:
author: ktomk
body: Hey [@Angel Ciro Del Mar Ortega](/t5/user/viewprofilepage/user-id/4259833) , welcome to the Atlassian Community!

The problem of which you share the error message is hard to locate by the message alone. This could be caused by different places in the pipeline setup or configuration and also in the project setup itself.

By the error message the repository file \`app/config/parameters.yml\` is malformed so that the Symfony Config File-Loader is unable to load it.

To debug this for the pipeline environment please see:

* [Debug pipelines locally with Docker](https://support.atlassian.com/bitbucket-cloud/docs/debug-pipelines-locally-with-docker/)

for a general description.

Alternatively you can use a PHP based pipelines runner which takes away most of the legwork described there and which comes with debugging and development options:

* [Pipelines - Run Bitbucket Pipelines Wherever They Dock](https://ktomk.github.io/pipelines/index.html)

I'm sorry if this answer appears that broad, but it's the best suggestion I can share by the little of the error description.

Next to running in the pipeline container, another thing if you don't have the problem locally is to checkout the repository clean and check if it fails, too. This would be a sign that there is a problem within the git repository revision.


Tags: bitbucket-pipelines
This is a large pull request. Large pull requests can only be viewed by loading files individually
Asked by Miko:

I recently installed `composer require league/flysystem-aws-s3-v3 ~1.0` in my laravel-mix app and created small line of codes of `vue components` and `blade.php` files.

When I tried pushing my changes and created a pull request, it gives me error saying `This is a large pull request. Large pull requests can only be viewed by loading files individually.`

I noticed that most of the files came from `vendor` directory caused by installing `league/flysystem-aws-s3-v3`.a

Obviously, it is impossible to **load the files individually** since its almost 2000 files.

Is there anyway to merge this to master? If yes, how?


Answers:
author: Miko
body: What a stupid question. Sorry guys.  

It only says \`can only be viewed\` and not \`can only be merged\`


Tags: pull-request
Password for Microsoft Account?
Asked by andrewcli26:

So my Atlassian account was signed up with Microsoft instead of creating a new account. How would I go commiting my code to BitBucket since I technically don't have a password. The password for my Microsoft account didn't work and I couldn't change it either from the Atlassian settings.


Answers:
author: Pramodh M
body: You could create App password in your personal settings and it can be used for authentication.

comments: author: Pramodh M
body: FYI,

Password can be changed here

<https://id.atlassian.com/manage-profile/security>

Thanks,  
Pramodh


author: andrewcli26
body: Yes, but how can I make it one that I want to set. The password made is completely random and hard to remember


author: Wilens_ Martin _UT-ET_
body: changing password while signed up with Microsoft is hard as you have no current password. I tried the App password but also no luck for me


author: Khaoula EL MANSOURI
body: Log out from your account then click on this:

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/298562iBE700715EC106E71/image-size/large?v=v2&px=999 "Capture.PNG")

you will receive an email where you can change your password without an old password.


Tags: bitbucket-cloud

cloud

microsoft
Installing Node.js v10 doesn't seem to work, installing v9 instead
Asked by Trey Gourley:

We are using SonarScanner to scan our .NET Core applications during build. This tool has upgraded its required Node.js version to v10 instead of v9.

```
ERROR: Error during SonarScanner execution
ERROR: 
The version of node.js (9) you have used to run this analysis is deprecated and we stopped accepting it. Please update to at least node.js 10.
Temporarily you can set the property 'sonar.scanner.force-deprecated-node-version-grace-period' to 'true' to continue using node.js 9
This will only work until Mon Feb 15 08:00:00 UTC 2021, afterwards all scans will fail.
You can find more information here: https://sonarcloud.io/documentation/upcoming/
ERROR: 
The SonarScanner did not complete successfully
16:36:18.584 Post-processing failed. Exit code: 1
```

`Here are the commands that run in the pipeline before sonarscanner runs.`

```
apt-get update
apt-get install --yes nodejs
node -v
```

In the install, here are the final output lines...

```
Setting up libbrotli1:amd64 (1.0.7-2+deb10u1) ...
Setting up libc-ares2:amd64 (1.14.0-1) ...
Setting up libuv1:amd64 (1.24.1-1) ...
Setting up libnode64:amd64 (10.23.1~dfsg-1~deb10u1) ...
Setting up nodejs-doc (10.23.1~dfsg-1~deb10u1) ...
Setting up nodejs (10.23.1~dfsg-1~deb10u1) ...
update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
Processing triggers for libc-bin (2.28-10) ...
```

So I would imagine this means that v10.23.1 should install. But when the version output command is run...

    node -v
    v9.4.0

**Is there something I am missing here that v10.23.1 doesn't get installed?**

I will add that I am not a Node.js expert, just using it because SonarScanner needs it.


Answers:
author: ktomk
body: First, just in case its an option to put the scan into a pipeline step of it's own: SonarSource also has Docker Images for the Scanner which can be used in a Pipeline step: [sonarsource/sonar-scanner-cli](https://hub.docker.com/r/sonarsource/sonar-scanner-cli) - I had this working in the one or other bitbucket pipeline stable.

Having a pipeline step of it's own for the scan task may require you create *artifacts* in the previous steps so that the scanner can take them in (e.g. code coverage data etc.).

For the problem with the node version:

If you look at this message:
> \`update-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (**js**) in auto mode\`

the alternative is set for the \`js\` utility, this is why the \`node\` utility is not affected.

that is the explanation only thought. I don't have a debian system at hand right now to quickly pull the command line to set this up.

a quick and dirty variant might be:

```
rm -f /usr/bin/node ; ln -sfT /usr/bin/nodejs /usr/bin/node
```

remove /usr/bin/node (in case it exists) ; symlink nodejs to node.


Tags: bitbucket-pipelines

cloud

node.js

sonar
Bitbucket maxing out CPU and locking up server
Asked by Billy Gagon:

Yesterday, our server hosting Bitbucket froze up; when we could finally get in, we found the Bitbucket service using the entire CPU. The server was practically unusable until the service was killed, at which point everything went back to normal. Is there a known fix for this issue to prevent it from happening again? No errors in the logs from the time it was noticed, and nothing I can see that lines up with the one KB article on this issue.

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


Answers:
author: Gonchik Tsymzhitov
body: Hi!

I do recommend to start from investigation of cause

<https://confluence.atlassian.com/kb/best-practices-for-performance-troubleshooting-tools-652444218.html>

As I see on your windows server located the SQL server and Bitbucket.

Could you double check situation with IOPS ?


Tags: bitbucket-server

server
Can we filter out commit logs based on date/time?
Asked by Avni Maharana:

Can we filter out commit logs based on date/time?  
=\> So that we'll get to know on which date what changes has done before.


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

You can do this with the command **git log** in a local clone of the repo. With git log you can use the options **--after** and **--before** to filter commits newer or older than a certain date.

* <https://git-scm.com/docs/git-log>

Is this what you've been looking for? Or were you looking for something different, e.g. filtering commits in the UI, or when you retrieve them via API?

Kind regards,  
Theodora

comments: author: Avni Maharana
body: Thank you so much [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)


author: mehov
body: [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) thank you, I was looking for a way to filter the Bitbucket commits by date, but doing it inside actual git is a much better, reasonable and provider-independent way
Bitbucket Cloud Merge Check
Asked by Voonyau Yong:

Is the bitbucket cloud able to separate the option
> Check the last commit for at least {#1} successful build and no failed builds

to **Check the last commit for at least and ignore failed build?**


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

At the moment, I'm afraid that it is not possible to separate the requirements for X successful builds and no failed builds.

If you are enforcing the merge checks, and the last commit of the source branch of the PR has a failed build, you'll need to create a new commit with successful builds only to be able to merge the PR.

We have a feature request in our issue tracker to split the "no failed builds" requirement into its own branch permission, separate from the "X successful builds":

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

I would suggest to add your vote in that ticket (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.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

merge