youngmon/atlassian-qna huggingface dataset:
The Bamboo "Branch Automatic Clean-up" feature doesn't appear to be working.
Asked by Guy Anela:

The Bamboo Branch Automatic Clean-up feature doesn't appear to be working. We have the Automatic Branch Clean-Up option enabled and set to remove branches after 7 days. The branches do NOT have the Do not clean up this Plan Branch automatically option checked. We're using Bamboo version 4.0.1 build 2907 which is linked to a GIT repository.

Let me know if you need any further information. Any help you can provide would be greatly appreciated... Thanks!


Answers:
author: Marcin Gardias
body: Hi,

Branch support in Bamboo has been greatly improved since version 4.0.1. That includes, among other things, fixing problems with branch expiry not working correctly with Git

Therefore I would strongly recommend upgrading to Bamboo version 4.3.

comments: author: Guy Anela
body: Thanks for the reply Marcin. This was actually fixed in Bamboo version 4.1.1. See <https://support.atlassian.com/browse/BSP-8547>.


Tags: automation

branch

housekeeping
The Bamboo "Branch Automatic Clean-up" feature doesn't appear to be working.
Asked by Guy Anela:

The Bamboo Branch Automatic Clean-up feature doesn't appear to be working. We have the Automatic Branch Clean-Up option enabled and set to remove branches after 7 days. The branches do NOT have the Do not clean up this Plan Branch automatically option checked. We're using Bamboo version 4.0.1 build 2907 which is linked to a GIT repository.

Let me know if you need any further information. Any help you can provide would be greatly appreciated... Thanks!

<br />


Answers:
author: Guy Anela
body: This is fixed in Bamboo 4.1.1 (See <https://jira.atlassian.com/browse/BAM-10737>).


author: ArmenA
body: Hi Guac,

There are a lot of improvements and bug fixes related to branches in the latest Bamboo versions. Would that be an option for you to upgrade to the latest amBboo version (4.3.2)? You can install it in a test environment and check if the same problem persists. The feature is improved in the latest version to "\<label id="label_chain_branch_enabled" for="chain_branch_enabled"\>Automatically manage branches\</label\>" as per [the documentation](Automatically%20manage%20branches%20more%20info%20about%20this%20option...).

Cheers,  
Armen


Tags: automation

branch

housekeeping
The Maven goal that Bamboo will execute
Asked by Kamohelo Mofokeng:

Hi All,

I'm an absolute newbie (just started yesterday) to maven \& bamboo; hence my question:

What should I specify for the Maven 2.x Configuration Goal **\***setting? Is there any relation between this goal text area withpom.xml \& settings.xml?

Kind Regards,

Podumo


Answers:
author: Kamohelo Mofokeng
body: Solved my issue by removing the value I had specified for the sub directory field.  


author: James Dumay
body: Put whatever it is in the Goal field that you use to build your maven project. For example, if you run 'mvn clean test' on the command line to build and test your project, put 'clean test' in the Goal field.

settings.xml just holds the settings for your Maven setup and the pom.xml contains the instructions to build your project. The goal field really depends on what goals you need to call to run plugins defined in the pom.xml :)

comments: author: Kamohelo Mofokeng
body: Thank you so much for the response.

On command line, I use: mvn install so going by your advice, I put 'install' in the Goal field. When I run the job I get:

\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>

Starting task 'CustomerCare Maven Continuous Integration build' of type 'com.atlassian.bamboo.plugins.maven:task.builder.mvn2'

Beginning to execute external process for build 'CustomerCare - CustomerCare Integration Deploy - Build Job'  
... running command line:   
/opt/apache-maven-2.0.9/bin/mvn  
-Djava.io.tmpdir=/tmp/####-#####-XXXXX  
install  
... in: /root/pandafood/Bamboo/bamboo-home/xml-data/build-dir//####-#####--XXXXX/@@@  
... using extra environment variables:   
MAVEN2_HOME=/opt/apache-maven-2.0.9  
JAVA_HOME=/opt/jdk1.6.0_13/  
useMavenReturnCode=  
M2_HOME=/opt/apache-maven-2.0.9  
PATH=/opt/jdk1.6.0_13//bin:/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/apache-maven-2.0.9/bin

