youngmon/atlassian-qna huggingface dataset:
How do I make a Bamboo build prefer its last build agent?
Asked by Henrik:

We have a Bamboo setup with about 30 build agents, and I have an incremental Gradle build. An incremental build benefits greatly from being run on the same agent every time. Is it possible to have make my build prefer its last build agent?

Workarounds:

(1) Create a Requirement so that my build only runs on a specific single agent. But that only works so far: Other builds will start on that agent, and my build will have to wait for those to finish.

(2) Create a Requirement so that my build only runs on a small set of agents. I will still lose a lot of the benefits of the incremental builds.

(3) Reserve a agent for my build only. My operations dept doesn't want to do this, as the agent will stay idle a lot.

<br />

So that leaves my question: is there a way for my build to prefer its last build agent, but switch to a different one if the last agent is busy?


Answers:
author: Henrik
body: By the way, is it possible to create a "matches" requirement? All the agents have their own requirement keys: agent01.example.com, agent02.example.com, ... Is it possible to create a requirement that matches agent0\[12\].example.com? Or is it only possible to match on key content?

comments: author: Krystian Brazulewicz
body: We do not provide "matches" requirement. One more thing: there's "Agent dedication" feature in Bamboo 5.7. It allows you to dedicate given agent to running certain plans/jobs. Maybe this can help with your problem.


author: Krystian Brazulewicz
body: We do not provide such functionality ATM. Agent - job matching is purely based on capabilities/requirements match.


Tags: bamboo-administration

build-agent

sticky
Does excluding changesets support negative regexes?
Asked by Odin Odin:

'm looking to only trigger builds with a certain commit text through the "Exclude changesets" option. However, it doesn't look like Bamboo supports negative regular expressions. Is this the case?

My regex is \^(?!\[some-text\] some other text).\*\\n


Answers:
author: Sergey Podobry _Stellarity Software_
body: Try without \\n.


author: Odin Odin
body: Well, unfortunately, it does not work. The \\n comes from this answer: <https://answers.atlassian.com/questions/60533/does-excluding-changesets-to-avoid-starting-the-build-work-for-a-git-repository>


author: Sergey Podobry _Stellarity Software_
body: Looks ok. Are you sure you need \\n at the end?


author: Odin Odin
body: Sorry, the regex was \^(?!\\\[some-text\\\] some other text).\*\\n


author: Sergey Podobry _Stellarity Software_
body: Did you use square brackets for 'some-text'?
realEstate-newWebsite_v2 remote: Repository is over the size limit (4 GB) and will not accept furthe
Asked by soma rani:

realEstate-newWebsite_v2  
remote: Repository is over the size limit (4 GB) and will not accept further additions.

need help me


Answers:
author: Patrik S
body: Hello [@soma rani](/t5/user/viewprofilepage/user-id/4915596) ,

Welcome to Atlassian Community!

I've noticed the repository you mentioned is part of a Standard plan and you have already created an internal ticket with us related to the same issue. Checking on the internal ticket it seems the issue was resolved after one of our support engineers ran a git Garbage Collection in your repository.

In case you have any further questions related to this topic, let me know!

Thank you, [@soma rani](/t5/user/viewprofilepage/user-id/4915596) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Repository all dissapeared!
Asked by Ravin Sharma:

I have a bunch repository in bitbucket. Its been a while I logged in to my bitbucket accounts. Because I had multiple account, I couldn't recall which account I had the repos. But now when I logged in to all my accounts to check the repos, all the repos have disappeared!! Including the workspace I created in one of the account.  

Please help, I dont know why is this happening.


Answers:
author: Theodora Boudale
body: Hi Ravin,

I'm afraid that we cannot disclose emails of Bitbucket Cloud accounts due to our privacy policy.

I would suggest trying to log in to <https://bitbucket.org/> with any of email addresses you own and then check if that gives you access to the account you are looking for.

