youngmon/atlassian-qna huggingface dataset:
Condition: Check for other repo if there is changes/no-changes in that repo pipeline skip/no-skip?
Asked by Abdul Rehman:

Use Case:  
If there is a change in ++Repository A++ (Which is outside the workspace)  
**atlassian/trigger-pipeline:5.0.0** will trigger pipeline in the ++Repository B++

* We have a project outside our workspace in that project's bitbucket-pipelines.yml file there is a step that triggers the pipeline in Repository B. (***Working Perfectly Fine*** )  

* There is a condition in Repository B that if there is no change in these paths below:

  ```
  condition:

              changesets:

                  includePaths:

                      # Any changes in Cypress Directories

                      - cypress/fixtures/**

                      - cypress/integration/**

                      - cypress/plugins/**

                      - cypress/support/**
  ```

  pipeline gets stopped automatically. (***Working Perfectly Fine*** )  

The main Question starts here:

We want to bring a functionality in the condition that if there is no-change in Repository A's specified paths. As the condition is in Repository B's pipeline, Repository B's pipeline gets stopped  
So basically our condition will be checking for two kinds of conditions either Repository A and B both has changes in specified path or not. If one of the two conditions get true pipeline should complete its steps, if it gets false pipeline should stop.


Answers:
author: Theodora Boudale
body: Hi [@Abdul Rehman](/t5/user/viewprofilepage/user-id/4401291),

I'm afraid that the following is not possible by using **condition** and **changesets** in the bitbucket-pipelines.yml file:
> If one of the two conditions get true pipeline should complete its steps

If you include a condition in Repository A and that condition is false, then the step in repo A will not run at all, and therefore the pipeline in Repository B is not going to get triggered in order to check if the condition in repo B is true.

If you want to check whether one of the conditions is true in order to trigger the pipeline in repo B, you could do this with some scripting and without using the **condition** and **changesets** in your yml file:

* Create a script that checks if there are changes in certain files and/or paths in the HEAD of a repo
* In the pipeline of repo A:
  * run this script for the HEAD of repo A (check 1)
  * clone repo B and run the script for repo B (check 2)
* If both check 1 and check 2 are false, you can fail the build in repo A
* Otherwise, trigger the pipeline in repo B

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
High availability License cost
Asked by Tom Clark:

I have several Bitbucket Data Center licenses and there is a new requirement that we make several of our environments into a High Availability type.  

Will having a HA environment require that I purchase a second Bitbucket DC license or since the HA portion is on standby until called upon am I allowed to use the Dev license in this example?

Many thanks in advance,

t


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

Your Data Center licence entitles you to run **one** Bitbucket **service**. The number of nodes you have in the cluster that the service runs on is not constrained by the licence, even when you've got dormant nodes that you only fire up when there's a problem with others.

Atlassian only really support clusters of 2-4 nodes in a simple "all nodes run, we distribute load evenly" configuration by default, but only in the sense of "that's what they have tested to death".

More unusual setups are still supported, you just find it might be a bit slower if you're asking for support on a single-node DC install, or one with more than 6 nodes (I say 6 because I know they regularly test that high, but 7+ is more "when we've got time to try"), or ones with skewed nodes

My experience with clustering servers goes back to the days when you always built clusters with odd numbers of nodes so that you always had a clear consensus on decisions, and to this day I still recommend that, but there's also the more sophisticated cases where you've got a cluster with one node doing the primary backups, another dedicated to incoming REST calls and having no vote, or the case you suggest - X nodes, X-2 active most of the time, but if a node fails, you fire up one of the inactive nodes to balance the load.

Your dev licence is for dropping on to non-production systems so you can do development, sandboxes, testing, upgrade tests and so on. It's for a separate system. (It does also say "disaster recovery", but when you've got a DC install, that DR is more about having a remote cluster that can take over if you lose every node in your production system, and there's more sneaky things you can do there to provide HA)

TLDR: your licence covers running the service. Not nodes. It does not care if you have one node, six nodes, or eleventy-twelve, some of which are dedicated to certain purposes, and/or dormant until needed.


