youngmon/atlassian-qna huggingface dataset:
How can I configure bamboo such that server restart doesn't stop builds on remote agents
Asked by Peter Kahn:

Is there a way to configure a backup or failover bamboo server so I can restart the primary without terminating builds on remote agents? I see bamboo uses ActiveMQ and I though that supports clustering and high availability.

Can I setup a primary bamboo server and a 2ndry which both point to the same database and then configure failover from primary to 2ndry? This would allow me to perform maintenance where I shutdown primary, made my changes, restarted and then repeated on 2ndry without terminating my lengthy builds running on remote agents.

Please let me know if there's a doc that describes how to to do this or if you know it to be unsupported or impossible.

Thanks

Peter


Answers:
author: Peter Kahn
body: So, I couldn't run two server instances pointing to one DB and set one as the fail over?


author: Przemek Bruski
body: It's not possible at the moment.We are thinking about doing this at some point - currently internal Bamboo structures do not survive restart.

comments: author: Peter Kahn
body: So, I couldn't run two server instances pointing to one DB and set one as the fail over?


Tags: bamboo-administration

failover

high-availability
what is meant by artifact release management capability in Artifactory in Bamboo
Asked by Manikandan Thiagarajan:

what is meant by artifact release management capability in Artifactory in Bamboo?

what are the advantages and purpose?

how could i do that in bamboo?


Answers:
author: Itamar Berman-Eshel
body: Hi Manikandan,Artifactory's Release management in Bamboo enable you to:1. Stage and promote your builds from snapshots to releases.2. Create a VCS tag for the release.3. Change values for the release and next development version.4. Promote your artifacts between repositories (which is ultra fast since Artifactory uses checksum storage).You can read more about how to enable release management in bamboo with each of the build tools here:<http://www.jfrog.com/confluence/display/RTF/Bamboo+Artifactory+Plugin+-+Release+Management>Itamar.


author: Sultan Maiyaki
body: Hi Manikandan,

I have no played around with the future yet but it seems this new feature is documented here: <http://www.jfrog.com/confluence/display/RTF/Bamboo+Artifactory+Plugin+-+Release+Management>
Does bamboo uses different agent between stages?
Asked by Ling Lau:

I store my artifact to share between stages in the local disk. This week, my bamboo setup is running the stages in the same plan using two different agent. I wonder if i had changed soemthing that caused this.


