youngmon/atlassian-qna huggingface dataset:
Unable to publish artifact [xxx-tar]: Unable to publish artifact Shared artifact: [xxx-tar], pattern: [**/**] anchored at: [/target] for yyy-TAR-JOB1-37 via com.atlassian.bamboo.build.artifact.ServerLocalArtifactHandler@609f27e9
Asked by srikanth chowdary:

Hi team

i am unable to publish artifact, which is 400 mb of size,

recently i worked on another project at that time it worked for that,bt now with the same configuration its not working.


Answers:
author: cbenard1
body: Hi Srikanth,

I definitely agree with Rados?aw here. You would most definitely be best served raising a ticket at <https://support.atlassian.com> and create a ticket in the Bamboo project. Please reproduce the issue and include a Bamboo Support Zip (Bamboo Administration \>\> System \>\> Atlassian Support Tools \>\> Support Zip \>\> Create) with that request.

Thanks!

Turner


author: Rados?aw Antoniuk
body: This sounds like a question to Atlassian Support.

You can try going to Bamboo administration page and use Atlassian Support Tools to report a support issue.


Tags: bamboo-administration
How i can define the timeout of an artifacts ?
Asked by yosser_mahfoudh:

Hi

I need to know how I can define the expiry date of the articat.

In gitlab they have SO like this

artifacts:

paths: - mycv.pdf

expire_in: 30 minutes

How I can something like this in bitbucket?


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

Thank you for reaching out to Atlassian Community.

I'm afraid it's not currently possible to configure the expiration period for the artifacts of your build step, and the artifacts will be deleted 14 days after they are generated, as per [this documentation](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/).

However, as I understand this would be a great add to our product, I went ahead and created a feature request to implement this functionality, which you can find in the following link :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. 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 features are implemented with this policy in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Thank you, [@yosser_mahfoudh](/t5/user/viewprofilepage/user-id/3803216) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Licensing for PaaS providers
Asked by Lydia Thomas:

Can an MSP license Bitbucket for a PaaS customer?

Use case: PaaS customer maintains private VCS internally and it's not possible to create a route from the managed platform environment to their internal environment. We have a cloud license and would like to know if there is a licensing model that we could leverage to provide the customer with a private repository.


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

As this seems to be a question related to your license, I have created an internal ticket for you with our billing and license team.

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 feel free to let me know if you have any questions.

Kind regards,   
Caroline


Tags: bitbucket-cloud

cloud
Sonar-cube server integration with bitbucket
Asked by Sandeep.Dash:

I am getting an error which i saw in the log file: Below is the error. Kindly advise the next course of action:

'  
[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar (default-cli) on project ********* You're not authorized to run analysis. Please contact the project administrator. -> [Help 1]


Answers:
author: Ben
body: Hey Sandeep,

I've noticed that you have not yet received a response from our community and thought I'd reach out to provide some suggestions.

Although we do not provide support for third-party integrations, I found a thread with similar symptoms that you are experiencing here:  
<https://community.sonarsource.com/t/sudden-error-youre-not-authorized-to-run-analysis-please-contact-the-project-administrator/62662>

The thread suggests checking that the token used for analysis of that project is not revoked, and if not - making sure also that the token used for other successful analysis is attempted.  
This same thread indicates that there was some downtime experienced by the SonarSource plugin, I would suggest if this thread is not helpful - to reach out to the SonarSource community directly:  
<https://community.sonarsource.com>

Hope this helps to steer you in the right direction.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

sonarqube
Unable to connect to the server when using aws-eks-kubectl-run:2.2.0
Asked by Puja Agarwal:

Hi,

I am using \`aws-eks-kubectl-run:2.2.0\` in bitbucket pipeline to deploy to AWS EKS cluster but facing the following issue:  
*`Status: Downloaded newer image for bitbucketpipelines/aws-eks-kubectl-run:2.2.0`*  
*`INFO: Configuring kubeconfig...`*  
*`Added new context arn:aws:eks:ap-southeast-2:102468537709:cluster/eks-uat to /root/.kube/config`*  
*`INFO: Successfully updated the kube config.`*  
*`Unable to connect to the server: dial tcp 10.148.29.54:443: i/o timeout`*  
*`? spec file validation failed.`*


Answers:
author: Marcos Sampaio
body: Hi [@Puja Agarwal](/t5/user/viewprofilepage/user-id/4872764) ,  

Since it is timing out, it could be a network connectivity issue.

1. Does your cluster allow network access from [this ip range](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)?
2. Is your EKS endpoint access public or private?


Tags: aws

bitbucket-cloud

cloud
Is it possible to show the fork parent on a forked overview page?
Asked by J?rg Sch?mer:

When comparing with GitHub we see the fork parent link on the overview page. I'm missing this link in the forked repo on Bitbucket!

I know there is a link in the "Fork syncing" settings page, but I think it would be nice to see it more clearly.


Answers:
author: Karthick S
body: Hello [@J?rg Sch?mer](/t5/user/viewprofilepage/user-id/3710368)

Thanks for reaching out to Atlassian Community!

In Bitbucket Cloud, it is possible to create a fork of the repository. You may check the below reference:

* [Fork a repository in Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/fork-a-repository/)

I hope this helps.

Kind regards,

Karthick S

comments: author: J?rg Sch?mer
body: Hi Karthick,

I know how to create a fork.

what I like to have is a link to the forked repo (fork parent), the source of the fork in the overview page of the fork repo.

when I've created a PR from a branch in my fork repo and want to delete the branch I'll get an error like: there is a PR including your branch. The PR is located in the fork parent repo, so I've to find the fork parent repo to delete the PR and then go back to the fork to delete the branch.

otherwise a link could be rendered in the error message pointing to the PR, this would also be very helpful!

It's not to hard to render a link to the source within the overview. As I said, GitHub does it and it is really helpful.

kind regards


author: seanaty
body: FWIW this link exists on Bitbucket Cloud. Sorry I don't know about server.

comments: author: J?rg Sch?mer
body: Is it configurable?


Tags: bitbucket-server
403 when installing private app Cannot connect to proxy.
Asked by Code Review Doctor:

I am trying to write an app for the marketplace.

When I try to add app descriptor via <https://bitbucket.org/code-review-doctor/workspace/settings/addon-management> "Install app from URL" I enter this:

<https://s3.eu-west-2.amazonaws.com/codereview.doctor/bitbucket%5Bstaging%5D.json>

when I submit the first step works OK. I click "grant access" but then I get error

problem installing the app. The app failed to be installed: Error calling installed at URL <https://939pd1ndql.execute-api.us-east-1.amazonaws.com/default/bitbucket-events/:> HTTPSConnectionPool(host='939pd1ndql.execute-api.us-east-1.amazonaws.com', port=443): Max retries exceeded with url: /default/bitbucket-events/ (Caused by ProxyError('Cannot connect to proxy.', error('Tunnel connection failed: 403 Forbidden',)))

However according to my server logs no request is being made to <https://939pd1ndql.execute-api.us-east-1.amazonaws.com/default/bitbucket-events/>

Is this a known problem?

If I manually do a POST request to the endpoint specified in the app descriptor then I get a 200 response.

Oddly if I add a proxy (<https://beeceptor.com/console/coderviewdoctor>) so baseUrl" is set to <https://coderviewdoctor.free.beeceptor.com>, and that url just proxies <https://939pd1ndql.execute-api.us-east-1.amazonaws.com> then everything works.


Answers:
author: Patrik S
body: Hey [@Code Review Doctor](/t5/user/viewprofilepage/user-id/4872507) ,

Welcome to Atlassian Community!

I've reviewed the issue you reported, and given that is a very technical question about developing an application for the marketplace, I would kindly suggest you to create the questions in our developer community :

* <https://community.developer.atlassian.com/>

Our support engineers that work on that community will have the better expertise to answer this type of questions.

Thank you, [@Code Review Doctor](/t5/user/viewprofilepage/user-id/4872507) .

Kind regards,

Patrik S.

comments: author: Code Review Doctor
body: thanks will do


Tags: app

atlassian-marketplace

bitbucket-cloud

cloud
Is there any way to run a custom pipeline on repository tags?
Asked by Ahmed Faraz:

We are managing our releases with [repository tags](https://support.atlassian.com/bitbucket-cloud/docs/repository-tags/) and in order to handle release reversion in case there is any issue in the published release we need to run the deployment pipeline on the previous release tags. Currently in the interface and in the documentation I can't find any way of doing so. Is there anyway or any other alternative solution to this problem?


Answers:
author: Ahmed Faraz
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536) thanks for responding!

I explored different things and found a solution to run custom pipeline on a tag. A tag actually is a commit, so open up that commit and in the commit detail view there is an option to run a pipeline, we can use that option and run any pipeline on this tag.

![Screenshot 2022-04-12 at 3.00.06 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/192724iFD9303F3EF44F32A/image-size/large?v=v2&px=999 "Screenshot 2022-04-12 at 3.00.06 PM.png")


author: Syahrul
body: Hi [@Ahmed Faraz](/t5/user/viewprofilepage/user-id/1617546)

G'Day!

I believe it's not possible to run a custom pipeline on a repositories tags.

If you previously deploy you can roll back the deployment by locating the previous build that is using the tags and having the issue. The clicking redeploy will roll back the previous build.

I hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
How to add the user to a project.
Asked by Tung Le:

Hi support team,

We're using Bitbucket cloud and we have multiple projects and groups.

When I adding the new user to our company workspace, it's required to the group also. (as picture below):

But I don't want add them to group. I want add them to a single project for easier manage

How can I do that?


Answers:
author: Karthick S
body: Hello [@Tung Le](/t5/user/viewprofilepage/user-id/4786760)  

Thank you for reaching out to the community!

Currently, Bitbucket user management can either be done via groups for workspace or via direct access to a repository. I request you to kindly check the below references which contain more information.

* [User management within a repository](https://support.atlassian.com/bitbucket-cloud/docs/grant-repository-access-to-users-and-groups/)
* [User management for a workspace](https://support.atlassian.com/bitbucket-cloud/docs/grant-access-to-a-workspace/)

Unfortunately, at this point, it is not possible to control the permissions at the project level.

However, this is something that is on our [development team's roadmap](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket).

I hope this helps.  

Kind regards,  
Karthick S


Tags: bitbucket-cloud

cloud
Can't connect to my repo by SHH
Asked by Sofiya:

Hi

I'm trying to push code to my Bitbucket repo

Due to 1st of March changes, I switched from account password usage to SHH.

And I get "Unauthorized" when I'm pushing

I don't see SHH key in settings and when I'm trying to add it I get "Someone has already added that key as an access key to a repository."

May be I added it before, but I don't see this key and can't use it.

What should I do?


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

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

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 feel free to let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
bitbucket-pipelines throws bash: yarn: command not found
Asked by Jorge Pausa:

We are using docker node image **node:16.14-alpine3.14** . The description says it contains yarn installed. But when we run the pipelines we get the following error  

![Screenshot at Apr 11 12-31-20.png](https://community.atlassian.com/t5/image/serverpage/image-id/192429iDCE4C6599E34CC88/image-size/large?v=v2&px=999 "Screenshot at Apr 11 12-31-20.png")


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

I tested this on my side and, when using the image you shared with us (**node:16.14-alpine3.14**), I was able to run the yarn install without errors. Could you please confirm if this is the image you have run in your pipelines?

In case you are using this image, you can also run the following commands to install it:

    - apk update- apk add yarn- yarn install

Please let me know how it goes and feel free to share any additional information regarding this case.

Kind regards,   
Caroline

comments: author: Jorge Pausa
body: Hello Caroline! Thank you for your answer. I realized that I was using another image for these steps. I replace it for the right one and it worked. Sorry for the confusion.


author: Caroline R
body: Hi, Jorge! Thanks for the information, I'm glad to know everything is working now.


Tags: bitbucket-cloud

cloud
pipelines for all my repos stop working
Asked by Zhenguo Li:

I can't open my pipeline pages of all my repos, it keeps loading with a cycling icon.

Anyone can help to check ?

thanks


Answers:
author: Zhenguo Li
body: sometimes, the pipleline page just load very slow , it keep showing a cycle loading icon, after several minutes, it's back to normal .


author: Caroline R
body: Hi, [@Zhenguo Li](/t5/user/viewprofilepage/user-id/4784394), welcome to the community!

I couldn't reproduce this behavior on my side and confirmed we haven't received any other tickets related to this issue so far. In this case, could you please confirm if you are still facing this problem? In case you are, could you please proceed with the following tests?

* This might be an issue with the browser, so we suggest you try accessing your Pipelines through [other browsers](https://support.atlassian.com/bitbucket-cloud/docs/which-browsers-does-bitbucket-support/) and make sure they are up to date.

* In case it doesn't work, please try this in private mode.

* Can you try this on another network? This could be something blocked on your network.

Please let me know how it goes and feel free to share any additional information regarding this case.

Kind regards,   
Caroline


author: Florian PEREZ
body: Hey,

Considering your issue technicity, it might be a good idea to open also a ticket on the developer community

<https://community.developer.atlassian.com/>

Maybe someone here will be able to help you.

Hope this help.


Tags: bitbucket-cloud

cloud
Someone has already added that key as an access key to a repository. when trying to add a key
Asked by Idan Mishor:

Hello,

When trying to upload my SSH key to the BitBucket console I get the error

"Someone has already added that key as an access key to a repository"

I don't know on which repo the key is added

i tried running "ssh -Ti /path/to/key git@bitbucket.org" but it doesn't reveal the owner

Can you please help?


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

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

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 feel free to let me know if you have any questions.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
We are currently updating the migration service
Asked by Ken De Martelaere:

When the bcma checks for errors we get the message : We are currently updating the migration service.

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

In the logs we can see the following error :

*An error occurred when requesting against resource <https://api-private.atlassian.com/migration/bitbucket/v1/workspaces/.../preflight/repositories>: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target*

Any ideas on how to solve this issue?

kind regards

K.


Answers:
author: William Tran
body: I expect an announcement from Atlassian about this kind of Migration Service outage. I've got this error for nearly a day, don't know when it's available again.

My bitbucket server log error:

Caused by: *com.atlassian.bitbucket.plugin.bcma.httpclient.exceptions.HttpCommunicationException: An error occurred when requesting against resource **<https://api-private.atlassian.com/morkspaces/xxxxxx/preflight/user-groups>: Timeout waiting for connection from pool***   
*at com.atlassian.bitbucket.plugin.bcma.httpclient.exceptions.ExceptionsKt.communicationError(Exceptions.kt:13)*   
*at com.atlassian.bitbucket.plugin.bcma.httpclient.MigrationPluginHttpClient.execute(MigrationPluginHttpClient.kt:79)*   
*at com.atlassian.bitbucket.plugin.bcma.httpclient.MigrationPluginHttpClient.execute(MigrationPluginHttpClient.kt:53)*   
*at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceClient$execute$1.invoke(MigrationServiceClient.kt:494)*   
*at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceClient.runHandlingHttpCallExceptions(MigrationServiceClient.kt:499)*   
*... 16 common frames omitted*   


author: Dhananjay Goyani
body: Hi K,

We have not seen this problem occur before. There is KB article that explains the issue in great details with resolution.

<https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-error-779355358.html>

Let us know how you go.

Thanks!

Dhananjay


Tags: bitbucket-server

migration-customer-care

server
How to get total number of commits using Bitbucket REST API
Asked by msteppe91:

Following the request format:

### /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits {#toc-hId-1319139696}

and adding the withCounts parameter as documented here (<https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-rest.html#idm8283059312>), I do not get the total number of commits. I only seem to get the total commits on the page of results I'm requesting. The count does not include results from other results pages if the limit parameter paginates the values.   

Is this limitation by design or is this a bug? I am looking for the total commit number before running a python script asynchronously to speed up the requests returned from the server.   

Thanks!


Answers:
author: Carol
body: The documentation says the response should provide the size:

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

The documentation also states that we could use Bearer access token.

In summary, it looks like the documentation is very outdated.

Any chance that there's a way to get the commits number without iterating every page?


author: Eric Lebel
body: did you get an answer? the solution involve getting each page with curl calls... way too long for us too.

You can modify this great script by mikev0546 but it is really not a solution for us too.

[counter.py](https://github.com/mikev0546/bitbucket-commit-counter)


Tags: bitbucket-server

commit

rest

server
git push unauthorized
Asked by giuliohome2015:

Hi all,

I'm getting the following error

```
$ git push
remote: Unauthorized
fatal: Authentication failed for 'https://bitbucket.org/giuliohome2015/freightflask.git/'
```

It's a private repo, I've tried switching from ssh to https.

I'm using the token defined in my personal setting app password.

What could go wrong here above?

Any suggestions?

Thanks

Giulio


Answers:
author: giuliohome2015
body: Ok, depending on the machine my company enterprise security tools are blocking either ssh or https (hopefully not both).

Solved on my laptop by returning back to ssh.


Tags: bitbucket-cloud

cloud
Someone has already added that SSH key.
Asked by Cosmas Githinji:

Get the error "Someone has already added that SSH key." when trying to add SSH Key to workspace settings. How can I get to know what account/repo is using this key?


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

As we will need to know the public ssh key to further investigate this case, I have created an internal ticket for you using the email of your community account, so you don't have to share this information here.

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 feel free to let me know if you have any questions.

Kind regards,  
Caroline


author: Florian PEREZ
body: Hey,

Considering your issue technicity, I suggest you to open also a ticket on the developer community

<https://community.developer.atlassian.com/>

Maybe someone here will be able to help you.

Hope this help.


Tags: bitbucket-cloud

cloud