youngmon/atlassian-qna huggingface dataset:
Can I use the changeset feature for all commits since last successful build?
Asked by sk-gudmundur-pall:

Greetings  

I would like to be able to run a step in pipelines only if certain files changed since last successful build, however it seems that this feature only considers the last commit, even if the build failed.  

Is there a way to do what I want?


Answers:
author: Theodora Boudale
body: Hi [@sk-gudmundur-pall](/t5/user/viewprofilepage/user-id/4556488) and welcome to the community.

I'm afraid that this is not possible at the moment.

In a pull-request pipeline, all commits are taken into account, and if you provide an includePathlist of patterns, a step will be executed when at least one commit change matches one of the conditions. For other types of pipelines, only the last commit is considered.

I can open a feature request for what you're asking for our development team to consider, please feel free to let me know if you'd like me to proceed with that.

Kind regards,  
Theodora

comments: author: Mat?? Stehl?k
body: Theodora, such feature would be very much useful for our team as well,

could you open the feature request please?


author: Theodora Boudale
body: Hi Mat??,

Of course, I went ahead and created a feature request here:

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

Please make sure to add your vote by selecting "Vote for this issue" in that ticket, to further express your interest.

You are also more than welcome to leave a comment if you'd like to share more details about your use case.

Please keep in mind that we don't provide ETAs and new features are implemented as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html). You can add yourself as a watcher to the feature request if you'd like to get notified via email on updates.

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora


Tags: bitbucket-pipelines

cloud
How do I request to run the garbage collection on my repositories?
Asked by FT:

Hi,

I cleaned two of my repositories with the BFG tool. They are named "sphincs_repository_ft" and "lorene".

How can I request to run the garbage collection on them?

Thank you for your help,

Francesco


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

I ran the GC against your repositories as requested to remove the dangling commits.

To give you some context around the git GC process, Bitbucket triggers a garbage collection on the repository after each push, however aggressive GC is triggered by GIT once the unreachable/dangling objects become older than 30 days.

For this reason, there is no need for us to trigger a manual GC for your repository. However, we are happy to run it for you if you feel there is a need.

We already have a feature request to allow users to mark repositories for git GC, as you can check here:

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

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

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

Kind regards,  
Caroline

comments: author: FT
body: Hi Caroline,

Thank you for running the GC against my repositories, and for the useful info! I added myself as a watcher as you suggested.

I wasn't satisfied with the sizes of my repositories yet, so I cleaned them up more with the BFG tool. Locally, their present sizes are roughly 1.5MB and 13MB. Since I need them to be cleaned up on Bitbucket as soon as possible, I have to kindly ask you if you can run the GC again.

Thanks again for your assistance!

Best regards,

Francesco


author: Caroline R
body: Hi, Francesco!

I'm glad to help you! :) I ran the GC again and managed to reduce the size of these repositories to 1.5MB and 13MB.

Kind regards,  
Caroline


author: FT
body: Hi Caroline,

Thank you!

Best regards,

Francesco


author: Caroline R
body: You are welcome, Francesco!

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Extend opsgenie alert pipe description with real live examples
Asked by Micha Mail?nder:

Hi,

the following Opsgenie alert pipe sounds promising, but I'm not understanding the use case for it. <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/opsgenie-send-alert>   

It would be great if the pipe description could be extended by a real live example instead of "Hello world"