Answers:
author: Daniel Wester
body: Each job can use a different agent depending on the job requirements( https://confluence.atlassian.com/display/BAMBOO/Configuring+a+job's+requirements ). You might either look into Artifact sharing( <https://confluence.atlassian.com/display/BAMBOO/Configuring+artifact+sharing+between+jobs> ) or set a requirement on your agent to target your job to a specific agent (wouldn't recommend this since this does limit you -- and who wants to be limited? ;) ).


Tags: bamboo-administration
jfrog: curl is missing
Asked by Andrew Zyman:

hello,

how do i go about adding "curl" to the pipeline? I think the image (atlassian/pipelines-awscli) doesn't have the curl installed.

Is there a better way of building a docker and pushing it into Jfrog repo?

Thank you

++Error:++  

```
Build setup19s
```

    ?pipe: jfrog/jfrog-setup-cli:1.0.0
    ?source ./jfrog-setup-cli.sh
    ?+ source ./jfrog-setup-cli.sh

    bash: curl: command not found

    JFrog CLI downloaded failed.

++minimum pipelines code:++

```
image:
   name: atlassian/pipelines-awscli
definitions:
    push: &push
    name: Push to Jfrog
    script:
      - pipe: jfrog/jfrog-setup-cli:1.0.0
      - source ./jfrog-setup-cli.sh
      - jfrog rt ping
pipelines:
branches:
master:
- step: *push
```


Answers:
author: Andrew Zyman
body: adding :

```
script:
- apk add curl
```

does it


Tags: bitbucket-cloud

cloud

jfrog
Why a workspace member can access one repo bot not another?
Asked by Mirko Tebaldi:

We have a workspace with 2 projects

We invited as developer a new coworker. He accepted.

He clones succesfully the first project.

The first project has a dependency to the 2nd project in the same workspace in composer.json

When doing composer install, composer complains because user has no access rights to 2nd repository.

Trying to do a normal git clone it works.

What could be happening!?


Answers:
author: Caroline R
body: Hi, [@Mirko Tebaldi](/t5/user/viewprofilepage/user-id/2783295), thank you for reaching out to Atlassian Community.

Since you mentioned the dev was able to clone this repo, I understand that they have access to both repositories, is that correct?

If that's the case, could you please confirm what URL they have for the second repo in composer configuration (is it HTTPS or SSH)? I'm not very familiar with composer, so can you confirm if they have set up authentication for these repos and how?

Please feel free to share any additional information that might help us in this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Cannot add new repository variable
Asked by Bobu Putheeckal:

I am here, i am not able to add a new variable here. The screen appears to be frozen.

There are other repos, where I have added repo variables, i am able to add and edit. But on this repo, i cannot

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


Answers:
author: Bobu Putheeckal
body: It is fixed, it was because i was not an admin on this repo


Tags: bitbucket-cloud

cloud

repository
Bitbucket cloud blocking by ip address?
Asked by Gabriel Maranon:

I just made a git pull and git push to my bitbucket public repository through VPN but I can't do a pull or push through my local internet connection? Is there any restriction by IP Address?


Answers:
author: Caroline R
body: Hi, Gabriel.

I saw that you created a ticket with our support related to the same question, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline


author: Pramodh M
body: Hi [@Gabriel Maranon](/t5/user/viewprofilepage/user-id/4703416)

Welcome to the Atlassian Community!!

Maybe your admin has set Access Control where you can only push or pull the repo contents when you are connected to the Internet

Bitbucket has an IP Whitelisting feature to restrict the activities carried out in the workspace only limited to a network.

Continue working while you are connected to VPN

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

Thanks,  
Pramodh


Tags: bitbucket-cloud

cloud
Requesting GC on repo.
Asked by zachegwood:

I think this is the correct place to request garbage collection on my repo. I have a small UE4 project that is about 2x-4x as large as it is on my local machine, with only 1 branch in it.

Please let me know if I did something silly that caused this in the first place.


Answers:
author: Caroline R
body: Hi, [@zachegwood](/t5/user/viewprofilepage/user-id/4703601)! Welcome to the community!

Could you please tell me the last 3 letters of the name of this repository, so that I can identify it in your workspace? I could run a GC on the remote repository to remove any dangling commits there, this might reduce the repo size.

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: zachegwood
body: It's the latest one over been working on. The ending is either eAR or rAR


author: zachegwood
body: This problem is still going on. The repo is over 5GB, but the files on my computer are only 1.76GB. I can't push any new commits because of this issue.


author: Caroline R
body: Hi, [@zachegwood](/t5/user/viewprofilepage/user-id/4703601).

Thanks for the additional information.

We ran a GC against your repo, but the size remains 5 GB. Could you please run the following command and share the output with us?

```
git count-objects -vH
```

I have temporarily increased your repository size, so you can push your changes to Bitbucket. Please let me know when you do that, so I can run a GC again to see if the size is updated.

Kind regards,  
Caroline


author: zachegwood
body: Thank you.  
I've now pushed my changes.  
Here's the readout from my local run of count-objects BEFORE the push:  

count: 79  
size: 2.69 GiB  
in-pack: 203  
packs: 1  
size-pack: 3.71 GiB  
prune-packable: 0  
garbage: 0  
size-garbage: 0 bytes  

And here's the readout AFTER the push:  

count: 104  
size: 3.38 GiB  
in-pack: 203  
packs: 1  
size-pack: 3.71 GiB  
prune-packable: 0  
garbage: 0  
size-garbage: 0 bytes  

I only added a 3KB CSV file since my last local commit.  


author: zachegwood
body: [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)Is there any resolution to this? The problem is still there and getting worse each time I push a small commit.


author: Caroline R
body: Hi, [@zachegwood](/t5/user/viewprofilepage/user-id/4703601).

I ran another GC against your repository, however, the size remains the same. In this case, I have created an internal ticket for you using the email of your community account, so we can further investigate what is causing this increase in size in this repository.

You should have received an email with a link to the support ticket. Just in case you haven't received it, please feel free to let me know and I can post the ticket URL here. The ticket will be visible only to you and Atlassian staff, no one else can view its contents even if they have the URL.

Please let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
GC on Remote repo
Asked by Tanner Stelmach:

Dear Bitbucket support team,

We used BFG to migrate our repository to LFS. After pushing the cleaned repo back per the BFG cleanup [instructions,](https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/) this actually increased the size of the repository by \~1GB. Locally, the repository is only 1.62 GB whereas the remote repo is 3.18 GB. Could you please run a git gc on our remote repository?

Thanks,

Tanner


Answers:
author: Caroline R
body: Hi, Tanner! Welcome to the community!

I ran the GC against your repository and managed to reduce its size. Just to give you some context around the reason your repository increased its size, when you pushed the changes with BFG, the remote repository still had the old references as well. So the GC is required on the remote repository to clean up any old references you have removed.

I also would like to share with you that we have a feature request to allow users to mark repositories for git GC, as you can check here:

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

Please consider adding yourself as a watcher to receive the updates as we make progress with this. If you are not familiar with our Feature Request Policy, you can read more about it [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

Feel free to share any additional questions or concerns regarding this case.

Kind regards,  
Caroline

comments: author: Tanner Stelmach
body: Hi Caroline, thank you for your assistance and for the fast turnaround time! We are glad this issue has been resolved and appreciate the tip on marking the repo for gc for future use.


author: Caroline R
body: Hi, Tanner!

I'm glad to help! Please feel free to create new questions in our community if needed.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
How to invite Atlassian user to Bitbucket Cloud via API?
Asked by Micha? ??tkowski:

Hi guys,

While automating user creation in the Atlassian Cloud, I stumbled upon a problem.  
Creating an Atlassian account for a user works good. The user is able to access Jira and Confluence.

However, I do not know how to invite a user to Bitbucket **via API**. What I want to do is add the user to a workspace and some groups within it. I presumed that if I added a user to a group, then they would gain access to the workspace as well.

That is why I tried to use groups endpoint ([https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/).](https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/)

However, it requires a UUID. And I do not know how I can get that, if the user is not invited to the Bitbucket cloud yet.

Is there any way to do that via API? Thanks in advance for all the suggestions


Answers:
author: Caroline R
body: Hi, [@Micha? ??tkowski](/t5/user/viewprofilepage/user-id/4702872)! Welcome to the community!

In order to find the UUI of a member of your workspace, you can run the following API call:

```
$ curl -X GET -u <username>:<AppPassword> "https://api.bitbucket.org/2.0/workspaces/<workspace>/members?fields=values.user.display_name,values.user.uuid"
```

You can also replace the **UUID** for the **email-id**:

     curl --request PUT --user username:AppPassword --header "Content-Type: application/json" https://api.bitbucket.org/1.0/groups/{workspace-id}/{group-slug}/members/{email-id} --data '{}'    

You just need to replace the **workspace ID** , the corresponding **group slug** , and the **email id** of the user you would like to add to this group.

However, if these users **do not have a Bitbucket account yet** , you will receive an error message saying "*No user with validated email address*".

So, if you want to add users who do not have a Bitbucket account yet, we recommend that you use the following API call:

     curl  -X PUT -u username:password https://api.bitbucket.org/1.0/users/{workspace_ID}/invitations \  --header "Content-Type: application/json" \  --data '{"email":"EMAIL ID","group_slug":"my-group"}'

I hope this helps, but do let me know if you have any questions.

Kind regards,  
Caroline

comments: author: Micha? ??tkowski
body: Caroline, thank you so much for your detailed explanation :)

Have a nice day!

Kind regards,

Micha?


author: Caroline R
body: Hi, Micha?!

I'm glad to help! Please don't hesitate to create new questions in our community if needed.

Have a nice day too!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

group

rest-api
New user did not receive invitation email
Asked by Karen Wu:

Hi, support,

Can you assist with an issue I'm having where our new joiner did not receive an invitation email?

I have checked previous similar posts, looks like it might went into black list. Wonder if you could clear that in my domain?

Thanks in advance


Answers:
author: Theodora Boudale
body: Hi [@Karen Wu](/t5/user/viewprofilepage/user-id/4197134),

A couple of emails from your domain were in a suppression list, I removed all of them.

Could you please try re-sending the invitation now?  
A new invitation needs to be sent, as the previous ones were dropped.

This issue usually occurs when Atlassian tries to send an email (e.g. invitation email, or verification email when someone signs up for an account) and the email address is not operational (yet). In this case, the email is placed in a suppression list, as we no longer try to re-send to non-existing emails.

Please feel free to let me know things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: Karen Wu
body: Hey Theordora,

I tried to resent 18 hours and 5 mins ago, the user still did not get the email. Any other things I can provide to help?

The user just got the email! Thanks for your help!


author: Theodora Boudale
body: That's good to hear, thank you for the update!

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Prevent project-level Bitbucket Admins from changing the project key
Asked by Roy Powell:

I have a scenario where some users in Bitbucket have Admin access for their respective project (they aren't "Bitbucket Admins", they just have the admin access for that project provided via the Project permissions). I want to be able to prevent these users from editing their Project Key, while retaining their other admin privileges.

Is there a way to hide / disable the project key editing for these users? I have tried through scriptrunner but could not find a way to hide this specific UI element.


Answers:
author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Roy Powell](/t5/user/viewprofilepage/user-id/3813260)

Maybe hiding the project key field is not the only way. I believe you can achieve this with an event listener that would cancel the edit action. We are working on an answer for this and will get back to you soon

Regards

Yannis

comments: author: Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__
body: Hi [@Roy Powell](/t5/user/viewprofilepage/user-id/3813260)

We have released a new script that you can use here :

<https://library.adaptavist.com/entity/prevent-project-administrators-from-changing-the-project-key>.

Using this script, the 'Project Key' field will not be hidden, but when a project admin tries to change it, their request will be cancelled with an error message.

![Screenshot 2022-02-14 at 15.45.07.png](https://community.atlassian.com/t5/image/serverpage/image-id/183239i167C80B790B7344A/image-size/large?v=v2&px=999 "Screenshot 2022-02-14 at 15.45.07.png")You can also modify the script to block them from changing other project properties, like name, description, public etc

Hope this helps!

Regards,

Yannis


author: Roy Powell
body: [@Yannis Argyropoulos __ScriptRunner - The Adaptavist Group__](/t5/user/viewprofilepage/user-id/4511029) this is fantastic and exactly what I was looking for, thanks so much for going to these lengths to help me out.


Tags: adaptavist

bitbucket-server

hide

key

project

script

scriptrunner

server

user-interface
Why do I keep getting transfer requests?
Asked by c:

In the last 30 days or so, I have gotten at least 7 or so random transfer requests.

What's with this?


Answers:
author: Caroline R
body: Hi, [@c](/t5/user/viewprofilepage/user-id/4702180), welcome to the community!

In order to transfer a repository to someone, the user needs to inform the **Workspace ID** of the user to whom they want to transfer the repository, so you must have a Bitbucket account to receive any repository transfer. Checking the Bitbucket account linked to the email you used to create this question, I can see it was created in 2013.

This means someone is trying to transfer some repositories to you. Maybe the user who is offering the ownership of these repos added the wrong workspace ID when transferring them.

In any case, if you don't want to accept this transfer, you can open **View transfer request** \> select **Reject**.

I hope this clarifies the situation, but please let me know if you have any additional questions.

Kind regards,  
Caroline


author: Craig Castle-Mead
body: Hi @c

I'm guessing that <https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/> would be what you're referring to?

CCM

comments: author: c
body: Yes, but I didn't even have an Atlassian account at the email I was getting the requests until I made it for this post.


author: Craig Castle-Mead
body: My guess would be that your email may be receiving a notification via an email alias/forwarding rule/distribution group that was setup by another staff member.

CCM


author: c
body: It is a personal account and email. The requests are from random people I have no idea who they are.


Tags: bitbucket-cloud

cloud
BitBucket Repo is Empty, it shouldnt be
Asked by Ma3147:

Hi,

I have a repo that only I have access to, I have not used it in 2 years or so. Prior to that I did several commits to the repo and cloned it several times to different devices so I know it had code in there.

I've come to check it out today and the whole repo is empty, not a file on there and no commits listed.

I know this had commits and data and I know I have not deleted anything.

Last updated is showing 12-10-2019. All other repos in my account are fine.

Any idea what is going on here?


Answers:
author: Theodora Boudale
body: H [@Ma3147](/t5/user/viewprofilepage/user-id/3331935),

Could you please try the following:

1. clone this repo using terminal
2. navigate to the clone the directory of the clone
3. run the command **git log**

Then please let me know if the output of **git log** shows any commits and if the directory of the clone contains the files of your repo.

This is to narrow down whether the issue may be with Bitbucket UI not showing any commits for the repo, or if the remote repo doesn't have any commits at all.

SourceTree crushing on clone may be a bug with the application, this is why I suggest cloning from a terminal.

Kind regards,  
Theodora


author: Pramodh M
body: Hi [@Ma3147](/t5/user/viewprofilepage/user-id/3331935)

Have you tried to check with a different branch or commits?

Raise the Atlassian Support ticket to get help on Push logs if you are sure of the repository!!

Here's an open ticket to vote on this feature to get the necessary info in logs for a repo

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

Thanks,  
Pramodh

comments: author: Ma3147
body: Hi Pramodh,

The repo shows no branches or commits, any attemp to clone it result in a crash (using sourcetree)


Tags: bitbucket-cloud

cloud
windows DC shared directory setup
Asked by Mike Rolls:

Can anyone identify the best practice for mounting an NFS shared to the shared directory on windows server running Bitbucket DC.  
The only way I know how to do this would be to mount the share to a network drive \& then create a symbolic link from the ../application-data/shared folder to the drive.

Thanks  
Mike


Answers:
author: Christian Glockner
body: Hi Mike,

Windows is not a supported operating system for Bitbucket Data Center, see <https://confluence.atlassian.com/bitbucketserver/supported-platforms-776640981.html>

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Not receiving Accept Repository Transfer Email
Asked by vglglobal:

I team, when one of my vendor team is trying to transfer the bitbucket repository in our official account, we are not receiving the acceptance email.


Answers:
author: Theodora Boudale
body: Hi [@vglglobal](/t5/user/viewprofilepage/user-id/4700706),

Is the Bitbucket Cloud account with the same email as your community account the admin of the workspace where this repo is transferred?

The email of that account was in one of our suppression lists. Atlassian attempted to send an email to that email address a couple of months ago and received a hard bounce response from your mail server (indicating permanent failure), and the email was then placed in a suppression list.

I went ahead and removed your email address from the suppression list.  
If this is the email address where you are expecting the transfer request, could you please ask your vendor team to cancel the transfer request and initiate a new one now?

Please feel free to let me know if this concerns an account with a different email.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
unable to fatch or pull push code to branch in android
Asked by Intellexus Systems:

Unable to load repository's in android bumble be version time out error show also pull-push operation not responding


Answers:
author: Caroline R
body: Hi, [@Intellexus Systems](/t5/user/viewprofilepage/user-id/3515542)!

Thank you for reaching out to Atlassian Community!

In order to further investigate this issue, could you please give us more details about what is happening on your side?

Where exactly are you trying to load your repo? Could you describe the process you are following and the error message you receive (if there is an error message)?

Please feel free to share any additional information regarding this case.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud