youngmon/atlassian-qna huggingface dataset:
Optimize renovate image in renovate-scan pipeline
Asked by Claudia Ballano Sanchez:

Hi team,

I have a question regarding the use of the `renovate/renovate:37.6-full` image in our Renovate scan pipeline. Is it necessary to continue using this specific version?

Additionally, is it possible to update to the latest image and potentially use a lighter version to optimize performance and reduce resource usage?

I'm getting a docker exceeded memory

Thank you for your assistance.

Best regards,


Answers:
author: Ben
body: Hi [@Claudia Ballano Sanchez](/t5/user/viewprofilepage/user-id/5559341)

I have checked the commit history for the pipe and can see that the renovate version used is indeed 37.6-full.

I have shared your query with our pipes engineers and will get back to you once I have a response from them.

Just to clarify - do you mean a version of a smaller filesize without the "full" tag as per the existing tags in Dockerhub?  

* <https://hub.docker.com/r/renovate/renovate/tags>

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Claudia Ballano Sanchez
body: Hi!

Thanks for the quick reply!

I noticed that the non-full images are smaller, with the full images being around 1.5 GB compared to approximately 328.47 MB for the others. Is there a specific reason for not choosing the smaller images? Additionally, is there any reason you haven't switched to version 38 yet?

Thanks!


author: Ben
body: Hi [@Claudia Ballano Sanchez](/t5/user/viewprofilepage/user-id/5559341)

Our pipes team have confirmed that they are working toward updating to a later version (version 38) and this should be in the next release - they are also in the process of investigating the memory limit issues. I don't have an ETA for this release.

In terms of the image size, this should not impact on the performance of the pipe. Although, we have raised a feature request to use the slim version of the image - you can Watch this for future updates:

* <https://community.atlassian.com/t5/Bitbucket-questions/Renovate-Slim-docker-image/qaq-p/2494222#M98193>
* <https://jira.atlassian.com/browse/BCLOUD-22916>

Cheers!

- Ben (Bitbucket Cloud Support)


author: Oleksandr Kyrdan
body: HI [@Claudia Ballano Sanchez](/t5/user/viewprofilepage/user-id/5559341) [@Ben](/t5/user/viewprofilepage/user-id/4537226)

We have released a new version of the **renovate-scan pipe** based on  
renovate/renovate:38.19-full docker image:

```
script:  - pipe: atlassian/renovate-scan:0.6.0    variables:      CONFIG_FILE_PATH: '<your-config.yaml>'
```

There were no memory issues detected by our team.

But, if you have still struggled with, you could follow the next guides:

<https://support.atlassian.com/bitbucket-cloud/docs/step-options/#Size>

<https://support.atlassian.com/bitbucket-cloud/docs/databases-and-service-containers/>

Best regards,  
Oleksandr Kyrdan


author: Claudia Ballano Sanchez
body: Thanks for the update! I appreciate the team's efforts in releasing the new version and addressing the memory issues. I'll check out the guides if we encounter any further problems.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

pipes

renovate

scan
How to use REST API to check whether issue tracker of a repo is set to private?
Asked by Praveen Yalagandula:

For a public repository, bitbucket.org UI allows setting the issue tracker to private. Is there a REST API end point to either set or at least check if the issue tracker is set to private for a repository?

Repository resource only has has_issues boolean but doesn't have any indicator to show if the associated issue-tracker is set to private.

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


Answers:
author: Ben
body: Hi Praveen,

Unfortunately - it is not possible to interact with the issue tracker in this manner via our API, we have had a few feature requests closed due to inactivity over the years - for example (see [feature request policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html)):

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

In full transparency, I don't expect a feature for this to be worked on any time soon based on the traction of previous FR tickets. I would suggest checking the status in the UI, or switching to JIRA for issue management/tracking.

Regards,

- Ben (Bitbucket Cloud Support)

comments: author: Praveen Yalagandula
body: Hi Ben,

Thanks for your detailed response.

Even if setting the flag is not possible, is it possible to just check via REST API whether the issue tracker is set to private?

Context: Our users use UI to set the flag. However our automation at this point needs to simply check if the flag is set to private or not.

Thanks,

Praveen


author: Ben
body: Hi Praveen,

Unfortunately not - this value is not recorded in the /2.0/repositories API endpoint which houses both repositories and the issue tracker - I double checked this just to make sure.

I have raised a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) on your behalf with our developers, 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-23348>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud

issue
Remove approved but "unmerged" PRs?
Asked by timothycosta:

