youngmon/atlassian-qna huggingface dataset:
Pipeline condition changeset only takes last commit into account
Asked by Cristian Lopez:

Hello team!

currently we are facing a weird behavior. Although the documentation says that all commits are taken into account when evaluating the pull request files, it is currently using only the last commit.

I just figured this out because we use conditions for all our steps, after updated the bitbucket-pipelines.yml file, all steps were skipped (which does not make sense because several conditions passes). The way to get expected steps executed is to squash all pull request commits into one.

Sorry if this is not the best place to ask / report.


Answers:
author: Norbert C
body: Hi Cristian,

Thank you for contacting Atlassian Community, my name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you! Welcome to the Atlassian Community!

I would like to inform you that this is a good place to ask/report.

Can you let me know what's in your bitbucket-pipelines.yml configuration, please? With this configuration which I have, the builds were executed correctly and even the previous commits were taken into account:

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

```
pipelines:
pull-requests:
'**': #this runs as default for any branch not elsewhere defined
 - step:
script:
 - echo "test"
condition:
changesets:
includePaths:
 - "potato/*.xml"
```

Please let us know, we're here to help.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: Cristian Lopez
body: Hi Norbert, nice to meet you too!

the configuration you asked is:

```
image: node:12.22.6
```

Thanks for checking


author: Cristian Lopez
body: I have also check [this doc piece](https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/), but didn't find anything relevant as we are just using an official image.

Let me know what other info can I provide to tackle this!


author: Cristian Lopez
body: FYI - I have updated the main pipeline image to use the one in your example and did not fix the behavior (it is still using only the last commit, skipping all the steps)


author: Norbert C
body: Hi Cristian,

I've only received the image:XXXXXX part from your configuration, would it be possible for you to post the whole bitbucket-pipelines.yml file (masking the confidential information)? I'd like to review your configuration as it would help me figure it out, what could go wrong.

Thank you!

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: Cristian Lopez
body: hey Norbert,

when reducing our pipeline to the minimum (and comparing each thing with documentation) I realize we are using 'branches' in pipelines instad of 'pull-requests'.

Thx for reaching out!


author: Norbert C
body: You're welcome Cristian, I'm glad to hear your issue is resolved :)

Have a good day ahead and stay safe!

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
server.port in bitbucket.properties has no effect
Asked by Bob Rzadzki:

Trying to setup Bitbucket Server behind an IIS reverse proxy and running into some trouble. I've updated my bitbucket.properties file with "server.port=8443" per the instructions here:

<https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-with-tomcat-using-ssl-776640127.html>

But when I run start-bitbucket.bat to test, I see "starting server on port 7990."

Why is the server.port setting having no effect?

Bitbucket Server 6.2.0


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Bob Rzadzki](/t5/user/viewprofilepage/user-id/331547) ,

first of all check if you're managing bitbucket.properties file in the correct path BITBUCKET_HOME_FOLDER/shared/bitbucket.properties (read [here](https://confluence.atlassian.com/bitbucketserver/change-the-port-bitbucket-listens-on-776640049.html#:~:text=You%20can%20change%20the%20port,free%20ports%20on%20your%20machine.&text=Navigate%20to%20your%20home%20directory.&text=Then%20save%20the%20file.))

Please verify that you correctly restarted the application.

For a reverse proxy configuration I know that there are two different ports, one for the application and one for the reverse proxy.

Here an example of my current configuration :

```
server.port=7990
server.context-path=/bitbucket

server.proxy-name=YOUR_PROXY_NAME_EXAMPLE_mydomain.com
server.proxy-port=8443
server.scheme=https
server.secure=true
```

Hope this helps,

Fabio

comments: author: Bob Rzadzki
body: Hi Fabio, thanks for your help.

The "find your home directory" link in the page you sent is dead, unfortunately. I am editing the bitbucket.properties file in the directory referred to in set-bitbucket-home.bat; that should be the right one, correct?

I tried the config you provided, with my proxy's hostname, and there's no change in the behavior.


author: Bob Rzadzki
body: Fabio, I had to iterate through some other options but it's working now. Thank you for your help, that got me on the right track.