Failing task since return code was -1 while expected 0

\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>\>

Thank you in advance....


author: Felipe Cuozzo
body: I'm assuming you read this page: <https://confluence.atlassian.com/display/BAMBOO/Maven>

And also that your project/Maven build works locally on your box when you run "mvn install". The log you posted show barely any information that would help diagnose what is going on.

If you are still having problems please try to attach a picture as well of the Job configuration and the full log of the execution.

Cheers,  
Felipe


Tags: cloud
Choosing variable value for parametrized plan from predefined list of choices?
Asked by Tomas Buzga:

I have many small packages, which are being worked on, and built individually, using basically the same pipeline (only the package name differs).  
So i guess i need to use parametrized plan, to allow the user to specify name of the package before running it.  
Is there any way of extending the Bamboo UI, so the variable value with package name could be chosen from a list of values?  
The problem is, there are approx. 50 of these packages in every project/branch, they are being updated relatively often, built on demand, and the idea of a user typing the value every time... it's too error prone and unfriendly.

From what i seen so far, Bamboo lacks this feature (define list of choices for variable value), but could it be solved via some kind of plugin?


Answers:
author: James Dumay
body: Why not use jquery to change the behavior of the Custom build dialog? You could make particular variables madatory by intercepting the click on the Run button or have predefined values (even change a text input to a dropdown) for specific variables by injecting the javascript in using a [Web Resource](https://developer.atlassian.com/display/BAMBOODEV/Web+Resources) Bamboo plugin.

comments: author: Tomas Buzga
body: Thank you, that would also be a way how to do it.  
Nevertheless, because in this case i need to change just one variable, i decided to alter templates displayBuildPlansList.ftl, displayWideBuildPlansList.ftl, and menus.ftl, allowing me to make the drop down box accessible right away (depending on whether the plan uses that special variable), and select values with just one click (no need to even open that parametrized build form).


author: Tomas Buzga
body: I wrote a web panel module plugin, which ended up as a dead end, because of the rather limited option where it can be actually placed.

But while i was working on the plugin, i discovered i can change the original templates - had no idea i could do that!  
So i made changes to the "displayWideBuildPlansList.ftl" template, but i am unable to make it work with the AJAX request.  
I can inject the variable name/value into the request URL, the plan is being run, but the value is not overriden - aparently, either the AJAX request isn't written to account for plan variables, or i am using wrong variable name.  

So now my question is:  
What is the correct way to pass the plan variable/value via the standard AJAX request ?  
Is it even possible?
Change a bamboo job to be a testless build
Asked by Ferenc Deak:

I have a setup where we compile our application wth a set of different job, one of them requires that unit tests are not supposed to be run since it is a cross compiled executable which does not run on the platform. How can I make one job of a Plan to be a testless build?


Answers:
author: Jamie Wark
body: Did you figure this out? I'm trying to do exactly the same thing


Tags: test
Bamboo System Time
Asked by William Wells:

We are starting to get projects working with Bamboo v4.0 and noticed that the System Information page is stating that the User Timezone is Etc/Greenwich instead of the Atlantic East Coast. Is there a way I can change this so it reflects what the true system time should be? I can't find a way to modify this like you would in JIRA.


Answers:
author: James Dumay
body: You can set the timezone by specifying the -Duser.timezone=America/New_York in the JAVA_OPTS environment variable and restart your server.

comments: author: James Dumay
body: Here is a list of [valid timezone values](http://en.wikipedia.org/wiki/List_of_tz_database_time_zones).


author: William Wells
body: I couldn't just add this as another export for the JAVA_OPTS like I initially thought, but when I added it to the existing line that dealt with the "headless" it worked out fine. Thanks


author: Pat Sissons
body: I am a bit confused about this configuration of timezones. Our server that runs Bamboo is configured to use UTC (and that time information is correct). But the User Timezone is also configured to UTC, which is wrong. I would assume the web system would check the browser's timezone and use that when rendering pages, but from your response it sounds like we have to configure the system to use the same timezone for all users? This definitely won't work for us as we have users in different time zones.


author: Zans McLachlan
body: We have hit this same wall. With a global team, it is confusing to have the time stamps based on the locale of the actual server. Is there a fix for this?
How can I turn off/hide the "Security" tab in a public BitBucket repository?
Asked by RoseSilverSoftware:

I have a public repo that I use for the issue tracker and wiki only to provide an end user support channel. I just used an incognito tab to look at that repo and noticed that between "Issues" and "Wiki" there's a third tab, "Security", that when clicked says:

"Secure your team's workflow from development to deployment ... With Bitbucket's security integration with Snyk..."

Is it possible to hide/remove that tab so that only "Issues" and "Wiki" are included? I looked all over the various settings screens and couldn't find anything obvious.

Thanks in advance!


Answers:
author: Syahrul
body: Hi [@RoseSilverSoftware](/t5/user/viewprofilepage/user-id/2124936)

I just look into this and I can confirm that we don't have a feature or ability to remove/hide the Security tab at this moment.

However, I have gone ahead to raise a feature request on behalf of you since I notice there are none at this moment. Please **Vote** and **Watch** the feature request so that you'll receive an update if we have any at:

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

I hope this helps.

Cheers,  
Syahrul


Tags: bitbucket-cloud

cloud
I don't get invitation for repositories
Asked by broshnan:

my organization sends my bitbucket invitation to certain repositories but I don't receive in my outlook mail. not even in the junk mail.

So I cannot collaborate in git with them ... need help ...


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

I performed an analysis on our logs and confirmed that your email had a block on the server that prevented emails from being sent to you. This can occur when the system tries to send an email to the user and the account does not exist, is not activated yet, or rejects the email for some internal reason.

In this case, I have removed the block from your email. Could you please ask your team to **remove** the invitation and send you a new one? They can do this by following the next steps:

In case they have invited you to a **specific repository**:

* Access the workspace \> Go to the repo they have invited you to;

* Access the **Repository Settings** \> **User and group access;**

* Click on the "invitation pending";

* Select the "**Cancel invitation**" option to remove the invitation;

* Add your email again to send a new invitation.

In case they have invited you to a **group on this workspace**:

* Access the workspace \> **Settings**;

* Access **User groups** \> Open the group they have invited you to**;**

* Click on the "invitation pending";

* Select the "Cancel invitation" option to remove the invitation;

* Add your email again to send a new invitation.

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

Kind regards,  
Caroline

comments: author: broshnan
body: Thanks a lot Caroline ...

I can receive the invitations now ..  
If there are any concern I'll let you know ...


author: Caroline R
body: Hi, [@broshnan](/t5/user/viewprofilepage/user-id/4631856)!

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

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Attachment URL asking authentication after clicking on it in Jira service Desk.
Asked by Service Account:

We have a requirement where in we are building a custom UI element where we need attachment link. So we abstracting the Attachment URL via an API from Jira Service Desk. But when clicked on that URL its asks for authentication. We want in such a way that when our users are click on the Attachment URL it should be visible over browser or getting downloaded without any authentication.


Answers:
author: Ben
body: G'day!

I've noticed that this question has been opened for quite a while and has not yet been answered by our community. May I ask you to provide the API command you are running and also ask where is it executing in relation to Bitbucket Cloud?

Cheers,

Ben (Bitbucket Cloud)


Tags: bitbucket-cloud

cloud

jira-cloud

jira-service-management
Can i change my academic license to other workspace.?
Asked by Mazhar Imran _Student-PECS_:

I got academic license on my one workspace but by mistake i create repository on other workspace. Now i want to transfer my academic license to my other workspace.

Best Regards


Answers:
author: Caroline R
body: Hi, [@Mazhar Imran _Student-PECS_](/t5/user/viewprofilepage/user-id/4636447)! Welcome to the community!

Just to give you some context, the academic license is linked to your email. The account must be registered with your academic institution email in order to receive this discount. So it's not possible to transfer this academic license to another workspace that is not registered with your academic institution email.

However, you can [transfer the repository ownership](https://support.atlassian.com/bitbucket-cloud/docs/transfer-repository-ownership/) to the workspace that has the academic license (the transferred repository loses all access groups and doesn't inherit the destination account's default access groups. You'll have to set those on the repository after the transfer).

In order to **transfer the repository ownership**, you can follow the next steps:

* Access the repository you want to transfer \> click **Repository settings** in the left menu.

* Select the option **Manage repository** \> click **Transfer repository**.

* Enter the **Workspace ID** of the workspacein which you want to transfer the repository.

* Click **Transfer.**

* Then, Bitbucket will send an email to the new owner or workspace administrators containing the transfer request with a link to the page that allows the user to accept or reject the transfer.

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

Kind regards,  
Caroline

comments: author: Mazhar Imran _Student-PECS_
body: Hey,

I have transferred the license to my other workspace. Seriously am impressed with your service like how fast you respond and solve the problem. Thankew so much bitbucket Team.

Best Regards

Mazhar Imran


author: Caroline R
body: Hi, Mazhar!

Thank you for your feedback! :) I'm glad to know you were able to solve your problem.

Kind regards,  
Caroline


Tags: bitbucket-cloud

cloud
Pipeline does not always trigger on commit to master
Asked by Bree Coffey:

Hello, our team has a few bitbucket repos where we notice that the pipeline is not triggered when a commit is made to master. The pipeline YAML file is valid, and when we run the master branch pipeline manually, it works fine. This is also non-deterministic, as sometimes a commit to master will trigger. We are using a squash commit to merge from release to master.  

Here is an abbreviated version of what our pipelines file looks like.

```
pipelines:
  branches:
    master:
      - step: ...
    release/*:
      - step: ...
    feature/*:
      - step: ...
?
```

Is there anything we can do to ensure it always triggers on a commit to master? We do not have this issue with merging feature branches into release.


Answers:
author: Syahrul
body: Hi [@Bree Coffey](/t5/user/viewprofilepage/user-id/4636114)

Welcome to the community!

Just to clarify, when the pipeline fails to automatically start is it on a normal push commit, or is it from a PR merge?

Can you verify this because if it's specifically didn't start from a PR merge then most likely caused by the PR being too large which didn't trigger the webhook to start the pipeline?

You can do a quick test on this by navigating to **Repositories settings** \> **Webhooks**there should be two pipelines read-only hooks as the screenshot below

![Screenshot 2022-01-10 at 12.11.31 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/176949i122A9F9CDFAD4407/image-size/large?v=v2&px=999 "Screenshot 2022-01-10 at 12.11.31 PM.png")

Click view request on both of the hooks and click **Enable History** this will enable a log for both webhook. You can then create a pushed commit and a dummy merge PR to see if the Webhook did trigger accordingly to run the pipeline or not.

If both work fine then I suspect the issue could be due to large PR, you need to try merging a large PR to see if the webhook did get triggered or not.

I hope this helps, let me know how it goes.

Cheers,  
Syahrul


Tags: bitbucket-pipelines
Stopped pipeline is notified as failed
Asked by Khalifa EL BANAN:

Greetings,

Is there any way to notify stopped pipelines as "stopped/interrupted" instead of "failed" ?

Thanks in advance.


Answers:
author: Caroline R
body: Hi, [@Khalifa EL BANAN](/t5/user/viewprofilepage/user-id/4121593)!

Thank you for reaching out to Atlassian Community!

Currently, Bitbucket is not sending notifications when we stop pipelines, just when pipelines failed. Could you please confirm if you are receiving notifications for stopped builds?

Looking forward to hearing from you.

Kind regards,  
Caroline

comments: author: Khalifa EL BANAN
body: Hi [@Caroline R](/t5/user/viewprofilepage/user-id/3934006)

I confirm that we're receiving notifications for stopped builds as failed (with Slack integration).

Greetings.


author: Caroline R
body: Hi, [@Khalifa EL BANAN](/t5/user/viewprofilepage/user-id/4121593),

Thanks for the additional information. Could you please share with us the Slack notifications set to this repository?

You can find this by accessing your repository \> **Repository Settings** \> under **Slack** , open **Settings**:

![Screen Shot 2021-11-22 at 6.00.36 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/170499iDFE86CC1E0EC672B/image-size/large?v=v2&px=999 "Screen Shot 2021-11-22 at 6.00.36 PM.png")

Kind regards,  
Caroline


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Only a user can't receive bitbucket invitation e-mail
Asked by Metin ??nar:

We are using Jira, Confluence and Bitbucket Cloud.

We have invited all the users without any problem. However only one user can not receive the invitation email. We resend it multiple times and tried removing it and added him again.

Could you please support us to add the email address to the Bitbucket workspace.

Best Regards,

Metin


Answers:
author: Theodora Boudale
body: Hi Metin,

I checked the invitations sent for the workspace you administer and I found an invitation to an email address that was in one of our suppression lists. I went ahead and removed it, could you please try resending the invitation one more time now?

A new invitation needs to be sent as the previous ones were dropped.

Please feel free to let me know if things are ok now and if you need anything further.

Kind regards,  
Theodora

comments: author: Metin ??nar
body: Hi Theodora,

The problem has gone. Thank you for your quick support.

Best Regards,

Metin


author: Theodora Boudale
body: Hi Metin,

Thank you for the update and you are very welcome, I'm glad to have helped.

Please feel free to reach out if you ever need anything else!

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Is it possible to recover one old mercurial repository?
Asked by Alexandre Tolstenko:

I forgot to update old repositories from mercurial to git. Can I have at least a snapshot of it pls? this one: [tolstenko/anticheattoolkit](http://bitbucket.org/tolstenko/anticheattoolkit )  
I checked this [answered question](https://community.atlassian.com/t5/Bitbucket-questions/Is-there-any-way-to-access-an-old-mercurial-repository/qaq-p/1640627#U1861976), but the flow is not working anymore :-(   
thanks


Answers:
author: seanaty
body: If you're looking for a public repository, the Software Heritage graciously archived all the **public** repositories and made them available here: <https://bitbucket-archive.softwareheritage.org/>  

If you're looking for a private repo then you'd have to go through support.

EDIT: Looks like it's available here: <https://bitbucket-archive.softwareheritage.org/projects/to/tolstenko/anticheattoolkit.html>

comments: author: tolstenko
body: Thanks. It worked for me!


author: Caroline R
body: Hi, [@Alexandre Tolstenko](/t5/user/viewprofilepage/user-id/903172)!

Thank you for reaching out to Atlassian Community!

We definitely can help you recover this repo. However, I checked the Bitbucket account associated with the email you used to create this question and it doesn't have access to the workspace you mentioned. If you still have access to this other account, could you please add a comment here with it to approve this process, so I can create an internal ticket for you?

Please let me know if you have any questions.

Kind regards,  
Caroline

comments: author: tolstenko
body: Thanks for the support. I probably create it with another email that I can even remember. But the [@seanaty](/t5/user/viewprofilepage/user-id/1301071) solved my problem. Thanks!


author: Theodora Boudale
body: Hi everyone,

Atlassian made a decision to move away from maintaining and supporting Mercurial repositories in 2019.

This was announced in community:

* <https://community.atlassian.com/t5/Bitbucket-articles/What-to-do-with-your-Mercurial-repos-when-Bitbucket-sunsets/ba-p/1155380>

and on our blog:

* <https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket>

Bitbucket Cloud Support team is no longer able to restore those repositories.

If you are looking for a Mercurial repository that was public, all the public repos were archived by Software Heritage:

* <https://bitbucket-archive.softwareheritage.org/>

We will not be able to meet any further requests for recovery of private HG repositories and users will need to recover those from local copies only.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

mercurial