Please note that login is only possible with an account's ++primary email address++ (and not with any of the email aliases).  
If you get asked to create a username when you try to log in with a certain email, this means that there is no account with that email as the primary one, so you can skip the process for that email.

After you log in to an account, you can select the avatar \> **All workspaces** in order to view all the workspaces this account has access to.

If you don't remember what password you used, you can request a password reset email for each email address via this link <https://id.atlassian.com/login/resetpassword>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Troubling making call to bitbucket via postman using APP Password
Asked by Kelly:

Ive created a APP Password in Bitbucket and am attempting to make the below call using POSTMAN.

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get>

In postman Ive set it to use BASIC AUTH where the username is my regular email username and the password is the generated APP Password.

When it hit SEND, i get the below response:

```
Bitbucket Cloud recently stopped supporting account passwords for API authentication.
See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
App passwords are recommended for most use cases and can be created in your Personal settings:
https://bitbucket.org/account/settings/app-passwords/
For more details on API authentication methods see our documentation:
https://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication
```

What am i doing wrong?

many thanks!


Answers:
author: Patrik S
body: Hello [@Kelly](/t5/user/viewprofilepage/user-id/4901726) ,

Welcome to Atlassian Community!

From your description you are using your account's e-mail address as the username and I think this is the issue here.

To authenticate your calls to Bitbucket API using basic auth you need to provide your bitbucket username, and not e-mail address. You can find the bitbucket username of your account going to your account's personal settings (<https://bitbucket.org/account/settings/>), and looking for the field **Username** under Account Settings.

Then, you can use the bibucket username along with an [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) as your credentials for authenticating the request to Bitbucket API.

Hope that helps! Let me know if you have any question.

Thank you [@Kelly](/t5/user/viewprofilepage/user-id/4901726) .

Kind regards,

Patrik S.


Tags: bitbucket-cloud

cloud

rest-api
Why can't I clone repos under workspaces I am an admin to?
Asked by ReadingRacerTechnologyFoundation:

When I try to clone them it asks for a password. my account password doesn't work. I've also tried setting up an app password and that doesn't work.

I also can't see any of these repos under remotes in sourcetree.

This was working a last week. Now its not and I haven't changed anything.


Answers:
author: Mark C
body: Hi [@ReadingRacerTechnologyFoundation](/t5/user/viewprofilepage/user-id/301378)

Thank you for reaching out to the community.

It's possible that your local credential is still picking up your old password.  
For this, would it be possible for you to clear your local stored credentials related to Bitbucket.org?  
* For **Windows**: Navigate to Credential Manager and clear stored credentials related to Bitbucket Cloud.
* For **Mac OS X**: Navigate to Keychain Access and clear stored credentials related to Bitbucket Cloud

Once done, try to do Git operations again authenticating to Bitbucket.org using your [App password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/).

You can also check the following links that might help:

* <https://community.atlassian.com/t5/Bitbucket-articles/Announcement-Bitbucket-Cloud-account-password-usage-for-Git-over/ba-p/1948231>
* <https://community.atlassian.com/t5/Sourcetree-articles/Bug-Fix-Sourcetree-for-Windows-authentication-error-when/ba-p/1965968>

Hope it helps and let me know how it goes.

Regards,  
Mark C

comments: author: ReadingRacerTechnologyFoundation
body: This didn't seem to work. I tried reinstalling source tree, deleting everything from the appdata folders, and switching oAuth and I still can't see the remotes in source tree.


author: ReadingRacerTechnologyFoundation
body: It looks like this fixed it. I was able to clone by going to bitbucket and selecting clone. But it still won't let me view the remotes.


Tags: bitbucket-cloud

cloud

sourcetree
Reporting spam comments in Bitbucket snippets
Asked by Pontus Ullgren:

I have a bitbucket snippet in which a user has posted a comment with spam.  
There does not seem to be anyway to report spam comments or to delete it.

Is there anyway/anywhere I can report this ?


Answers:
author: Mark C
body: Hi [@Pontus Ullgren](/t5/user/viewprofilepage/user-id/2110168)

Thank you for reaching out to the community.

As the owner of the snippet, would it be possible for you to check if you can see the "Delete" button below the comment? (Similar to the below screenshot)  
![snippet_delete_comment.png](https://community.atlassian.com/t5/image/serverpage/image-id/196581i7A092954332D304E/image-dimensions/345x160?v=v2 "snippet_delete_comment.png")

Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

snippet
in smart mirroring how the data is transfer from mirror to primary data centre? which technology use
Asked by Pratik Bhute:

In smart mirroring how the primary data is transferred to the mirror which technology is used to transfer the data.

As I have to transfer my cloud data to the smart mirror so how will I do that?


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

The tech underlying smart mirroring is irrelevant to the end user. Why do you think you want to know what the tech is?

To transfer your data to the smart mirror, you just transfer your data to your Bitbucket. The mirror will then do its job of mirroring it. For a transfer, you don't care whether the target is a mirror or the primary server


Tags: bitbucket-server

server
How can I make a repository public but with read/clone only permissions in Bitbucket ?
Asked by Valeria Ivanova:

Hello,

I would like to set a repository to be accessible by anyone in the world (public) but would like to make it read/clone only. Is this possible? How can I do that?

Thank you very much!

Valeria


Answers:
author: Theodora Boudale
body: Hi Valeria,

You can make a repository public from **Repository settings** on Bitbucket website, you will need to deselect the option "This is a private repository".

All public Bitbucket Cloud repositories can be viewed and cloned by anyone. The only ones who can push to a public repo are users that have at least write access to the repo.

Please feel free to let me know if you have any additional questions about this.

Kind regards,  
Theodora

comments: author: Valeria Ivanova
body: Hello [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) ,

Thank you so much for your prompt response. To make sure that I understood correctly, by default all public repositories are read and cloned only, but only the registered users with write permissions will be able to push to the public repo? correct?

Thank you once again,

Valeria


author: Theodora Boudale
body: Hi Valeria,

Yes, that is correct.

One additional thing: users ++without write access++ will also be able to create a fork of the public repo under their workspace, push changes to their fork (not to your public repo), and then create a pull request from the fork to your public repo.

Users with write/admin access to the public repo can then review the pull request and either merge or decline.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Feature: Add configuration variables to Heroku Deploy pipeline
Asked by Kevin Shelley:

I would like the ability to add configuration variables to the Heroku Deploy script, which would allow me to do things like update the app version number or dynamically change the environment based on results from an API call.

Something like:

```
- step:
    name: Deploy to production
    deployment: production
    caches:
      - pip
    script:
      - pipe: atlassian/heroku-deploy:1.2.1
        variables:
          HEROKU_API_KEY: $HEROKU_API_KEY
          HEROKU_APP_NAME: $HEROKU_APP_NAME
          ZIP_FILE: app-name.tar.gz
          WAIT: "true"
          CONFIG:
            APP_VERSION: 2.0.$BITBUCKET_BUILD_NUMBER
```

Edit: To clarify, I mean this would update the Config Vars for this app on Heroku.


Answers:
author: Mark C
body: Hi [@Kevin Shelley](/t5/user/viewprofilepage/user-id/4608693)

Thank you for reaching out to the community.

I understand that you'd like to add a configuration variable to the Heroku Deploy Pipes script ([atlassian/heroku-deploy](https://bitbucket.org/atlassian/heroku-deploy/src/master/)) specifically overriding the App version number.

Apart from overriding the App version number, I'd just like to kindly ask what other variables you'd like to override or what other dynamic change you'd like to achieve?

This is for accurately creating a feature request regarding the Pipes script.

Thanks and looking forward to your response.

Regards,  
Mark C

comments: author: Kevin Shelley
body: [@Mark C](/t5/user/viewprofilepage/user-id/1210823) honestly any config var in general. Off the top of my head I'd like the app version to change, but would love the flexibility to change any of the config vars for an app so I have more control in Bitbucket and maybe need less access to Heroku going forward:

![Screen Shot 2022-05-11 at 15.37.54.png](https://community.atlassian.com/t5/image/serverpage/image-id/196950iF039251DD5C8666C/image-size/large?v=v2&px=999 "Screen Shot 2022-05-11 at 15.37.54.png")


author: Mark C
body: Hi [@Kevin Shelley](/t5/user/viewprofilepage/user-id/4608693)

Thanks for that information.  
I went ahead and created a feature request for it that can be located through this link. - <https://jira.atlassian.com/browse/BCLOUD-21895>  

You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud.  

![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Hope it helps and do let me know if you have further questions that I can help with.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud

heroku
Lost emergency key
Asked by yang:

hi

my Jira's account expired and need to login again. and enabled the two factor authentication. But I lost my emergency key and phone, so I can't login.

I can't recover my account now, please help me recover my account. my account is yang.liu@easystack.cn


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

I'm afraid Atlassian can't help you with a lost Google account. It sounds like you probably need to look at recovering your Google account - <https://support.google.com/accounts/answer/185834?hl=en> is a starting point I think

comments: author: yang
body: Sorry, I made a mistake in the description, not google authentication, but enabled the two factor authentication with jira account. I refer to <https://support.atlassian.com/atlassian-account/docs/login-issues-related-to-two-step-verification/#Your-emergency-recovery-> key-doesn--x27-t-work-or-you--x27-ve-lost-it , but I don't see "Send recovery email", Please help send?


author: yang
body: my friend had the same problem and he said you can send an email for recovery and after 24 hours I will receive the email and perform the recovery


Tags: bitbucket-cloud

cloud
Ubuntu 20.04, fatal: unable to access 'https://bitbucket.org/*.git/': gnutls_handshake() failed:
Asked by Pritam Kumar Satapathy:

Hi Team,

I am facing an issue in Ubuntu 20.04 while cloning from bitbucket.

The error is -   
fatal: unable to access '[https://bitbucket.org/\*.git/](https://bitbucket.org/*.git/)': gnutls_handshake() failed: An unexpected TLS packet was received

I have gone through earlier resolution available but those are for lower version of git and lower version of Ubuntu i.e. 14.04 or 16.

Need an response on the same. Thanking you!!


Answers:
author: Mark C
body: Hi [@Pritam Kumar Satapathy](/t5/user/viewprofilepage/user-id/4911063)

Welcome to the community.

Based on the error message you've shared, it seems to be some kind of network or environment issue (e.g. Curl, Git versions etc.).  
I looked at it and found some of the links below that might be of help:

* If you're behind a proxy, you can check this link: <https://stackoverflow.com/questions/51088635/git-clone-error-gnutls-handshake-failed-an-unexpected-tls-packet-was-receive>
* You can also check this link that might help - <https://community.atlassian.com/t5/Bitbucket-questions/Cannot-pull-from-bitbucket-using-https-on-ubuntu-14-04/qaq-p/1466826helops> a

Hope it helps and let me know how it goes.

Regards,  
Mark C

comments: author: Pritam Kumar Satapathy
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823)

Thanks for the revert.

My none of the servers are behind any proxy. They are all accessible over VPN or Office network including <https://bitbucket.org/>.

We got a work around, where we could re-compiling git with openssl instead of gnutls.

The complete details available here - <https://github.com/paul-nelson-baker/git-openssl-shellscript>.

This is easy and helped a lot. Hope this would help someone.


Tags: bitbucket-cloud

cloud
aws-ecs-deploy & aws-ecr-push-image pipes can't work together
Asked by phamkhacquyen:

Hi everyone,

Today i found a weird bug when using **aws-ecs-deploy** and **aws-ecr-push-image** pipes together.

I don't know why **aws-ecs-deploy** try to pull **bitbucketpipelines/aws-ecr-push-image:1.5.0 image** that used by **aws-ecr-push-image** and make my pipeline is failed.

![Screen Shot 2022-05-06 at 12.13.58.png](https://community.atlassian.com/t5/image/serverpage/image-id/196140i0FBCBCB663312453/image-size/large?v=v2&px=999 "Screen Shot 2022-05-06 at 12.13.58.png")

![Screen Shot 2022-05-06 at 12.13.19.png](https://community.atlassian.com/t5/image/serverpage/image-id/196139iF99B54EB14A9049D/image-size/large?v=v2&px=999 "Screen Shot 2022-05-06 at 12.13.19.png")


Answers:
author: o_kyrdan
body: Hi [@phamkhacquyen](/t5/user/viewprofilepage/user-id/3557738)

Thank you for your question!

It would be nice if you provide us with more details about your pipeline configuration **bitbucket-pipelines.yml**and complete text log output of your error.

Best regards,  
Oleksandr Kyrdan


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
My bitbucket login is not working error in this message - We couldn?t log you in
Asked by Babu K:

when i login bitbucket account. i shown this message below:  

We couldn't log you in {#toc-hId--555713989}
--------------------------------------------

You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again.  
[Try logging in again](https://id.atlassian.com/login?application=bitbucket&continue=https%3A%2F%2Fbitbucket.org%2Faccount%2Fsignin%2F%3FredirectCount%3D3%26next%3D%252F)

It happen every time. I couldn't login. It will happens to only bitbucket account.

Below the login details:

User id: \<email_removed\>


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

Your Bitbucket Cloud account was inactive, so I went ahead and reactivated it.

Could you please try to log in to Bitbucket now and let me know how it goes?

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

Kind regards,  
Theodora

comments: author: Babu K
body: Now it's working thanks


author: Theodora Boudale
body: You are very welcome [@Babu K](/t5/user/viewprofilepage/user-id/4910915), please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: Could you try this with a different browser, one with no extensions or special configurations added?


Tags: bitbucket-cloud

cloud
Disable HTTP access tokens for projects or repositories
Asked by Markus Sch?lzel:

Hi!

With 7.21, HTTP access tokens for projects or repositories are now also included in the current LTS release of Bitbucket Data Center and Server.

Is there a way to disable them?

We can't allow anonymous (non-user-bound) tokens for the access of our code.  
The token looks like it is easily shareable and could be abused by users who wouldn't be able to access the repo with their user account.

The token looks like it could be easily shared with (and abused by) users who would otherwise not have access.

Kind regards  
Markus


Answers:
author: Markus Sch?lzel
body: It can be disabled by setting feature.project.repo.access.tokens=false in bitbucket.properties:  
<https://confluence.atlassian.com/bitbucketserver0721/configuration-properties-1115666478.html>


Tags: access

bitbucket-administration

bitbucket-server

data-center

security

server
Stopped receiving PR email notifications
Asked by Umesh Swamy:

I had posted this <https://community.atlassian.com/t5/Bitbucket-questions/Stopped-receiving-PR-email-notifications/qaq-p/1986622> in March about an issue with PR notification emails. It was resolved by removing my email address from the suppression list.

It looks like I'm experiencing the same issue again. Can you please check if my email is on the suppression list?


Answers:
author: Theodora Boudale
body: Hi [@Umesh Swamy](/t5/user/viewprofilepage/user-id/4846355),

Your email address was in one of our suppression lists with the message:

```
550: 550 5.4.1 Recipient address rejected: Access denied.
```

We attempted to send an email to your email address and received a hard bounce response from your mail server indicating permanent failure, and in this case, the email is placed in a suppression list.

I went ahead and removed your email from the suppression list, so you should be able to receive PR notifications now.

Please feel free to let me know if the issue is resolved now and if you need anything further.

Kind regards,  
Theodora

comments: author: Umesh Swamy
body: It looks like the issue is resolved. I'm receiving PR notifications now. Thank you.


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!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud