youngmon/atlassian-qna huggingface dataset:
How to poll bamboo from external tool for bamboo results?
Asked by Sobin M:

I have got a project working that uses REST call to trigger a bamboo build

curl --user $BAMBOO_USER:$BAMBOO_PASS -X POST -d "$STAGE_NAME\&ExecuteAllStages"[](http://mybamboohost:8085/rest/api/latest/queue/$PROJECT_NAME-$PLAN_NAME)[http://mybamboohost:8085/rest/api/latest/queue/$PROJECT_NAME-$PLAN_NAME](http://mybamboohost:8085/rest/api/latest/queue/%24PROJECT_NAME-%24PLAN_NAME)

So as soon this is curl command is triggered, my project passes and does not wait to get results from bamboo build.

How I can poll the bamboo from an external tool to see if the bamboo build passed or failed. Is there a curl command I can use to continously poll the bamboo build?


Answers:
author: Bob Swift (personal)
body: [Bamboo Command Line Interface](https://bobswift.atlassian.net/wiki/display/BCLI) has [queueBuild](https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-queueBuild) which supports a wait parameter. You could do something similar using curl and some scripting checking the build number.

comments: author: Sobin M
body: Thanks Bob. Is there a way I can introduce the wait through a rest call?

I want to know whether the build passed or failed.

example - rest/api/latest/queue/[$PROJECT_NAME-$PLAN_NAME](http://mybamboohost:8085/rest/api/latest/queue/%24PROJECT_NAME-%24PLAN_NAME)?bamboo.variable.exitCode=0


author: Bob Swift (personal)
body: Not that I know of, you need to poll on the build number and then get the build results.
Bamboo receiving 401 when trying to publish build status to Stash
Asked by philipobenito:

Hi,

I have tried seaching for any information relating to this issue. I am running the download version of Bamboo and Stash.

Application links seem to be set up correctly with Basic Auth (a user with full admin). I have also given the user full admin to the Project on Stash, however, when trying to push results to Stash I get the following error on the build.

*"401 Unauthorized" received while attempting to store build status against Stash instance \`Stash', check your application link configuration.*

I should also mention that I have another instance running for open source projects with pretty much the same set up and that works perfectly.

Any help on this matter would be greatly appreciated.

Thanks

Phil


Answers:
author: David_Mills
body: We get several of these every night. I have deleted and re-created all application links a few times - but to no avail. The Application link health checks all get a tick.

So why does this error occur and what are the consequences of it having occurred?


author: Eclipse Trading
body: what is the resolution of this?


author: ssetayeshfar
body: Hi Phil,

Please review the following KB article and follow the resolution steps.

If the problem doesn't get resolved, please open a support ticket:

[](https://confluence.atlassian.com/display/BAMKB/Unable+to+see+Bamboo+build+results+in+Stash)<https://confluence.atlassian.com/display/BAMKB/Unable+to+see+Bamboo+build+results+in+Stash>

Thank you.

Best,

Sepideh

comments: author: Christian Schlaefcke
body: I have exactly the same Problem and followed the guide you provided - unfortunately without success :-(In Stash I have ssh with ssh-key activated - might this cause trouble when bamboo tries to access the stash repository without having valid key?


author: cofarrell
body: Hi Phil,

I'm not sure about this. It *may* be related to a known regression in applinks:

[](https://ecosystem.atlassian.net/browse/APL-1135)<https://ecosystem.atlassian.net/browse/APL-1135>

But I'm not sure if that affects Bamboo in this instance.

If you haven't already I would recommend you raising a [support ticket](https://support.atlassian.com/) and attach your Bamboo (and Stash) logs so we can help.

Cheers,

Charles


Tags: app

bitbucket-administration

bitbucket-server
Passing variable between Bamboo tasks
Asked by Georges Auberger:

Within a Bamboo job, I need to apply some transformation (striping dashes from bamboo key name) on a bamboo variable before I can feed it to a maven task.

I wrote a shell script that can do that but i don't know how to pass the output to another bamboo task that execute maven.

I tried using system environement variable but that does not seem to work. Any other ideas that would work on Bamboo ondemand?


Answers:
author: Jonathan Stewart
body: No answer since 2014.... Do any Atlassian employees review this forum?


Tags: cloud
Clean up plan/ tasks with Bamboo plan branches
Asked by Scott Molinari:

Is it possible to somehow carry out actions like tasks, when Bamboo cleans up a branch after X days of non-activity?

Scott


Answers:
author: Marcin Gardias
body: In the Branches tab of plan configuration, under Automatic management there's an option to automatically remove Plan Branches if no commits appeared for X days.

comments: author: Thomas Vanderhaeghen
body: I don't think that's what he asked so long ago. He wanted to know if it's possible to carry out a task on the cleanup. Like I used bamboo to create a testing for each branch. on the automatic branch clean up I would like to clean as well the code that's on the testing server as remove the testing database that was created. Would it be possible to create a plugin for this with the 'ChainDeletedEvent' event?


author: Scott Molinari
body: A polite bump.

Scott


Tags: bamboo-administration
setup bamboo staging server for upgrade test.
Asked by Alpesh Bhavsar:

Hi ,

We do have bamboo server on production environment only. But it is old version. Now I am planning to upgrade it to latest version.

On Production, bamboo.home folder is huge size. Which folders should I include in backup? So that I can copy only those which are required and can be used to upgrade bamboo successfully.


Answers:
author: rsperafico
body: Hi Alpesh,

I would recommend you NOT to ommit any of the folders in "bamboo.home", instead it is recommended to backup your "bamboo.home" and your "database" prior an upgrade being made.

To migrate Bamboo between machines,

1. Back up your current Bamboo instance as per our [Bamboo backup guide](http://confluence.atlassian.com/display/BAMBOO/Exporting+Data+for+Backup)
2. Login to the [My Atlassian portal](http://my.atlassian.com/) and retrieve your Bamboo license key.
3. Download a fresh distribution of Bamboo from the [Bamboo download center](http://www.atlassian.com/software/bamboo/BambooDownloadCenter.jspa)to your new machine.
4. ![(info)](https://confluence.atlassian.com/s/en_GB-1988229788/4732/f543bd9a3bbc12daed85f6f5e5cba84282599932.27/_/images/icons/emoticons/information.png) If you are using the WAR version, click the '**Show all**' link on the Bamboo download center page to display the download link.
5. Unpack your Bamboo distribution on your new machine, (if you are using the WAR version, you need to deploy it to your application server) - See our [installation guide](http://confluence.atlassian.com/display/BAMBOO/Bamboo+Installation+Guide).
6. Start your new Bamboo installation and [run the Setup Wizard](http://confluence.atlassian.com/display/BAMBOO/Running+the+Setup+Wizard).
7. In step**(3)** of [the Setup Wizard](http://confluence.atlassian.com/display/BAMBOO/Running+the+Setup+Wizard), import your old Bamboo instance from step**(1)**.

Alternatively, you can [Clone a Bamboo instance](http://confluence.atlassian.com/display/BAMBOO/Cloning+a+bamboo+instance).

--

Kind regards,

Rafael


Tags: bamboo-administration
Is it possible to have one workspace for all stages within a plan in Bamboo?
Asked by Adrian Moerchen:

By default every stage within a plan uses it's own workspace. But how is it possible to use one workspace for all stages?

I can configure another working directory like "../Checkout-Job", but this way it is not possible to aggregate test results, as these are always searched within the workspace (a custom serach pattern doesn't helps here).


Answers:
author: Venkatalakshmi Nandipati
body: Hello Adrian,

I am also looking for the solution, if you get any solution please pass on to me. Thanks in advance.
What is the largest markdown Bitbucket can render?
Asked by haihuai_huang:

Bitbucket does not render properly as the code goes large. Is there a upper limit for the rendering?


Answers:
author: Patrik S
body: Hello [@haihuai_huang](/t5/user/viewprofilepage/user-id/4768638)

Welcome to Atlassian Community.

Although we don't have an exact number of lines/characters limits to render Markdown files, as it depends on how many Markdowns command you are using, we do have limitations on the time it takes to render the file in the UI. If the size of the Markdown file is large, the UI might not be able to render it within threshold limit and eventually fail to load.

We are working internally ways of fixing it, and we already have created the following bug on our public issue tracker to track this externally.  
<https://jira.atlassian.com/browse/BCLOUD-15800>

I would suggest you to add your vote there, since this helps both developers and product managers to understand the impact. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all bug fixes are implemented with this policy in mind: <https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html>

As a workaround, you can split the Markdown file into smaller files.

Hope that helps! Let me know if you have further questions.

Thanks, [@haihuai_huang](/t5/user/viewprofilepage/user-id/4768638)

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
It appears that all access to bitbucket takes a long time to resolve
Asked by Rob Lingstuyl:

For the last while it is taking a long time for npm pull requests to our repositories using git+https take many minutes for small repositories. Additionally, as I try to create a PR the screen takes a while to load w/ the commit information etc.

I've done a speed test on my connection and I'm getting 20mb/sec. Other site and git downloads work great and fast but anything connected to your service is SLOW and painful.

Please advise.


Answers:
author: Caroline R
body: Hi, Rob, thank you for reaching out to Atlassian Community.

As you confirmed this is only affecting Bitbucket repositories, and they are actually small, this could be related to some problem in these repositories. In this case, could you please share the name of the repositories (masked with \*\*\* in the middle), so I can investigate them?

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

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
How to get phpdocs served on bitbucket?
Asked by psaikido:

My php application has a phpdocs directory. On my local machine I open that documentation in a browser and right click the index.html to get started. Is there a way to have that documentation open as a statically served site on bitbucket? At the moment I can browse the source code of the phpDocumentor that has created the docs. My collaborators would be able to clone the site locally and see the docs by doing what I did, but it would be nice to be able to send them a link.


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

Bitbucket is not a web server, it has no functions for processing web application files outside its own services.

You'll need to deploy your php on a web server that serves php.

comments: author: psaikido
body: Ok, I found another solution. Incidentally, phpdocs produces plain html and wouldn't need a web server that serves php.
search for a branch name in all repositories under a project
Asked by Deepthi Rekha Chitrapu:

filter a branch name in all repositories which are under one project


Answers:
author: Mikael Sandberg
body: Hi [@Deepthi Rekha Chitrapu](/t5/user/viewprofilepage/user-id/4767117),

Welcome to Atlassian Community!

No, you cannot filter on a branch name for all repositories in a project, branches are repository specific and Bitbucket does not store that information.


Tags: bitbucket-server

server
Git clone fail with self hosted runner on linux
Asked by Tarlabs.:

Using a basic pipeline

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

pipelines:
default:
- parallel:
- step:
? runs-on:
  - self.hosted
  - linux
name: 'Build and Test'
script:
- echo "Your build and test goes here..."
```

````

The pipeline fails to clone the repository.

With further investigation into the clone container, it seems that the variable BITBUCKET_REPO_FULL_NAME is empty, as a result it fails to clone.  

I've tried setting it as "Repository variables" with out any luck.  

Any other suggestions for a fix? This looks like a bug!


Answers:
author: Pramodh M
body: Hi [@Tarlabs.](/t5/user/viewprofilepage/user-id/4767739)

Welcome to the Community!!

May I know the git version you are running on a self-hosted runner?

Also, can you try the SSL Skip and check once

<https://support.atlassian.com/bitbucket-cloud/docs/configure-your-runner-in-bitbucket-pipelines-yml>

Thanks,  
Pramodh

comments: author: Tarlabs.
body: ```
docker run -it docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-dvcs-tools:prod-stable bash
bash-4.4# git --version 
git version 2.15.4
```

If the BITBUCKET_REPO_FULL_NAME variable isn't passed into the container then git doesn't know where to go.  

This is the error that the container gets:  

```
bash-4.4# GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="main" --depth 1 https://x-token-auth:$REPOSITORY_OAUTH_ACCESS_TOKEN@bitbucket.org/$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into 'bitbucket.org'...
remote: The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: repository 'https://x-token-auth:@bitbucket.org/.git/' not found

Attempt 1 of 6 failed.
Retrying in 1 seconds
Cloning into 'bitbucket.org'...
remote: The requested repository either does not exist or you do not have access. If you believe this repository exists and you have access, make sure you're authenticated.
fatal: repository 'https://x-token-auth:@bitbucket.org/.git/' not found

```

Notice the 'https://x-token-auth:@bitbucket.org/**\<this part is missing\>**.git/'

```
bash-4.4# echo $BITBUCKET_REPO_FULL_NAME

bash-4.4# 
```

If I set the above variable it can clone the repo.

I should say that the **runner is added at the workspace** level and I presume that is why it doesn't know what repo it should be downloading.


author: ?????? ??????
body: What kind of server do you use for runner - on-premise or cloud ?


author: Tarlabs.
body: Self hosted, meaning on-premise.


Tags: bitbucket-cloud

cloud
Unable to view security tab on admin.atlassian.net account despite being an admin
Asked by Sharadha Krishna:

![Screenshot 2022-02-17 at 11.11.33 AM.png](/t5/image/serverpage/image-id/184218i6DEA401E2C00E927/image-size/large?v=v2&px=999 "Screenshot 2022-02-17 at 11.11.33 AM.png")

Hi,

Currently I am trying to enforce 2FA to all my bitbucket users who belong to an organisation.

For the same I cam across <https://support.atlassian.com/security-and-access-policies/docs/enforce-two-step-verification/> link. However as mentioned here I needed to view the same on the security tab. But I am unable to view the same.

I am currently being given site-admin access by my org admin.

NOTE: my org admin is also a part of that group and is able to view the Security Tab.

Thanks,

Sharadha


Answers:
author: Vishwas
body: Hey [@Sharadha Krishna](/t5/user/viewprofilepage/user-id/4766502) Welcome to Atlassian Community !!

Firstly check your site is in improved user management experience ? because here we have only 2 types of admin that is Org admin and product-admin

if not follow below.

You have to be Org Admin to do this. Site admin permissions is restricted to few tabs i guess in admin portal.

Same groups doesn't provide access to admin.atlassian.com rather the admin type access, you have to be Org admin to access Security tab

Check this URL for more details <https://support.atlassian.com/user-management/docs/give-users-admin-permissions/>


Tags: bitbucket-cloud

cloud
BFG repo cleaner in remote on free account
Asked by ruohomaa:

Hi,

I cleaned my repo with the instructions from

<https://rtyley.github.io/bfg-repo-cleaner/>

and pushed to remote but the repos size increased

I can see that the repo size is significantly smaller locally

Should the gc be run in remote also ? How to do this ?

-Jani


Answers:
author: Theodora Boudale
body: Hi Jani,

I'm afraid that users cannot trigger a git gc on remote repos at the moment.

We have a feature request about this in our issue tracker:

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

I can trigger a git gc for your remote repo. Could you please let me know what is the remote repo's size now (from **Repository settings** \> **Repository details** \> look at the field **Size**), so I can identify it and run a git gc? (I'm asking because I see your own several repos)

Kind regards,  
Theodora

comments: author: ruohomaa
body: thanks, the size is 1.54 GB


author: Theodora Boudale
body: Hi Jani,

You are very welcome.

I ran a git gc for that repo, its size is 786.3 MB now.

Does this agree with your local repo if you run **git count-objects -Hv**?

Kind regards,  
Theodora


author: ruohomaa
body: hmm.. maybe I don't understand how this works but my local mirror clone repo looks like this:

```
ruohomaa@LAPTOP-5DOSVT93:~/codes/salesforce-compare.git$ git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 14317
packs: 1
size-pack: 20.14 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
```

I followed the instructions here: <https://rtyley.github.io/bfg-repo-cleaner/>

Now the remote size is 804.11 MB. I cleaned some more. Could you run the gc again

if I run the git count-objects -Hv in salesforce-compare repo I cloned (after you ran the gc) from remote it gives this:

```
ruohomaa@LAPTOP-5DOSVT93:~/codes/salesforce-compare$ git count-objects -Hv
count: 0
size: 0 bytes
in-pack: 14357
packs: 1
size-pack: 20.72 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
```


author: ruohomaa
body: I was trying to setup the source code mirroring with google "Cloud Source Repositories" and the sync resulted in an error.

Apparently others had this same problem with \>700mb repositories

but it seems to work now even if the size says \> 800mb on "Repository Details" page

Could you do the gc still once more because I cleaned a bit more


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

Let me step in as Theodora is out of office this week. I would like to inform you that I ran another GC on your repository and the size has reduced to 20.9 MB.

Please let us know if there's anything else we can help you with?

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


author: ruohomaa
body: Sorry for the late reply, this seems to work now


author: Norbert C
body: You're welcome [@ruohomaa](/t5/user/viewprofilepage/user-id/473938) I'm glad to hear I was able to help :)


Tags: bitbucket-cloud

cloud
Is there a feature to add a "Copy" button for code blocks in README.md
Asked by Wu Zhixiang:

Is there a feature to add a "Copy" button for code blocks in README.md?


Answers:
author: Ben
body: Hey Wu!

Unfortunately, there is no such feature at present when viewing the readme.md file.

I have raised a feature request on your behalf however to our development team, feel free to "Watch" this request for future updates regarding its implementation:  
<https://jira.atlassian.com/browse/BCLOUD-21701>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
BUG: Cannot upload workspace icon
Asked by Tom Ford:

Trying to upload a workspace icon, the UI says it has uploaded but it never changes.

<br />

Looking at the upload request I can see it fails with a 400 error: "Only image/{png,jpeg,gif} content-types are allowed." but inspecting the request I can see that the image data was never actually posted to the api. Request body is: \`data:,\`

```
POST /!api/internal/workspaces/focusonsound/avatar HTTP/1.1
data:,



HTTP/2 400 Bad Request
Only image/{png,jpeg,gif} content-types are allowed.
```


Answers:
author: srdjanjovanovic
body: Firefox v120.01 version - same error(Only image/{png,jpeg,gif} content-types are allowed.) still exists, even with all extensions stopped.

Chrome - works - out of the box, same image on chrome works, on FF not.  

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


author: mdesign
body: Hi Norbert,  

Same here.

Bitbucket Cloud Version.

Same response:

```
HTTP/2 400 Bad Request
Only image/{png,jpeg,gif} content-types are allowed.
```

Firefox: 114.0.1 (64-bit)

It works in Chrome.

Best regards,  
Karoly

comments: author: Derek White
body: Same, using GIMP with PNG or JPG (selected by extension or manual) and even re-save using Paint, which removes the transparency. Same response, claiming bad content type. Windows reports as "JPEG Image (.jpg)" and "PNG Image (.png)".

Firefox 126.0.1


author: Derek White
body: Further, why does a 400 end up showing the success notification? This is absurd!


author: Derek White
body: <https://jira.atlassian.com/browse/BCLOUD-21322> never got fixed.


author: wimbraam
body: I just experienced the same issue in FireFox Developer edition, but got it working in Google Chrome. Incognito did not work unfortunately.


author: Norbert C
body: Hi Tom,

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!

Can you let me know what's the extension that you've tried to upload as an icon for the Workspace? I'd like to inform you that I've just tested one and I was able to upload a .jpg file as an icon.

Maybe can you try to upload the profile picture in an incognito window with no add-ons enabled?

Please let us know how it goes.

Best Regards,  
Norbert  
Atlassian Bitbucket Cloud Support


Tags: bitbucket-cloud

bug

cloud
Deprecation of OAuth 2.0 Resource Owner Password Credentials Grant flow
Asked by Mihira.Wanninayake:

According to this post <https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity> , resource owner password credentials grant flow is being deprecated. My understanding is this is the grant_type=password oauth flow..

Currently we are using grant_type=client_credentials grant for authentication. Just want to confirm that client_credentials flow will not be affected by the above change ?

Thanks


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

I can confirm that the Client Credentials OAuth 2.0 flow is not being affected by this change. For further information regarding supported OAuth 2.0 flows and their implementation, please refer to our documentation regarding this:

<https://developer.atlassian.com/cloud/bitbucket/oauth-2/>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Mihira.Wanninayake
body: Thanks Ben !


Tags: bitbucket-cloud

cloud