Answers:
author: Igor Stoyanov
body: Hi [@Micha Mail?nder](/t5/user/viewprofilepage/user-id/3886582) . Thanks for your question. Maybe this can help you? [Opsgenie Alert API](https://docs.opsgenie.com/docs/alert-api) , [Alert fields](https://support.atlassian.com/opsgenie/docs/alert-fields/)   

Regards, Igor.


Tags: bitbucket-pipelines

cloud

opsgenie
BitBucket hook with jenkins
Asked by Karthik Sarode:

Hi team ,

Im trying to trigger the jenkins , whenever there is a change in my repository

But whenever I modify something in my repo , i could see the request log been updated immediately

But it is showing network error , so In jenkins Im not able to trigeer the build upon change in repo

Please help me to solve this issue as Im new to Jenkins \& Bitbucket

![Screenshot 2021-09-14 145339.png](/t5/image/serverpage/image-id/160165i118A549C2B39561F/image-size/large?v=v2&px=999 "Screenshot 2021-09-14 145339.png")![Screenshot 2021-09-14 145419.png](/t5/image/serverpage/image-id/160166i25AECE1BE7770792/image-size/large?v=v2&px=999 "Screenshot 2021-09-14 145419.png")


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

Could you please confirm if this is happening on Bitbucket Cloud? If so, could you check if you have whitelisted our IPs on the server where you have Jenkins?

You can check our IP's on our [What are the IP addresses to configure a corporate firewall?](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/) documentation and, as you will have to use webhooks, you will also need to whitelist Atlassian's IPs:

* [https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#Atlassianclou\[...\]ingConnections](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#AtlassiancloudIPrangesanddomains-OutgoingConnections)

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

Kind regards,  
Caroline


Tags: cloud

jenkins
??????????????????????????
Asked by KKozue:

Bitbucket ????????????????remove?????????????????????????????

??????

Error

Some principals were either not found or are not valid.

??????????????????

??????????????????????????

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


Answers:
author: KKozue
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)

I tried to delete it again.

I'm not sure why, but I was able to delete it.

Thank you for help.

Kozue


author: Theodora Boudale
body: Hi [@KKozue](/t5/user/viewprofilepage/user-id/1650616),

I would like to ask the following, so we can better help you:

1) Could you give us the worpsace-id, repo name, and name of the user you are trying to remove, but masked? (E.g. like a\*\*k\*\*o\*\*). This way I can locate them in our system and search our logs for any errors.

2) Could you also please try removing the user one more time now, when you have the chance, and let me know? This way we will have a more recent event of this error in our logs that I can check.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

language-ja
What are the best practises to collect the release notes when having JIRA - Bitbucket integration?
Asked by Juha V?lim?ki:

What are the best practises to collect the release notes IF there are many JIRA projects contributing to the same project/repository?


Answers:
author: Aron Gombas _Midori_
body: Jira's built-in "release notes" feature focuses on a single project.

If you use the Bitbucket integration, then you probably make your commits mentioning precise Jira issue keys in the commits or in the branch name, is that correct? If not, then it is a good practice, because then your commits will be precisely linked to the corresponding user stories, tasks, bugs, etc. This app helps to [implement a commit policy](https://marketplace.atlassian.com/apps/1214430/better-commit-policy-for-bitbucket?hosting=server&tab=overview) like that.

After that you should be able to collect the issues to be included in the release notes with running [JQL queries against the Development field](https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-development-fields-reference-973491363.html). It works cross-project.

When you have the issues, you can export those to a release notes with multiple apps like [this one](https://midori-global.com/products/better-pdf-exporter-for-jira/server/export-samples/jira-release-notes-pdf-exports).

comments: author: Juha V?lim?ki
body: We have issue keys in the commits, isn't that the pre-requisite for seeing the commits in "Development field" in the first place?

You suggestion was looking promising, but there is no way to see the project or branch name in the "Development field", right?


author: Aron Gombas _Midori_
body: > but there is no way to see the project or branch name in the "Development field", right?

If you mean the Jira project by "project", then it is not the "Development" field, but the issue that determines it. If you mean the Bitbucket project, then it may be available.

But the branch is [definitely available](https://confluence.atlassian.com/jirasoftwareserver/advanced-searching-development-fields-reference-973491363.html) like this:

```
development[branches].all > 2
```


author: Juha V?lim?ki
body: I mean BitBucket project.

The branch _name_ is not available, only the amount of branches.


author: Aron Gombas _Midori_
body: It seems you're right... I'm surprised, I always thought you can access the related branch names through that field.

But the fact that only the \<, =, etc. operators with numerical arguments are supported also suggests that this is a plain number only.


Tags: bitbucket-server

jira

release-note

server
programatically parse bitbucket pipeline log file of previous step
Asked by Magnus Kriel:

I was wondering if Bitbucket pipelines has a mechanism to parse the log file of the previous step?  

I have situations where the log file generated from my build step contains warning messages which is not a hard fail but would like the catch the warning messages by searching for known specific warning messages and fail the build step if found.

Is this possible?


Answers:
author: Eduardo Asenjo
body: As workaround. If you're the one running specific commands, you can always prepare the ground for that.

In your own commands with warnings you can store that information in a log file or similar, in a particular folder. Then in that particular step use \`artifacts\` to keep those files available to download or any step that is coming after.

Reuse those artifact files to read them and identify if inside them you've any of those 'warning' or the flag that you used.

Would that work for you?

comments: author: Magnus Kriel
body: Almost. The commands used is the python coverage command which runs unit tests etc. If I can somehow pipe the stdout to a file while the command is running, I can then use the log file as an artifact as you mentioned.

Is it possible to pipe (split) the output of a command to a file without disrupting the standard flow of stdout/stderror?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Bitbucket Runner - concurrency
Asked by Mach Dinh-Vu:

I got bitbucket runner working, but it is a queue, that is only one pipeline can execute, the other has to wait until the first completes.

How do I configure one runner to execute concurrently by as many pipeline as it is possible?


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

A runner is a resource you provided to run your pipeline build and each runner is used for a step, hence when you have multiple steps or parallel steps it queues up because the resources are currently used by one of the steps.

However, if you wish to run all the parallel steps together you can create a runner for every single step and make use of the label to label the runner according to your steps. It's possible to host multiple runners on a single host as long as the host has the necessary resources to run all the builds or otherwise the build will fail.

In your case, you need to create other runners to run all parallel steps of your pipeline build. You can make use of the label for each parallel step, for example:

```
runs-on:           - 'self.hosted'          - 'check.files'......          runs-on:           - 'self.hosted'          - 'static.code'
```

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

Kind regards,  
Caroline

comments: author: Mach Dinh-Vu
body: Thanks, works well.


author: Caroline R
body: Hi, [@Mach Dinh-Vu](/t5/user/viewprofilepage/user-id/4555469)!

Thanks for your confirmation, I'm glad to know it worked!

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

bitbucket-runners

cloud
Unable to add reviewers for pull requests - 403 - Something went wrong
Asked by Matt Weinbender:

Hi,

I have a private repo on the Bitbucket cloud. I have myself (admin) and 3 other users with read rights (have also tested granting write and admin rights to the other 3). When I go to an open pull request and select the control for Add Reviewer, I select one of the reviewers from the dropdown list. I immediately get the error "Something went wrong. We couldn't add a reviewer. Wait a few minutes and try again."   

I've been testing this daily for a few weeks now and the error never seems to resolve. I've tested in both Chrome and FireFox and get the same error.

Looking at the console error in the browser, a 403 Forbidden. Attaching the error below.   

Any help is greatly appreciated.

-Matt

![BitBucket Reviewers Bug 403.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/160059iD4AAF34C8965153D/image-size/large?v=v2&px=999 "BitBucket Reviewers Bug 403.jpg")


Answers:
author: Theodora Boudale
body: Hi Matt,

I searched our logs and I found the events with a 403 error, but I cannot see any indication of why this is occurring. I can also see that the user has access to the repo.

I went ahead and created a support ticket for you for this issue, so we can investigate further. You should have received an email with a link to the ticket. If not, please let me know and I can post it here (the support ticket will be visible to you and Atlassian staff only, no one else can access it even if they have the link).

If you have any questions, please feel free to let me know.

Kind regards,  
Theodora

comments: author: Matt Weinbender
body: Hi Theodora,

I checked but don't see an email with the ticket link. If you could re-send it, that would be great.

Thanks!

-Matt


author: Theodora Boudale
body: Hi Matt,

I'm afraid I cannot resend the email, as it is automatically sent by our system on ticket creation.

This is the URL for the ticket:

<https://getsupport.atlassian.com/servicedesk/customer/portal/11/BBS-172355>

Please make sure you log in with the email of your community account in order to be able to view it, as I opened the ticket on behalf of this email.

Feel free to let me know if you have any questions.

Kind regards,  
Theodora


author: Pradeep Sanjeewa
body: Hi Matt,   

I also got the same error. When we can expect this to be resolved? Is there any workaround for this?

Thanks,  
Pradeep


author: Matt Weinbender
body: .


Tags: bitbucket-cloud

cloud

pull-request

review
Is there any alternative for the 'External Hooks' plugin?
Asked by Bibin Varghese:

We are in the path of upgrading our Bitbucket version from v4.14.4 to v7.6.2. Do we have any alternative plugin available for the 'external hooks plugin' since it shows a paid update? Or any similar inbuilt feature available in Bitbucket v7.6.2?


Answers:
author: Aron Gombas _Midori_
body: There isn't a drop-in replacement AFAIK, but if you explain what did you use it for, there may be an alternative for that particular use case...

comments: author: Bibin Varghese
body: Thanks for your reply [@Aron Gombas _Midori_](/t5/user/viewprofilepage/user-id/502447) . Actually we use the external hooks plugin heavily for our commit hooks.


author: Aron Gombas _Midori_
body: "Heavily" doesn't precisely describe the use case.

But if it means that you use it for a large number of different use cases, then I'm afraid there is no other app that'd replace External Hooks.


author: Bibin Varghese
body: [@Aron Gombas _Midori_](/t5/user/viewprofilepage/user-id/502447) ,We use these basically for 3 things, one category calls a jenkins job, the other one is calling a lambda function to sync code with aws and the third one which is for syncing using git clone and pushing it into azure.


author: Aron Gombas _Midori_
body: Well, you could all these with our [Better DevOps Automation](https://marketplace.atlassian.com/apps/1224574/better-devops-automation-for-jira?hosting=datacenter&tab=overview) app, because it can also execute [external programs](https://midori-global.com/products/better-devops-automation-for-jira/server/documentation/scripts-programs/) as steps in a simple or complex automation for rule. But it probably the same case for you, as it is also a paid and supported app.

*(Disclaimer: I'm a developer working on it.)*

*![run-groovy-python-bat-sh.png](https://community.atlassian.com/t5/image/serverpage/image-id/162429i914A760D829A26E7/image-size/large?v=v2&px=999 "run-groovy-python-bat-sh.png")*


Tags: app

bitbucket-server

server
Deleting large repositories failed
Asked by Robin Betts:

I have two large repositories in Bitbucket Cloud (77GB and 41GB, mostly LFS data) which I have tried to delete using the admin interface. Both delete requests resulted in 500 errors.

Neither of the repositories can now be accessed through the web UI (404 error), though the larger of the two still appears on the repository list.

How can these repositories be removed fully?


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

I confirmed that the repository was still appearing on your repository list because the deletion process failed and the repo was stuck in 'Deleting' mode. In this case, I went ahead and removed this repo for you.

About the other repository that is not appearing on your repo list, it seems it was deleted as expected. Could you please confirm that it is no longer appearing under your workspace?

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud

delete

git-lfs
How to add a artifcts as report
Asked by lprada:

HI, I am using a tool for genrating a xml report witu code duplciation in my solution. I want to generate a report of this files.

I saw this page but I dont understart how to select the file to upload

<https://support.atlassian.com/bitbucket-cloud/docs/code-insights/>

Please any example or help?


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

Thank you for reaching out to Atlassian Community!

You can generate an artifact in a step by following the steps on [this](https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/) documentation.

Once the artifact is generated, you can upload it using various methods as mentioned in the following links:

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

* [Publish and link your build artifacts](https://support.atlassian.com/bitbucket-cloud/docs/publish-and-link-your-build-artifacts/)

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Askpass wants to use your confidential information stored in "bitbucket.org" in your keychain.
Asked by zachary_fields:

Do you want to allow access to this item?

This only comes up when I use SourceTree, so I believe they go together - but I don't know. If that is true, then why doesn't it just say "SourceTree wants to use..."?

I'm a virophob, so I am looking here for answers.

I will gladly accept answers of in the flavor of "Always Allow", "Deny" or "Allow", but I would prefer a short explanation if you are willing and able.


Answers:
author: KieranA
body: Hi Zachary,

Yup, absolutely. Askpass is a tiny application that we've developed to communicate with Git/Hg for authentication, it basically just communicates for auth details as Git/Hg need it from the terminal, so if you ever see anything relating to Askpass just hit "Always Allow" otherwise you'll always get prompted for authentication through SourceTree.

Hope that helps.
No version of Sourcetree for Linux, despite very clear interest!
Asked by Alexander Trauzzi:

I've really come to appreciate Sourcetree on OSX and Windows and would love to be able to use this great tool in Ubuntu Linux.

I've read a lot of posts saying "we're aware you want a Linux version", but little else beyond that. All the while, the requests for a Linux version continue to pile up.

When can we hope to see an Ubuntu PPA for Sourcetree?


Answers:
author: KieranA
body: Hi Alexander,

We have no plans to develop a Linux version at the moment and a Linux version is not in development, that much I can say. We definitely go by community interest and statistics. Windows came about first as it was more popular based on data that the teams at Atlassian gathered.

But, and a big but, as Steve has rightly pointed out, there were never any plans for a Windows version either. So the official statement is that there's no Linux version in development, nor planned, but that was said about Windows, too.

There was a Windows question on Answers that had so much Windows interest it was one of the driving factors to reconsidering a Windows port. [There's a Linux one, too.](/questions/149631/sourcetree-for-linux)

Hope that helps

comments: author: ?mer G?K
body: This answer was 3 years ago. What about now @Kieran Senior \[Atlassian\]?


author: John_Chesshir
body: I'd love to hear a new answer, too!


Tags: ubuntu