youngmon/atlassian-qna huggingface dataset:
Self Hosted Runner in Kubernetes Cluster Failing Using atlassian/kubectl-run Pipe
Asked by Marv Agabi:

I am trying to use a self hosted runner to deploy application changes to a kuberentes cluster.

The runner is the linux docker runner running inside of a kuberentes cluster. This was accomplished using this [guide](https://support.atlassian.com/bitbucket-cloud/docs/deploying-the-docker-based-runner-on-kubernetes/).

When I try to run a simple pipeline to 'get pods -A' the pipeline fails with the errors below.

I initially though this was because the pod running the runner and docker in docker containers didn't have a reference for the devk8m00 server specificed in the kubeconfig. So I edited the pod to have a host file entry pointing to the k8s cluster server LB VIP for devk8sm00.

Am I missing something, how can I get this runner running inside of the k8s cluster to be able to run commands to it?

```
0b57ecec8b3f: Pull complete

dc70d1c0613d: Pull complete

Digest: sha256:2c607a7cfb7cf0f4fd7bf95f9d70fdf910b5f2042ffe5a9576da8a90e5368b09

Status: Downloaded newer image for bitbucketpipelines/kubectl-run:3.8.0

INFO: Configuring kubeconfig...

E0930 21:16:43.341822 7 memcache.go:265] couldn't get current server API group list: Get "https://devk8sm00:6443/api?timeout=32s": dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

E0930 21:16:43.347571 7 memcache.go:265] couldn't get current server API group list: Get "https://devk8sm00:6443/api?timeout=32s": dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

E0930 21:16:43.353729 7 memcache.go:265] couldn't get current server API group list: Get "https://devk8sm00:6443/api?timeout=32s": dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

E0930 21:16:43.358067 7 memcache.go:265] couldn't get current server API group list: Get "https://devk8sm00:6443/api?timeout=32s": dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

E0930 21:16:43.362971 7 memcache.go:265] couldn't get current server API group list: Get "https://devk8sm00:6443/api?timeout=32s": dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

Unable to connect to the server: dial tcp: lookup devk8sm00 on 10.96.0.10:53: server misbehaving

? kubectl get pods -A failed.
```


Answers:
author: Marv Agabi
body: Figured it out, it was a DNS issue. devk8sm00 is the load balancer vip for my cluster which did not have a dns entry so the pod couldn't resolve it. Correcting that fixed the issue and I'm up and running now.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

kubernetes
Request for Garbage Collection
Asked by SERG:

Please run GC on my repository (the one that is almost at 4GB)


Answers:
author: Syahrul
body: G'day [@SERG](/t5/user/viewprofilepage/user-id/4739086)

I have triggered GC on all of the repositories that hitting the 4 GB limit. Could you review it and let me know how it goes?

Regards,  
Syahrul

comments: author: SERG
body: thank you. That has reduced the repo size by about 1/3 .  

In your experience will using \`Squash commits\` help avoid the growth of the repo?


author: Robert Wen_ReleaseTEAM_
body: Escalating to Atlassian


Tags: atl-rvw

bitbucket-cloud

cloud
Create branch url parameters
Asked by Bert Strobbe:

For the migration to the cloud we would like the possibility to specify some create branch defaults from the url. The following is available:

[https://bitbucket.org/branch/create?issueKey=KEY-1234\&issueType=custom\&issueSummary=this+is+a+test+issue](https://bitbucket.org/branch/create?issueKey=KEY-1234&issueType=custom&issueSummary=this+is+a+test+issue)

But for us it would be nice to be able to specify:

* repository
* from branch

This would allow us to create a url like:

[https://bitbucket.org/branch/create?issueKey=KEY-1234\&issueType=custom\&issueSummary=this+is+a+test+issue\&repository=myrepo\&branchFrom=develop](https://bitbucket.org/branch/create?issueKey=KEY-1234&issueType=custom&issueSummary=this+is+a+test+issue&repository=myrepo&branchFrom=develop)

This is possible in the server version but I don't seem to find how or if this is possible with Bitbucket cloud.

Any ideas?

Thanks


Answers:
author: Theodora Boudale
body: Hi Bert,

The URL you posted here is used when creating a branch from a Jira issue. Are you looking to set up a default repository and a default 'from branch' when creating a branch from Jira?

If so, I'm afraid that this is not possible at the moment without an add-on. I see that the following add-on allows you to configure a default repository and branch per Jira project:

* [https://marketplace.atlassian.com/apps/4984/git-integration-for-jira-github-gitlab-and-more?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/4984/git-integration-for-jira-github-gitlab-and-more?hosting=cloud&tab=overview)

Is this what you are looking for?

Kind regards,  
Theodora

comments: author: Bert Strobbe
body: Hi Theodora,

thanks for your answer. I just wanted to know what was possible. In Bitbucket Server it's no issue, so I was hoping this would be there in Bitbucket Cloud. We will see if we will be using a plugin or do something on our own with Forge.

Kind regards,

Bert


author: Theodora Boudale
body: Hi Bert,

You are very welcome. Please feel free to reach out if you have any other questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Get access token in pipeline to call Bitbucket Cloud REST APi endpoints?
Asked by Miko?aj Wa?niewski:

How can I get the access token in pipeline to call Bitbucket Cloud REST APi endpoints?


Answers:
author: Syahrul
body: G'day, [@Miko?aj Wa?niewski](/t5/user/viewprofilepage/user-id/5329036)

Welcome to the community!

Do you wish to use the Repository access token in your pipeline build for API endpoints? If yes, then I believe the following documentation is the one that you are looking for:

[Using Repository Access Tokens](https://support.atlassian.com/bitbucket-cloud/docs/using-access-tokens/)

I hope this helps.

Regards,  
Syahrul

comments: author: Miko?aj Wa?niewski
body: Thanks, yeah I have used Repository Access Token.


Tags: bitbucket-cloud

cloud
Get artifacts produced by a pipeline via Bitbucket REST API
Asked by Miko?aj Wa?niewski:

How can get the artifacts produced by a specific pipeline using Bitbucket REST API?

The "Get a pipeline" endpoint does not return anything related to artifacts.

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


Answers:
author: Syahrul
body: G'day [@Miko?aj Wa?niewski](/t5/user/viewprofilepage/user-id/5329036)

Currently, no API endpoints are available for direct artifact downloads. However, you can upload the artifacts to the "Downloads" tab, from where you can then access and download them using the API.

For detailed instructions, please refer to our documentation below:

[Deploy build artifacts to Bitbucket Downloads](https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/)

[Get a download artifact link](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-downloads/#api-repositories-workspace-repo-slug-downloads-filename-get)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Group permissions
Asked by Alex Rukhadze:

Hello everyone, I would like to discuss if there is any possible way to create a group inside the project and give administartor permission inside this project only.   
I don't want to give a global admin to everyone.   


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

You cannot create a user group inside the project, user groups need to be created on the workspace level. However, it is possible to give a certain user group admin access to a specific project only.

After you create the user group, open this specific project and select **Project settings \> Project permissions** . Select **Add users or groups** (from the top right corner) and then type the group's name, select it, and then change the permissions to **Admin**.

Users in this user group will then have admin permission on this project and all of the repositories in this project.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

group

permission
How can I clean large file history in repository and request to trigger GC on bitbucket repository
Asked by preeda_wap:

I have 2 test repositories to clean large files that were committed and would like to request to manually trigger GC for these repositories  

First, I use *git-filter-repo*to remove unwanted files from the repository.

```
git filter-repo --path-glob '*.bundle' --invert-pathsgit push --force origin --all
```

All '\*.bundle' files have been removed from the repository but after I forced push changes into the git occupied storage increased from \~400MB to \~700MB which I assume is temporary until the GC trigger.  
<https://bitbucket.org/>\<workspaceID\>/repo-4  

Seconds, I follow this document <https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/> to use BFG to convert files{.pdf and .bundle} to LFS.

```

java -jar bfg-1.14.0.jar --convert-to-git-lfs "*.{bundle,pdf}" --no-blob-protection .
git push --force
```

Same as the first repo, after force push the occupied storage increased from \~400MB to \~700MB. The LFS size doesn't seem to increase by the size of files I convert to LFS by the command above.  
<https://bitbucket.org/>\<workspaceID\>/repo-5


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

I ran a git gc for both repos and their size has been reduced.

If you ever need a git gc again, you can either create a new question in community or (since the workspace is on a paid billing plan) you can also create a ticket with the support team via <https://support.atlassian.com/contact/#/>. In "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product.

Just a heads up, I edited the repo names from your post as well to protect your privacy.

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: preeda_wap
body: Thank you for your help


author: Theodora Boudale
body: You are very welcome, please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Branch tag-based restriction does not seem to work
Asked by Simon Barbier:

Hi all,

I would like to put in place a tag restriction on my repo. I found the following article <https://confluence.atlassian.com/bitbucketserver/branch-permission-patterns-776639814.html> but it seems to not work properly, at least for me.

So what I want is to restrict tagging a commit.

I setup the following in bitbucket's repo's setting:

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

But i'm still able to tag a commit from the bitbucket UI

![tagging.png](/t5/image/serverpage/image-id/283476i1887FAE4BE835FB7/image-size/large?v=v2&px=999 "tagging.png")![tagged.png](/t5/image/serverpage/image-id/283477iB63767944BA86DB5/image-size/large?v=v2&px=999 "tagged.png")

Could you help me to understand what happened ?

I'm using the cloud version of bitbucket


Answers:
author: Ben
body: Hi Simon,

Unfortunately - tag restrictions are not yet available in Bitbucket Cloud. Branch restrictions are purely to restrict read/write operations from branches and implement PR restrictions.

We have a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) raised with our developers, however, to implement this. Please feel free to **Watch** this for future updates and **Vote**for it to improve its visibility with regard to customer demand:

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

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Simon Barbier
body: Hi Ben,

wouldn't it more user friendly to not allow refs on the cloud version for the time being (and more clearly inform about the difference between the licences in the documentation)?


author: Simon Barbier
body: Well [@Ben](/t5/user/viewprofilepage/user-id/4537226)the ticket your relate to is 8 years old... many people explains the security impact of this (tags are often use to mark release and use to trigger deployments), and Bitbucket team seems to not give a shit... wow, I'm highly disappointed.   

i switched from GitLab for this project, but I will reconsider my decision. That's a basic feature that should be included, and check the comments to see how people are urgently needing this!


Tags: bitbucket-cloud

cloud

restriction
Support overriding docker-daemon image on self-hosted runners. 2
Asked by Aqsa Bibi:

Hi team,

Thanks for your efforts that PAUSE_IMAGE, AUTH_PROXY_IMAGE, and CLONE_IMAGE are provided to support custom Docker registry in the self-hosted runner. Is it possible to support overriding docker-daemon image (ie. docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-docker-daemon:v20.10.18-prod-stable) as well?

Here are the use cases:  
(1) The firewall blocks the traffic between our internal environment and docker-public.packages.atlassian.com. So we have to use an internal docker registry for remote docker registry mirror/cache and override the docker image on our internal registry mirror.

(2) We has built our custom docker daemon for most cases in our internal environment. At the moment, for each pipeline which has enabled docker service, we have to define the following docker service in the pipeline.yaml. If overriding docker-daemon image is supported, we may configure our \<internal-docker-registry\>/\<custom-bitbucket-pipelines-docker-daemon\> as the default docker daemon, so we could remove the following code from each pipeline and therefore the pipeline.yaml becomes simpler and easier to understand for our developers.

\`\`\`  
definitions:  
services:  
docker:  
image:  
name: \<internal-docker-registry\>/\<custom-bitbucket-pipelines-docker-daemon\>  
environment:  
HTTP_PROXY: $HTTP_PROXY  
HTTPS_PROXY: $HTTP_PROXY  
NO_PROXY: $NO_PROXY. 2


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

There is a feature request in our issue tracker with the exact same use case you posted here:

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

You can add your vote to that ticket (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for new features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of new features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Bitbucket page won't load for me
Asked by Anton Wahlsten:

I've never had this problem before, but since yesterday my bitbucket webpages stopped loading:  

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

No one else seems to have this problem and it's only affecting bitbucket. Jira and confluence works as normal.  

I've tried both the incognito tab and a new browser (firefox) but it results with the same problem:  

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

I've also tried to log out on all my devices and restart the computer but nothings works. Does anyone have any idea on what could be the problem?


Answers:
author: Syahrul
body: G'day, [@Anton Wahlsten](/t5/user/viewprofilepage/user-id/5328209)

Welcome to the community!

If the issue is reproducible in both incognito windows and on a new browser, I believe it could be related to your network.

To narrow down the issue further, I suggest using an external network with or without a VPN, as well as mobile hotspots, to see if the problem persists. The issue is likely with your local network if it does not occur on these external networks.

That said, we have a comprehensive guide to troubleshoot local network issues. Please review it and follow the suggested steps to pinpoint further and resolve the issue:

[Link to Troubleshooting Network Issues Guide](https://confluence.atlassian.com/bbkb/troubleshooting-network-issues-389778693.html)

Regards,  
Syahrul

comments: author: Anton Wahlsten
body: Thank you.  

My issue was resolved when I changed to googles DNS. First time I've experienced this problem.


Tags: bitbucket-cloud

cloud
fatal: unable to access 'https://bitbucket.org/workspace/repo.git/': OpenSSL SSL_connect: SSL_
Asked by VenkatSaril Pusarla:

Getting this error when trying to take pull (git pull), tried changing the bit password and able to take clone but unable to take pull after creating a branch


Answers:
author: Theodora Boudale
body: Hi Saril,

Just a heads up, I edited the repo URL from your post's title and your answer to protect your privacy.

I see that you created a ticket with the support team about this issue. To avoid any confusion that may arise from discussing the same issue in multiple places, I would suggest focusing on the ticket. Once the ticket is resolved, please feel free to share the solution with the community here!

Kind regards,  
Theodora


author: VenkatSaril Pusarla
body: fatal: unable to access '<https://bitbucket.org/workspace/repo.git/>': OpenSSL SSL_connect: SSL_


Tags: bitbucket-cloud

cloud
JIRA integration setup wizard
Asked by Dmitry Tuykov:

Hello!

I try to create integration between JIRA and Crucible.   
At now moment not all are clear and I want to restart integration wizard for crucible.

Is it possible to do and how?


Answers:
author: Alok kumar Singh
body: I don't think you should restart the integration wizard.......You just have to follow the basics, enable the Remote API calls, configure the Crucible project with jira project. Set the incoming and outgoing authentication and everything.
Would a new installation of an older version of FishEye, one that supports IBM ClearCase, be available?
Asked by Russell Johnson:

We are evaluating software peer review tools. One criteria might be that the tool supports IBM ClearCase. Would be possible to install a previous verision of FishEye, one that supports ClearCase?


Answers:
author: rverschoor
body: The ClearCase functionality is not yet taken out of the most recent version 2.7.13 of FishEye.  
So from a technically point of view FishEye still supports ClearCase.  
However, the Support team won't handle any ClearCase related questions or problems, and the Development team stopped all ClearCase related bug fixing and development.  


author: rverschoor
body: The ClearCase functionality is not yet taken out of the most recent version 2.7.13 of FishEye.  
So from a technically point of view FishEye still supports ClearCase.  
However, the Support team won't handle any ClearCase related questions or problems, and the Development team stopped all ClearCase related bug fixing and development.  


author: Przemek Bruski
body: You can access older downloads here: <http://www.atlassian.com/software/fisheye/download-archives>

Of course you can install them, but keep in mind that CC support has been dropped.
Fisheye Search Results need to show the line(s) of code where results are found.
Asked by Edward Scanzano:

Hi

When I do a search in Fisheye I get a hyperlinked list of files back. That is good.

What I need is a list that looks like this (searching for "LOCK_MAP_NAME"), or some functional equivalent:

A.java _________________________

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

B.java _________________________

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

[\<some code\>LOCK_MAP_NAME\<some more code\>](adsf)

The idea is that for each line of code where LOCK_MAP_NAME appears I get a line in the search result that is hyperlinked (and externally referencable, so I can email the link to someone) and takes me to the exact line of code in the source code view.

Is this possible?

Thanks


Answers:
author: SimonS
body: Hi NoNameItialian,

I'm afraid this is not possible with Crucible out of the box, nor with any plugin that I am aware of.

If you wanted to get a view like this, you would have to customize the Crucible source code in some way, or create a plugin. We have [documentation](http://developer.atlassian.com) on how to create a plugin, but we also have a network of [experts](http://atlassian.com/resources/experts/?tab=find-an-expert&expertskills=CustomDevelopment&products=Fisheye&expertlocation=&isPremier=*) that you can contract this kind of work with as well.

Hope this helps,

-Simon


Tags: result

search
Configuring Smart Commits for SVN
Asked by Zuber Khursiwala:

Hi, I was hoping you could help me with 2 questions I have:

1) Am I right in thinking I should be able to commit a file with a message like this:

OR-97 this should fix it

And if configured correctly, that message will appear in the comments against issue OR-97 in JIRA?

I have enabled smart commits in FishEye and I have set up both an application link and a project link, but nothing is appearing against that issue. I have an old version of Mantis configured with an SVN hook to do the same. Could that be conflicting in some way?

2) Also, the widgets in JIRA don't seem to detect my repository in Fisheye. For example, my repository is called ITSSalfordSVN and it is running in Fisheye, but when I try to add a Fisheye Recent Changesets widget, I get this error message: The specified FishEye repository is not configured

Thanks

Richard


Answers:
author: Zuber Khursiwala
body: There were loads of things I had not configured properly.

Atlassian support pointed me in the direction of this link

<http://confluence.atlassian.com/display/JIRA/Integrating+JIRA+with+FishEye>

And, after carefully following each step, it all works now. And it's Awesome!


author: John Chin
body: Hi Richard,

Please vote the ticket <https://ecosystem.atlassian.net/browse/SVN-460> to make the feature available in future.

Regards,

John Chin
How do I grant review creation permission in crucible to other users?
Asked by Ike Garrow:

I just enabled crucible and would like to grant a user permission to create a review. As admin, I can create review. When this user tries, we get the error message:

Error  
Internal Server Error  
Error 2  
An org.apache.jasper.JasperException was encountered  

javax.el.ELException: Problems calling function 'nav:review'  
Problems calling function 'nav:review'  
\[5/22/12 4:20:09 PM\] Ivan Klishch: You are running release CR2.7.10.2 FE2.7.10.2 (20120312025906 2012-03-12), please report your release number when reporting bugs.


Answers:
author: Renjith Pillai
body: This doesn't look like a permission issue. It would be better to raise an Atlassian support request since you are on OnDemand.


Tags: cloud

fisheye-crucible-svn-ondemand