Tags: bitbucket-data-center

server
Cannot commit app changes from ServiceNow to Bitbucket Cloud
Asked by Stefan:

Hello,

I'm using an Bitbucket App Password with all permissions checked to connect from ServiceNow to Bitbucket via HTTPS (Basic auth). The connection works fine but when i try to commit some changes i'm getting the following error:

"The repo cannot be accessed. Check URL, username, and password, and confirm user has read, write, and create branch access"

I checked my permissions on the repository and i have admin permissions so that should be oke.

Could you please help me out? Thank you in advance!

Kind Regards, Stefan


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

Since you have admin permissions to the repo, I would suggest checking its **Repository settings \> Branch permissions** (from the website) and see if there are any branch permissions that restrict certain users from pushing to certain branches.

Other than that, we would need some additional info to investigate this:

**1.** What operation is ServiceNow trying to perform?

Commit creation is something that happens locally in a clone of the repo, unless you are using our API to create a commit. Is the operation perhaps a git push of commits?

Are there any logs in ServiceNow that show what is the exact git command or API call that is executed?

**2.** If there is such a log, is there any additional output there from the command that is executed and fails?

**3.** The timestamp of such a (recent) event, so we can check if there is info about it in our logs

**4.** Whether authentication is done with your Bitbucket user account

If you can find this info, you can post it here (after sanitizing any private info, like usernames, repo names etc) so I can take a look.

I see that your Bitbucket Cloud account has access to a workspace on a paid billing plan, so if the issue occurs with a repo on that plan, you can alternatively raise a ticket with the support team to investigate this.

The support ticket will be visible only to you and Atlassian staff, so you can share any URLs without sanitizing them. 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.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Could not find "Boards" option for Trello inside bitbucket
Asked by sashoto-shapla:

I am trying to connect Trello with my bitbucket repo. I have properly configured Trello powe-rup and was expecting to see "Boards" option here. As shown in the blog post: [Say Trello to boards in Bitbucket Cloud](https://bitbucket.org/blog/say-trello-to-boards-in-bitbucket?).

What am I missing out here and how do I enable the board option?

![Screenshot 2022-06-23 at 6.33.27 PM.png](/t5/image/serverpage/image-id/203141iA8ED3EB9C686E346/image-dimensions/434x801?v=v2 "Screenshot 2022-06-23 at 6.33.27 PM.png")


Answers:
author: sashoto-shapla
body: Found out the cause, this feature is probably got *deprecated on June 8, 2022.*

comments: author: Olumide Olu-Oshadare
body: ...and that's the end of Solomon Grandy. Thanks, [@sashoto-shapla](/t5/user/viewprofilepage/user-id/4973142) I have spent more than 8hrs searching...


Tags: bitbucket-cloud

board

cloud

trello
wget on repository tag returning 404
Asked by aaron.mchugh:

I'm trying to deploy code to our staging environment as usual and the download file for the version is returning 404. I have seen the other posts around updating GoLang but I can't see anywhere in the project where we use GoLang.

![Screenshot 2022-06-23 at 10.54.03.png](/t5/image/serverpage/image-id/203111i10B11FA946E37964/image-size/large?v=v2&px=999 "Screenshot 2022-06-23 at 10.54.03.png")

Thanks for any help.


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

We have recently made a change where we return 404 instead of 403 code for unauthenticated users, which has caused an issue in downloading the archive from Bitbucket using **wget**.

The **wget** command always waits for the 403 challenge from the server before it sends the credentials to the server.   
However, with the recent changes, our server initially sends the 404 status to the client and **wget** doesn't send credentials later on.

We have two suggestions to work around this issue:

**1.** You can use the **--auth-no-challenge** flag in the **wget** command as follows:

```
wget --user=BitbucketUsername --password=AppPassword --auth-no-challenge https://bitbucket.org/Workspace-ID/Repo/get/master.tar.gz
```

**2.** Alternatively, you can download the file using curl:

```
curl -u BitbucketUsername:AppPassword https://bitbucket.org/Workspace-ID/Repo/master.tar.gz -o master.tar.gz
```

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Pipeline services ports customization
Asked by Federico Bo:

Hi everyone,  
I started some time ago defining some build steps into BB pipelines, I found many useful features, among them the definition of services.

<br />

I've tried a postgres and a rabbitmq image to test the application I'm working on and as far as I run the services with the default ports everything works smoothly.

<br />

Now I'm trying to define a service with a postgres container exposed on a port different from the default one.

```
definitions:
  services:
    postgres:
      image: postgres:14
    variables:
      POSTGRES_PASSWORD: some_pass
      POSTGRES_USER: some_user
    ports:
      "5433:5432"
```

This docker-like approach seems not to work, during the test steps the application is not able to reach the container.

Is there a way to achieve this without push/pull a custom image?

Thanks.

Best regards,

Federico


Answers:
author: Theodora Boudale
body: Hi Federico,

I'm afraid that we don't support port mapping.

However, it is possible to use the PGPORT environment variable here: <https://www.postgresql.org/docs/14/libpq-envars.html>  

You can define the service in the bitbucket-pipelines.yml file as follows:

```
definitions: 
  services: 
    postgres: 
      image: postgres:14
      environment:
        POSTGRES_PASSWORD: 'test'
        POSTGRES_DB: 'gstest'
        PGPORT: '8432'
```

Is this something that works for you?

Kind regards,  
Theodora

comments: author: Federico Bo
body: Hi Theodora,

thank you for you answer! Yes this fits the requirement, I didn't know there were that enviromnent variable for the postgres container.

i hope in future pipelines will support port mapping for services, could be a very useful feature!

Thanks again.

Best regards,

Federico


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

port

service
I'm not receiving bitbucket invitations on my company email
Asked by Ana Luiza Chagas de Sousa:

Hey!

My manager sent me an invitation to collaborate on a project but the invitation email doesn't arrive at all. he tried to resend the email but it didn't work either.

Could you please check this problem?


Answers:
author: Theodora Boudale
body: Hi [@Ana Luiza Chagas de Sousa](/t5/user/viewprofilepage/user-id/4972528),

I checked the email of your community account in our system and it is not in any of our suppression lists.

I also checked our email logs for any emails sent from Atlassian to the same email address, and I don't see any Bitbucket Cloud invitation emails sent during the last 7 days.

Could you please let me know:

**1.** Is the invitation sent to the same email as the email of your community account (the one you used to post this question)?  
Or is it sent to a different email address?

**2.** Does this concern Bitbucket Cloud or Bitbucket Server? If you are unsure you can ask one of your admins. Bitbucket Cloud URLs start with <https://bitbucket.org/>, while Bitbucket Server (self-hosted instance) uses a custom URL.

Kind regards,  
Theodora
remote url in Bitbucket server - what does scm represent, is it editable?
Asked by ??? ????:

Hi

I'm playing a little bit with the Bitbucket server, having a great time :)

I've created a project \& a repository, and the clone url is: <http://localhost:7990/scm/fir/first-repo.git>

fir is the project "code", first repo is the repo name, but what does "scm" represent?

In the past i saw remote urls (sourced from bb server), that does not include the scm prefix (i.e - remote url looks like that - <http://localhost:7990/fir/first-repo.git>).

Can someone point me to a relevant doc, or explain what does scm represent? If \& how Can I create a repo with other name than scm? If \& how can I create a repo with remote url that does not contain this extra identifier?

Edit

when cloning by ssh, the scm is not mentioned (remote url is ssh://git@localhost:7999/fir/first-repo.git).

Does it means that when cloning by https (HTTP(S) SCM hosting from the admin-\>server setting section?) a '/scm/' prefix is added?

10x very much


Answers:
author: ??? ????
body: when cloning by ssh, the scm is not mentioned (remote url is ssh://git@localhost:7999/fir/first-repo.git).

Does it means that when cloning by https (HTTP(S) SCM hosting from the admin-\>server setting section?) a '/scm/' prefix is added?

comments: author: Christian Glockner
body: Hi,

"scm" stands for "Source Code Management". You cannot change the URL, so for clones via HTTP(S) /scm will always be part of the URL.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

remote

server

source-control
List all non personal bitbucket repositories
Asked by Robert Nadon:

Hi all,

I am migrating bitbucket server to the cloud/SaaS and will only want to migrate the non personal / user repos.

How would I get that listing?

Thanks in Advance!


Answers:
author: Theodora Boudale
body: Hi Robert,

How are you planning to do the migration? Are you going to use the [Bitbucket Cloud Migration Assistant](https://marketplace.atlassian.com/apps/1226610/bitbucket-cloud-migration-assistant?tab=overview&hosting=server), or are you going to write a script for the migration?

The recommended way to migrate is by using the Bitbucket Cloud Migration Assistant plugin, as this way you can also migrate projects, pull requests, and users. Please note that this is available for Bitbucket server 7.0.0 and newer versions.

The plugin can only migrate non-personal repos, so you don't need to filter out any personal repos during the migration process.

You can also check the following documentation for more details:

* <https://support.atlassian.com/migration/docs/use-the-bitbucket-cloud-migration-assistant-to-migrate/>

If you still want to get that list it should be possible via our API. You can use the following endpoint to get all projects in the instance:

* <https://docs.atlassian.com/bitbucket-server/rest/7.17.0/bitbucket-rest.html#idp151>

When you have a list of projects, you can iterate them with the Project repository API to get a list of each repository in the projects:

* <https://docs.atlassian.com/bitbucket-server/rest/7.17.0/bitbucket-rest.html#idp177>

Personal repos do not belong to standard Bitbucket projects. They are organized under internal projects where the project key is a tilde char (\~) followed by the username (e.g. \~user1), so you can exclude these from your calls.

Please note that the documentation links I shared are for the API of Bitbucket Server 7.17.0. These APIs can be different from version to version, so if you need the documentation for a specific version, please let me know what version you are using and I can find and share the relevant links.

Kind regards,  
Theodora


Tags: bitbucket-cloud

bitbucket-server
Commits notifications
Asked by Jethro Hill:

I have notifications working well for the BitBucket commits.

Is it possible to send these notifications to another Dev manager that is not the owner. IE another or multiple email addresses..?


Answers:
author: Ben
body: Hey Jethro,

If the user navigates to Personal Settings \> Notifications \> Repositories they need to first make sure that they are watching the repository in question.

Once they are watching the repository, they can then further finetune the notifications that they receive by accessing the repository source \> ... button and selecting "Manage Notifications" from the resulting dropdown menu.  
Here they can tick the "Commits" option to receive email notifications related to new commits on the repo.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

email
Missing pane in Sourcetree updated version for Mac
Asked by han_sh:

In previous versions on Sourcetree, there was a pane/window where i could view the entire commit message and other commit details (esp. when i made a commit with detailed notes). I just updated Sourcetree, and it's missing.

I know i can use the Terminal to run "git log" or something --- but there must be a way to re-enable the pane? I can't see anything in Preferences, or under the Window menu. Bit of a bug? Or am i being daft?

I have attached 2 images--- one from Atlassian's website which shows what the interface ought to look like (and i've made a crude circle around the pane which used to be there); and another image which shows what my interface looks like after the update..

![Past.png](/t5/image/serverpage/image-id/985i80417863DA635F8A/image-size/large?v=v2&px=999 "Past.png")![Present.png](/t5/image/serverpage/image-id/986iA4F6202AA15C616F/image-size/large?v=v2&px=999 "Present.png")


Answers:
author: Ana Retamal
body: Hi Han! I've installed SourceTree 2.3.2 in my machine and I can still see the pane. We've seen other similar cases where after clearing the preferences the users could see that pane again. You can follow the steps at [How to wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).

Let me know if you can see the pane now.

Cheers :)

Ana

comments: author: han_sh
body: it does fix things; thank you ana :)

side-note: crucifying my preferences isn't my favourite way to resurrect a pane after three days!


author: bgannin
body: If it recurs we'll point you to what setting\[s\] to delete specifically.

Brian Ganninger  
Senior Mac Developer, SourceTree


author: Ana Retamal
body: Hi Han, what version are you using now? I'm using SourceTree 2.5 on MacOS and I still have that pane. Let me know!

Regards,

Ana

comments: author: han_sh
body: v2.3.2 on OS Sierra.

may we have an option in the View menu that we can toggle to hide/show this pane (sample image, attached)?; else, is there some sort of CSS document where i could manually change it's height/min-height to some non-zero value?

![Screen-Shot-2017-05-08-at-09.05.59.png](https://community.atlassian.com/t5/image/serverpage/image-id/992i960354E1A456F6EF/image-size/large?v=v2&px=999 "Screen-Shot-2017-05-08-at-09.05.59.png")
Failed to pass install screen on OS X
Asked by Mark Rubenchik:

I had SourceTree working and running correctly, but after reboot it went into installation mode and on first page, that is called "Install" and does not enable "Continue" button after I agreed to the terms and conditions making application unusable. I tryed removing SourceTree folder from \~/Library/Application Support/, but didn't help. Tryed to install earlier versions, same story. OS X is 10.12.4.

Screenshot:

![SourceTree_Issue.jpeg](/t5/image/serverpage/image-id/972i89E3BAEF29330073/image-size/large?v=v2&px=999 "SourceTree_Issue.jpeg")


Answers:
author: Ana Retamal
body: Hi Mark, can you try resetting the preferences and see if this error goes away? The instructions can be found at [How to wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html). Once you do that, you can download SourceTree from [our website](https://www.sourcetreeapp.com/) and install it again.

If this doesn't work, can you provide any logs? On Mac, the SourceTree logs can be found by opening the Console application and searching for entries related to "SourceTree".

Hope this helps!

Ana

comments: author: Mark Rubenchik
body: Thank you so much for your help! I found a solution. I'm on the latest Mac and deleted \~/Library/Preferences/com.torusknot.SourceTreeNotMAS.plist, nothing else helped . That solved the issue. Probably you need to update step 4 in a page you provided.


author: Ana Retamal
body: Hi again Mark, I'm so happy this is working for you now :) I've added your feedback in a comment, so we can verify if that would work for all Mac versions before updating the page. Thanks for sharing!

Have a nice day,

Ana


Tags: install
Advanced settings per repository to have new branch dialog pre-filled with branch name
Asked by laurent:

Currently in the Repository Settings / Advanced you can define Commit text links and link some recognized text to for example a JIRA issue.

Often, when you have such rule in place of naming a commit using a JIRA ticket number, you also have a rule to name your new branch. For example new feature branch should named feature/JIRA-xyz-whatever where JIRA represents the project prefix and xyz the jira issue number.

It would be great to be able to configure per repository a branch name prefix which would be used when a user create a new branch, so that we save some key stroke each time

![SourceTree_2017-05-04_14-50-46.png](/t5/image/serverpage/image-id/910i222C5A09902AED60/image-size/large?v=v2&px=999 "SourceTree_2017-05-04_14-50-46.png")


Answers:
author: Gianluigi Conti
body: It would be great
SourceTree: fonts are too small
Asked by gerryscat:

Made the mistake of getting a 4K monitor.

Anyway, now I have to go into every program I have and try to make the fonts bigger, but I can't find the settings for SourceTree.


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

what is your OS? It seems that this feature has been added for MAC (<https://jira.atlassian.com/browse/SRCTREE-1286>)

Fabio


Tags: font
Where are the SourceTree checkboxes
Asked by iongion:

Using version 2.0.19.1, on Windows at work and home. At work I see the commit checkboxes, at home I cannot, why is that ?

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


Answers:
author: Agustin Martin
body: I had not noticed it, but you're right, I do not see the checkboxes either.

Barring a bug, maybe they were removed to streamline the UI? You can still multi-select the files you want and stage the selection, right?

comments: author: iongion
body: But they are visible, at work, on a different computer

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

Same version **2.0.19.1**


author: iongion
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/876iDDD62E2653EA66F7/image-size/large?v=v2&px=999 "image.png")