We have a number of old PRs for branches that were merged manually outside of bitbucket. (A rebase against develop was the final step, in order to maintain a linear history). Is there a way to close these? They're cluttering the PR interface.


Answers:
author: Ben
body: Hi Timothy!

Welcome to the Bitbucket Cloud community :)

Are you able to decline these so they no longer show in your active PR list?

There is unfortunately no method for deleting PR's within the UI, we are tracking a [feature request](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) with our developers to implement this feature:

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

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: timothycosta
body: Close enough. At least the clutter is gone. Thanks.


Tags: bitbucket-cloud

cloud

pull-request
I Changed The main branch in the bitbucket from Repository setting does it impact the project ??
Asked by Hamid:

Hi  

I just want to do code analysis in snyk and the problem with snyk that i got is that snyk only analyze the main branch give the output and ignore other branches snyk don't analyze it   

i want to scan other branch that i have not the main branch so i change the main branch to the branch that i was to analyze in the Bitbucket from ( Repository Setting ----\> Repository Details ----\> Advanced)  

Changing the main branch in bitbucket to other does it impact the project ???


Answers:
author: Ben
body: Hi Hamid,

Any settings configured at the repository level don't affect the other repositories in the project.

If you wished to set the main branch for all the repositories in the entire project, this is configurable from the project settings menu.

Please let me know if further information is needed.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket Pipelines' public image caching
Asked by Yoshi Han:

<https://bitbucket.org/blog/bringing-speed-power-flexibility-12-new-features-bitbucket-pipelines>

According to the blog above, the Bitbucket Pipelines provides public image caching. Where can I find a list of cached public images?


Answers:
author: Mark C
body: Hi [@Yoshi Han](/t5/user/viewprofilepage/user-id/5558148)  

Welcome to the community.  

I don't think the cached public images are visible anywhere in the Bitbucket Cloud Pipelines UI.

Currently, when you use a public Docker image (that was not cached before) in Bitbucket Cloud Pipelines, it will be automatically cached in the background; hence, when you use the image again, you will notice a significant boost in starting up the image.  

Let me know if you have any further questions.  

Regards,  
Mark C

comments: author: Yoshi Han
body: Hi [@Mark C](/t5/user/viewprofilepage/user-id/1210823)   

Thank you for your answer, but I have additional question.  

Below is the part where the base image is downloaded. Can I determine whether a cached image was used by looking at the log below? Or can I find out by comparing build times?

![Screenshot 2024-08-05 at 11.25.17?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/339917i1BCC7E86091BBF7D/image-size/large?v=v2&px=999 "Screenshot 2024-08-05 at 11.25.17?AM.png")


author: Mark C
body: Hi [@Yoshi Han](/t5/user/viewprofilepage/user-id/5558148)  

May I confirm if the logs from the screenshot are from the "Build setup"? If not, unfortunately, the Docker image is not your base Docker image.  

The base Docker image is usually the one you use in your YAML configuration as "image:" tag.  

For example:

```
image: atlassian/default-image:4
```

<br />

Regards,  
Mark C


author: Yoshi Han
body: Oh, I see.  
You mean that the image used in the "bitbucket-pipelines.yml" file is cached.

But the above logs are from "docker build ...".  
So the base image used in Docker build process is not cached?

![Screenshot 2024-08-06 at 3.56.01?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/340171i97835981F698F9DE/image-size/large?v=v2&px=999 "Screenshot 2024-08-06 at 3.56.01?PM.png")


author: Mark C
body: Hi [@Yoshi Han](/t5/user/viewprofilepage/user-id/5558148)  

Unfortunately, no, we don't cache public build images that were built within the build step container by default, however, you have the option to cache them using [Bitbucket Cloud Pipelines caching feature](https://support.atlassian.com/bitbucket-cloud/docs/cache-dependencies/).  

Regards,  
Mark C


Tags: bitbucket-pipelines

cloud
Unable to delete a zombie repo
Asked by Naomi Ping:

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

Hi! I'm having trouble deleting a "zombie" repository. I can't open the repository page or delete it. When I click to open it, the page keeps loading, but nothing shows up. Could someone help me with this issue? Thanks!


Answers:
author: Ben
body: Hi [@Naomi Ping](/t5/user/viewprofilepage/user-id/5557801)

I've had a scan of the workspaces you are a member of and I can see that a number of repositories are currently pending deletion - the deletion process takes 30 days so it's likely that they are still in the process and this is why you cannot access them.

If you don't believe this to be the case - we will need further information, and this information would not be appropriate to share on a public forum such as community. I can see that you are a member of a workspace which is on a **Standard**plan, this means you have access to raise a ticket directly with our support team (hint: it's the other workspace you have access to, not the one you've used to raise this community post):

* <https://support.atlassian.com/contact/>

If you have issues raising a support ticket using the paid workspace URL, please let me know and share your timezone so I may raise a ticket on your behalf with the correct support team for your region.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
I can't use pm2 commands in bitbucket pipeline
Asked by ?brahim Sayar:

I have a bitbucket-pipeline file as below but i get a 'pm2: not found' error when pipeline worked. Thanks for now help and comments.

*** ** * ** ***

```
image: node:18

pipelines:
  branches:
    development:
      - parallel:
          - step:
              name: Development Build & Deploy
              caches:
                - node
              script:
                - pm2 reload 0
```


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

Pipelines builds that run on Atlassian's infrastructure run in Docker containers. For every step of your build, a Docker container starts (the build container) using the image you have specified in your bitbucket-pipelines.yml file. The step you have posted here will run in a Docker container based on the following Dockerhub image with the tag 18:

* <https://hub.docker.com/_/node>

Any tools you want to use during a step must be either preinstalled in the Docker image you use as a build container, or you will need to install them during the build by adding the necessary commands in your yml file's script for that step.

The Dockerhub image **node:18** doesn't have pm2 preinstalled. You can add a command to install it in that step (you can check [this doc](https://pm2.io/docs/runtime/guide/installation/), in case this is the tool you are referring to), or you can create a custom Docker image with this and other tools you need, and then use that as a build container in your Pipelines build:

* <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/#Creating-a-custom-build-environment>

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

Kind regards,  
Theodora


author: ?brahim Sayar
body: Because our test app stand up with pm2. Pm2 installed our server. You can see in the picture below.


author: marc -Collabello--Phase Locked-
body: Pm2 not found indicates that pm2 might not be installed.

However, why do you need pm2 in a build pipeline? Usually pm2 is used as a process supervisor for long-running node processes.

comments: author: ?brahim Sayar
body: Because our test app stand up with pm2. Pm2 installed our server. You can see in the picture below. My problem is why I can't use pm2 commands in pipeline.

![Screenshot 2024-08-02 at 09.30.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/339613i10F8328B0DF03CA1/image-size/large?v=v2&px=999 "Screenshot 2024-08-02 at 09.30.50.png")


Tags: bitbucket-pipelines

cloud

node

pm2

ubuntu
How to remove selectedUser filter redirect from Pipelines view?
Asked by jackiefraser:

When I select the "Pipelines" view in the sidebar on the repository, it shows the link as to "/pipelines", but once the page loads, it is redirecting to "/pipelines/results/page/1/filters/\[selectedUser={\<my id\>}\]" and I need to click on each avatar individually to see only the pipelines started by each person one at a time.  

I can't view all pipelines by all users in the list at the same time any more. Even if I remove the "/results/page/1/filters/\[selectedUser={...}\]" part of the URL it redirects back to this view filtered for only my user.  

Previously this Pipelines view would show all pipelines by all users by default, and I'm not sure what setting was changed so it now redirects to only my pipelines and I can't view all pipelines in one list any more.  

How can I remove this selectedUser filter redirect on my Pipelines view?


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

I am unable to reproduce the issue you are reporting. I suggest checking the following:

* Try clearing the cache on your browser.
* Ensure you are using one of the supported browsers, listed here:
  * <https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html>
* Try using an Incognito/Private window of a supported browser, with all browser add-ons disabled.

Can you please let me know if the issue still persists in each of these three cases?

Kind regards,  
Theodora

comments: author: jackiefraser
body: Thanks so much Theodora!  

I tried it in Incognito mode, and the redirect to selectedUser filter was not occurring!  

In my regular non-private browsing window I then deleted my cookies for bitbucket.org, signed back in, and the redirect is gone now. So maybe it was something in one of the cookies causing it? Either way, it's gone now, thanks for helping me solve this!


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!


Tags: bitbucket-cloud

cloud

pipelines
Sync tags of a forked repository
Asked by Christopher Pfindel:

Hi all,

I have a question concerning tags syncing between the original and forked repository in the bitbucket cloud (bitbucket.org):

- I forked from the original repository at master branch tag 2.0 (let's say)   
- Some changes were committed in the original repo's master branche with the tags 2.1, 2.2 and 2.3  
- I sync the repositories with the "sync"-Button in the cloud-UI.

The commits appear in the fork but the tags 2.1 to 2.3 are missing. The tags up to 2.0 are visible.

Is there a possibility to sync also the tags that were added after the original fork?

Thanks a lot for support.


Answers:
author: Syahrul
body: G'day, [@Christopher Pfindel](/t5/user/viewprofilepage/user-id/5557584)

Welcome to the community!

Unfortunately, the sync operation only fetches commits into the downstream repository and does not include tags. I haven't come across any feature requests for this functionality yet. If you could share your use case and explain why you need this feature, I would happily help raise a request for it.

Regards,  
Syahrul

comments: author: Christopher Pfindel
body: Hi [@Syahrul](/t5/user/viewprofilepage/user-id/744536)

thanks for your answer.

Our use case is as follows:

- we develop our central code and push it to our upstream repository  
- for each plant our software is controlling a customization is required. To keep the number of branches low but keep the possibility for updates for each plant a fork repository is created where the customization is done in an own branch.  
- for updates of the central code the repositories are synced, and we recognized that tags are not synced but stay at the state of forking.  
- we use tags to signal our bugfix version

It would be useful to see the current bugfix version also in the downstream repo.

A request would be highly welcome.  
Thank you and regards  
Christopher


author: Syahrul
body: Hi [@Christopher Pfindel](/t5/user/viewprofilepage/user-id/5557584)

Thanks for sharing the use case! I have raised a feature request on behalf of you. Please Vote and Watch it so that you'll receive an update in the future at:

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

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Wrong HMAC sent to webhook
Asked by Eugen_Litvinov:

I was trying to add a webhook with HMAC verification using node.js.

Signature received in x-hub-signature header always differs from calculated in webhook.

I've also verified signature in online HMAC generators like

<https://www.freeformatter.com/hmac-generator.html> or

<https://www.devglan.com/online-tools/hmac-sha256-online>

All of them returns same digest as I have in webhook, however different than bitbucket sends in headers.

Webhook calculates digest from raw body payload (string, utf8) using secret generated for webhook.

What can be wrong there?


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

I am unable to reproduce the issue you are reporting. I just tested this in a test repo of mine and the signature that Bitbucket sends in headers is the same as in the online HMAC generators you posted here.

If you have admin access to the repo, you can navigate to **Webhooks** from **Repository settings** , select **View requests** for the webhook, and then select **Enable history**. When an event occurs that triggers the webhook, you can view its details there. When looking at the details, there is an option to copy the body as raw string. You can use that to calculate the HMAC for this request.

If you're still experiencing issues, you can create a ticket with the support team for further investigation, as we'll need additional details to look into this. You can create a ticket via <https://support.atlassian.com/contact/#/>, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation. The support ticket will be visible only to you, Atlassian staff, and any users you add as participants, so anything you post there won't be publicly visible.

Kind regards,  
Theodora


Tags: cloud
Access only to subfolders in a repo
Asked by Anu Issac:

I've granted access to a user group named xxx-Engineering to the xxxrepository. Is there a way to create more granular access for specific subfolders within that repository? I want to grant access to two new users to only two subfolders. My instinct says this might not be possible and that we would need to move these subfolders to a new repository with a new group for access. Does anyone know of any tricks to achieve this?


Answers:
author: Aron Gombas _Midori_
body: As you though, it is not possible. The solution is to split the code to multiple repositories.

You should consider using Git submodules though! <https://www.atlassian.com/git/tutorials/git-submodule>


Tags: bitbucket-cloud

cloud
Review page in Bitbucket
Asked by Balasri sai chandana:

Hi, while we go to diff tab on pull request to start review we can see unchanged lines hidden which get expanded when shift + click is used but it needs to be done as many times as we scroll the file down till end.   

So is there any short key which expand all the hidden lines at once ?


Answers:
author: Theodora Boudale
body: Hi Balasri,

The option to show more lines will show 10 more lines every time it is clicked. I'm afraid that there is no option to show all lines.

Apart from the workaround that Aron mentioned, there is another menu item in the same menu to **View entire file**. This will open the entire file in a new panel.

We have a feature request for providing the option to show all lines or making the number of lines configurable when selecting to show more lines:

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

You can add your vote there (by selecting the **Vote for this issue** link) to express your interest. You are welcome to leave feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to be notified via email on updates.

Implementation of 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


author: Aron Gombas _Midori_
body: I don't know about one.

**Workaround:** you have an "Open in Source" item in the "..." menu at the file. It will open the complete file on the source branch of the PR. It is not annotated with the diffs (greens and pinks), but you can see the complete file immediately.


Tags: bitbucket-cloud

cloud