author: Fabio Racobaldo _Herzum_
body: I'm happy for that [@Bob Rzadzki](/t5/user/viewprofilepage/user-id/331547) !


Tags: bitbucket-server

server
Bitbucket Smart Mirroring Alternatives
Asked by Joel Andrews:

Hi There,

Since Smart Mirroring in the Cloud has been depreciated as per:

<https://support.atlassian.com/bitbucket-cloud/docs/use-smart-mirroring-for-bitbucket-cloud/>

Is there an alternative option for Bitbucket in the cloud? We have a client who is evaluating migrating to Atlassian cloud, and this functionality is something they want.

Thank you,

Joel


Answers:
author: Ben
body: Hey Joel!

You are correct in stating that this feature has been deprecated, existing implementations will function but new implementations will not be possible.  
I have reached out to our development team for comment on an alternative but have not received a response as yet, I will get back to you once I have an answer.

Cheers!

- Ben (Bitbucket Cloud)

comments: author: Ben
body: Hello again Joel,

I've just received an update from one of our developers. Currently there is no replacement for Smart Mirroring in Bitbucket Cloud.  
If they would like to run their own instance of Bitbucket behind a firewall/local environment then they can use Data Center to achieve this:  
<https://www.atlassian.com/enterprise/data-center/bitbucket>  
I would recommend contacting a member of that team regarding this by using our contact form located here:  
<https://www.atlassian.com/enterprise/contact?formType=product-features>

Cheers,

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Why is one of my commits missing in JIRA?
Asked by ChuckieAJ:

See:

![CUT5.png](https://community.atlassian.com/t5/image/serverpage/image-id/184025iBCCA0373CFDA1D9B/image-size/large?v=v2&px=999 "CUT5.png")

The first pushed commit is missing.


Answers:
author: Norbert C
body: Hi [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)

Thank you for contacting Atlassian Community. My name is Norbert and I'm a Bitbucket Cloud Support Engineer, it's nice to meet with you!

Based on my observation the first commit is "uncommitted", which means it hasn't been pushed to Bitbucket Cloud.

Can I ask you to try to push this change to your remote repository and let us know if once this change is committed, is it seen in JIRA?

We're looking forward to hear from you.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support

comments: author: ChuckieAJ
body: Hi Norbert!

Thanks for your response. It seems that the issue has rectified itself:

![Commits.png](https://community.atlassian.com/t5/image/serverpage/image-id/184465i040F1A0BA4A31EA3/image-size/large?v=v2&px=999 "Commits.png")

I guess that it got fixed with subsequent pushes.


author: Norbert C
body: Hi [@ChuckieAJ](/t5/user/viewprofilepage/user-id/3394330)

Thank you for your reply, I'm glad to hear your issue is resolved.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

cloud
How to recover deleted bitbucket users
Asked by dinesh.gupta:

We have an admin user who accidentally got delete,

how we can recover the same as the was user being used everywhere for CI.

Thanks

Dinesh


Answers:
author: Rajesh
body: Hi [@dinesh.gupta](/t5/user/viewprofilepage/user-id/4545776)

Could you please provide more clarity on admin user you refer.

1. Is admin user you refer is the first SYS.ADMIN created by the system when Bitbucket was installed ?
2. Or is it just a ADMIN user.

Solution: {#toc-hId--1183495920}
--------------------------------

#### Case 1: {#toc-hId-2005081491}

If the SYS.ADMIN user itself got deleted and you don't have any other SYS.ADMIN user, you can follow this [Lockout Recovery](https://confluence.atlassian.com/bitbucketserver/lockout-recovery-process-776640158.html) documentation to create a temporary SYS.ADMIN called "recovery_admin".

* Login with recovery_admin.
* Create a new user with same username(It can be same as you've accidentally deleted) and grant SYS.ADMIN permission in the "Global Permission" screen.
* Shutdown the application and remove the argument from the _start-webapp.sh and restart the application.
* Now you can login with new SYS.ADMIN user you've created.

#### Case 2: {#toc-hId-197627028}

If it is just a ADMIN user that got deleted accidentally, the SYS.ADMIN or other ADMIN users can recreate a new ADMIN user with the same Username which was deleted.

I believe the above info helps clarify your questions. Please let us know if you've any further questions.

Thanks,

Rajesh Raghu

Atlassian Support


Tags: bitbucket-cloud

cloud
Is it possible to remove bitbucket product from my atlassian account ? (Repeat, same issue)
Asked by Lacey:

Hello,

I was wondering if it was possible to remove bitbucket product from my atlassian account

Indeed, I'm using JIRA Cloud + Bitbucket Server, those two are connected but JIRA Cloud still shows me shortcut to Bitbucket Cloud when I'm trying to create branche from JIRA Cloud or when I access to the "Start Page", ...

Also, on my Atlassian id products page (<https://id.atlassian.com/manage-profile/products>), I can see the Bitbucket Cloud product whereas I'm not using it

My question is : is there a way to remvove Bitbucket Cloud from my atlassian account so then it does not appear anymore on JIRA Cloud pages ?

Thanks for your help  
Have a nice day


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

So that we may proceed with troubleshooting this issue for you, can you please attempt to log in to [https://bitbucket.org](https://bitbucket.org?) using your email address? If an account does not exist, please specify - if you are able to access a workspace, please inform me of the workspace URL. There is a chance there is a workspace still active under your email address, this will first need to be deleted by us in the back-end.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Where do I find the "Enhancements to your code review workflow."
Asked by Tom:

The link on this page

<https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-and-server-7-20-release-notes-1101934428.html>

called [Enhancements to your code review workflow](https://confluence.atlassian.com/display/BITBUCKETSERVERM/.Enhancements+to+your+code+review+workflow+v7.13)

does not work. I would need a list of new features.

Thanks in advance

Thomas


Answers:
author: Andy Heinzer
body: Hi Tom,

Thanks for reporting this problem. I found a public link and have updated it to a new URL, you can see this over in <https://confluence.atlassian.com/display/BitbucketServer/Enhancements+to+your+code+review+workflow>

The release notes page might take a few minutes to reflect this change, but it has been updated. I don't believe that linked to page of Enhancements for your code review workflow for 7.20 contains any changes for those specific features since 7.13 as indicated on that page. But I hope this helps.

Sorry for the inconvenience.

Andy
Unable to do Git Tag! Getting: remote: Your credentials lack one or more required privilege scopes
Asked by muzammil:

I had to change the account that was being used to perform git pull and git tag on a branch in a repo. For that I updated user.email, user.name and remote.origin.url git global config settings. Here is how I did it:

* git config --global user.email "email-id@email.com"
* git config --global remote.origin.url "<https://user_id@bitbucket.org/app/repo.git>"

Since doing that even though I am able to pull code but tagging branch is giving me below error:

    Password for 'https://new-user-id@bitbucket.org':     [exec] remote: Your credentials lack one or more required privilege scopes.     [exec] fatal: unable to access 'https://new-user-id@bitbucket.org/<path>/<repo>.git/': The requested URL returned error: 403     [exec] Result: 128

Its an EC2 server instance where I am performing these git operations.


Answers:
author: Ben
body: G'day!

Please try to configure an **App Password** if you have not done so already to authenticate over HTTPS by following the documentation at this link, then updating your remotes to reflect this change:  
<https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/#Create-an-app-password>

* You will use your **App Password** alongside your username seperated with a ":" character.
* Therefore if you are authenticating to **GIT over HTTPS** to perform actions you will need to update your remote URL's to include the **App Password** :  
  ***git remote set-url origin <https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git>***
* The same applies when performing git clone:  
  **git clone <https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git>**

If this fails, can you attempt to use SSH to authenticate and see if the same occurs?

Cheers!

- Ben Pellaers (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
404 error when download docker image bitbucket-pipelines-runner
Asked by Diego Diaz (Eulen):

Hi,

I'm installing a runner on my local machine (linux) and I get a 404 error when I run this command: docker image pull [docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner](http://docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner):1

Maybe have I to open a port? or is It this command obsolete?

I'm following this tutorial: <https://support.atlassian.com/bitbucket-cloud/docs/set-up-and-use-runners-for-linux/>

Thanks in advance!!


Answers:
author: Syahrul
body: Hi [@Diego Diaz (Eulen)](/t5/user/viewprofilepage/user-id/4098614)

G'Day!

The commands you share is used to start a runner that has been installed when you need to update or reboot your machine, so can you confirm with me have you installed the runner by adding it following the guide below:

* [Adding a new runner](https://support.atlassian.com/bitbucket-cloud/docs/adding-a-new-runner-in-bitbucket/)

If yes, and you are unable to start the runner then the issue might be your firewall not allowing the connection. You can check our guide below on the list of IPs to whitelist:

* [List of IPs to whitelist for pipeline (including runner)](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments)

I hope this helps,  

Cheers,  
Syahrul

comments: author: Diego Diaz (Eulen)
body: thanks, the problem was in the firewall.

best regards
I have a question regarding Pull Requests via SourceTree.
Asked by mark jones:

I am using BitBucket as a code repository.

My Colleagues and I are using SourceTree to Commit, Push and Pull code changes to a bit bucket repository.

The issue I am confused about is that when I create a new feature - I create a branch for my feature - commit the code changes - select pull request when committing the changes - I am then directed to the BitBucket site to fill in details of the Pull request.

However my colleagues who are continually using SourceTree do not receive any notification of this Pull request. Is SourceTree capable of notifying users of pull requests ? If not - what is the normal process for colleagues to be informed of pull requests ? Should my colleagues need to keep watching the Bitbucket site throughout their day ? Will they receive an email notification ?

Any advice on recommended process would be appreciated.


Answers:
author: rahuldanwade
body: Hi Mark,

1. Check if your colleagues are added as reviewers while creating pull request.

2. Also check Manage account -\> Notification mails are enabled.

3. Check if they all are watching pull request

You are watching section

regards

Rahul Danwade


author: mark jones
body: Thanks for the answer.

Although it is helpful - I have spent all my free time over the past week trying to design and implement a source-control work practice for myself and my colleagues (only 3 of us - 2 of whom are occasional contributors). We would like to use Bitbucket \& SourceTree. However the design and setup of a simple system for 3 developers to edit code locally / commit code / push to repository / merge to master (only when pull-requests have been Approved by other developers) is proving a very difficult task. I have been reading the online tutorial content etc.. but I am having to painstakingly try all scenarios in order to hopefully stumble on a useful system.

Would I be correct in assuming that I create a repository.

Invite 2 other developers to clone the repository.

Then these 2 developers MUST Fork the repository in order to edit / commit their own code changes. Once they have forked the repository then they can issue pull requests in order that their code changes be approved and merged into the master branch.

Is their any further advice you could send me in regards to setting up a simple system for 3 developers to work with code where the only way to affect the master branch is to issue pull requests to the repository Admin and have those pull requests Approved by the Admin.

comments: author: rahuldanwade
body: Hi Mark,1.Apart from fork workflow you can opt for a Branch workflow where developers can create separate branches and start working on it, commit and create a pull request2.Once you create a pull request you can directly merge branch into master you don't need to wait for pull request approval.


author: Bal?zs Szakm?ry
body: Only the people specified as reviewers will get an e-mail about the new pull request.


Tags: bitbucket-cloud

cloud
Why repository cloning failed?
Asked by Tushar Tupe:

after updating sourceTree, any repository cloning failed, just displaying checking source at same time clone button unavailable. Have checked my login details which is proper.


Answers:
author: Gary
body: Hi Tushar,

Can you provide some output of the errors you are receiving?

Cheers,  
Gary


author: Tushar Tupe
body: ```
Thank you for considering issue.whenever I tried to clone repository login successful as it shows repository list(see login_successful.png) from server, but after selecting any repository it shows message checking source (see in cloning_fail.png). Also I could not push updates to server from local repository(just shows message can be seen in pushing_fail.png).I hope that will help to sort out issue.
```

cloning_fail.png

login_successful.png

pushing_fail.png  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-repository-cloning-failed/qaq-p/449827?attachment-id=9310){#link_116a5b0d19a12c}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/32785/1/cloning_fail.png){#display_116a5b0d19a12c_0}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-repository-cloning-failed/qaq-p/449827?attachment-id=9311){#link_116a5b0d19a12c_0}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/32785/2/login_successful.png){#display_116a5b0d19a12c_2}  
[](https://community.atlassian.com/t5/Sourcetree-questions/Why-repository-cloning-failed/qaq-p/449827?attachment-id=9312){#link_116a5b0d19a12c_1}  
[](/tnckb94959/attachments/tnckb94959/sourcetree-questions/32785/3/pushing_fail.png){#display_116a5b0d19a12c_4}


Tags: bitbucket-cloud

clone

cloud
How can I manage complexity in SourceTree?
Asked by Chris Nelson:

Over time, I've built up an unmanageable list of repositories in SourceTree, currently 14 representing work in four projects. I need a Workspace or Project or some such grouping mechanism so that when I'm working on Project One I only see repos A, D, F, and G and when working on Project Two, I only see repos B,C, and E. Is there some way to do that?


Answers:
author: Seth
body: <https://answers.atlassian.com/questions/261550>
Is SourceTree (or Git) compliant with the Microsoft SCC interface?
Asked by Tom Recht:

The documentation for IAR Embedded Workbench says that it works with any source code revision control system that is compliant to the SCC interface published by Microsoft. Is SourceTree compliant? (Perhaps the better question to ask would be, is Git compliant?)


Answers:
author: crf
body: There appear to be third-party solutions for this, such as <http://www.pushok.com/software/git.html> -- but open source software like git generally isn't that interested in catering to proprietary interfaces like that. It might be if Microsoft were actually interested in creating open standards instead of closed ones that you have to sign an NDA to get access to. Unfortunately, they apparently aren't.


Tags: git
Can we use SourceTree in a private disconnected network?
Asked by matt werth:

Will SourceTree work without connectivity too the outside world? Are we licensed/allowed to use it without registering each machine or user?


Answers:
author: Bal?zs Szakm?ry
body: SourceTree needs to be registered by each user individually, but there is an option to import the licence from a file.

=\> You can get your people to generate a licence for themselves on a computer with internet connectivity and then take that with them to the offline computers.


author: Markus Ursinus
body: Hello Matt,

so far as i know SourceTree does not need a connection to the internet. (But I haven't tested it yet!)

About the license ... i would like you to take a look at this post ["is sourcetree free?"](https://answers.atlassian.com/questions/154537) or here in the [SourceTree FAQ](https://www.sourcetreeapp.com/faq/).


Tags: licence
What information does sourcetree collect about usage and/or the user?
Asked by Dan Dumont:

The privacy policy was too vague and generic. I'm interested in specific info collected by the sourcetree app.


Answers:
author: Seth
body: Full Disclosure: I'm a SourceTree user, not Atlassian Staff.

SourceTree is a locally running program, not a web service. It technically has access to a whole lot of private information, but a privacy policy is only going to be relevant for any information that SourceTree sends to Atlassian.

In the Atlassian privacy policy, pay special attention to any sections relating to "Downloadable Products".

Is there something specific you're concerned about?

comments: author: Dan Dumont
body: No, not specifically, just hoping to understand exactly what this program collects.
How to integrate git to my app like SourceTree does?
Asked by Hao Peng:

How to integrate git to my app like SourceTree does?


Answers:
author: Markus Ursinus
body: Hello Hao Peng,

how you can use git with your app depends a little bit on the programming language you use. Maybe you should take a look at <https://libgit2.github.com/>. This library provided there is available for a bunch auf programming languages.


author: Bal?zs Szakm?ry
body: This is not the right place to ask this question, but you can e.g. take a look at the source code of Git Extensions here: <https://github.com/gitextensions/gitextensions>

comments: author: Hao Peng
body: Thank you!