youngmon/atlassian-qna huggingface dataset:
ElasticBamboo Local Maven Repository
Asked by Derek Justinger:

What is the ideal way for Bamboo to install 3rd party jars?

I can setup and install my ElasticInstance with Maven and the Jars i need; however the instance terminates every time and does just not shut down (and save my settings).

So every new build cycle my log outputs

Failure to find com.microsoft.sqlserver:sqljdbc4:jar:4.0 in <https://repo.maven.apache.org/maven2>.....

<br />

Can i dynamically install these jars or is there a way to keep the state of my ElasticBamboo?

<br />

Thanks,

<br />

Derek

<br />

<br />

<br />


Answers:
author: cbenard1
body: Hi Derek,

I believe the best way to handle adding any additional data to your EC2 instance for building will be via EBS. You'll need to [configure your ec2 instance to use EBS](https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS) and then [populate the EBS volume](https://confluence.atlassian.com/display/BAMBOO/Populating+your+EBS+volume) with your third party data. This storage volume will remain in Amazon and be available to any EC2 instances. They can pick it up, mount it, and provide access to the data stored there to Bamboo agent for use.

<br />

Thanks!

Turner


Tags: cloud

maven
Bamboo remove unused build directories
Asked by Richard Cross:

I'm trying to find a way to identify "not recently used" build directories under bamboo-agent-home/xml-data/build-dir, so I can regularly delete those that have not been used in over a week to save disk space.

I know there's no functionality in the Bamboo UI to help with this, but is there a way I can get this information via the REST API?


Answers:
author: Todd Ellner
body: Hey Felipe,

I think you may be answering a slightly different question than the one he's answering. It's not the results that cause the pain. It's the working sources, jars and all that are used by the build process and which are stored in .../xml-data/***build-dir***/plan-key They aren't logs. They aren't artifacts or results or anything else which build expiry touches. They are working files which are never cleaned up.

I've taken to running a cron job for the build-dir directory which removes every top level directory which has an mtime of greater than two weeks.


author: Felipe Kraemer
body: Hi Richard,

Have you tried to use [specific build result expiry](https://confluence.atlassian.com/display/BAMBOO/Configuring+build+results+expiry+for+a+plan) or even [global build result expiry](https://confluence.atlassian.com/display/BAMBOO/Configuring+global+expiry)?

I believe this would work best for you.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer


Tags: bamboo-administration
how to customize bamboo build dashboard
Asked by Rajneesh:


Answers:
author: Felipe Kraemer
body: Hi Rajneesh,

Is there anything specific you'd like to see in the build dashboard?

Currently, the only way of customizing the dashboard is by developing a [Web Panel Module](https://developer.atlassian.com/display/BAMBOODEV/Web+Panel+Module) plugin.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer
Bamboo triggers deployment without trigger set in the deployment plan?
Asked by SuyambuGanesh T:

I am using Bamboo 5.6.2.

The steps I followed,

1. Setup trigger in deployment plan to start the deployment once the release build plan is success
2. Did a release and the released package was deployed by the deployment plan.
3. Removed the trigger in deployment plan to disable the auto deployment
4. Did a release build and still the deployment plan triggered automatically once the build was success, which is strange.


Answers:
author: Gretchen
body: Make sure you saved your change (removing the trigger). Recently Atlassian changed the way bamboo "saves" things. (specifically variables) and I often find myself disabling things, and then forgetting to scroll to the bottom of the page to save the changes. Surprise, it didn't change if it didn't get saved...(grumbles...) This may not be what you're experiencing but it may be worth checking.


author: Ron Chan
body: That sounds frustrating. Try restarting Bamboo which may surprisingly fix it.
502 - Web server received an invalid response while acting as a gateway or proxy server.
Asked by Simon Cronin:

We've been asked migrate our Subversion servers from Linux to Windows. I've got a new windows server machine with VisualSVN installed.  
I've svn dumped and loaded our new repositories. I've added permissions to the repositories and can browse to them via TortoiseSVN no problem.  
When I go into Bamboo, clone a current plan and change the SVN url to our new subversion repository and try to save the bamboo plan, I get the following error:

502 - Web server received an invalid response while acting as a gateway or proxy server. {#toc-hId-1622573322}
--------------------------------------------------------------------------------------------------------------

### There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server. {#toc-hId--1126097144}

The only difference I can see is that the old server is http:// and the new server is https://, not sure if this makes a difference?   

Please could somebody point me in the right direction as i'm really struggling to work this out.  

Thanks in advance


Answers:
author: rsperafico
body: Hello Simon,

Thank you for your question.

Could you please run [SSLPoke](https://plone.lucidsolutions.co.nz/linux/java/howto-verify-java-tls-with-server-name-indication-and-the-error-pkix-path-building-failed)[](https://confluence.atlassian.com/display/FISHKB/PKIX+Path+Building+Failed+-+Cannot+Set+Up+Trusted+Applications+To+SSL+Services)[](https://confluence.atlassian.com/display/FISHKB/PKIX+Path+Building+Failed+-+Cannot+Set+Up+Trusted+Applications+To+SSL+Services) against your https:// from the Bamboo server so you can get more information about your new protocol configuration.

```
# https://my.svn.repositoryjava SSLPoke my.svn.repository 443
```

```
# https://my.svn.repositoryjava -Djavax.net.debug=ssl SSLPoke my.svn.repository 443
```

If you find this answer useful, I would kindly ask you to accept it so the same will be visible to others who might be facing the same issue you have inquired.

Thank you for your understanding.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Bamboo - Plan branches / Automatic Merging / Branch Updater / Gatekeeper
Asked by Quinton McCombs:

We are currently using the [Branch updater](https://confluence.atlassian.com/display/BAMBOO057/Using+plan+branches#Usingplanbranches-Branchupdater) automatic merging with Stash as the source repository. The main build plan build from the master branch. When feature branches are created, a plan branch is created in Bamboo for the new branch as expected.

This works perfectly as long as the feature branches were branched off of the master branch. The problem is that we have other branches for older versions that we need to support. These branches are named 'support/\<version\> - example: support/4.1.X'. When a feature branch is created from one of those branches, the initial build fails because it can't merge master into the feature branch.

The simple work around for this problem is for someone to update the build plan for the branch and set the 'Merge from' to the build plan for the original branch (ie one of the support/\* branches). We don't really want to give every developer edit permissions on the build plans for their projects. We currently have this restricted to team leads but this is creating bottlenecks for our developers.

The source of the problem is that when a plan branch is created, it inherits all of the settings from the primary plan (which builds master). I have tried creating separate plans for each support branch but this results in plan branches being created in all of those plans for each feature branch. I think that I would have to implement a naming convention for branches to be able to have the plans automatically create the plan branches in the right plan. We would probably spend more time fixing badly named branches...

Is there any way around this problem? I would be open to any ideas that would solve the problem. I have looked at the API for bamboo plugins but I don't see any extension points that would the plugin to react to a new plan branch being created and then update it.


Answers:
author: Iman G
body: We have the same problem in our organization. Did you by any chance find a workaround for this?


Tags: branch
Bamboo build branches from 'releases' and 'branches' folders
Asked by Xabier Davila:

Hi,  
I'm using Bamboo with svn, and some of my projects have a layout like:

* trunk
* tags
* releases: contents are release branches in the form product-x.y.z
* branches: contents are non-release franches, ie: my_feature, JIRA-123_bla_bla

How can I configure Bamboo to build branches from both releases/.\***and**branches/.\*

Thanks


Answers:
author: Sultan Maiyaki
body: The regex does not seem to be respected. I have filed a ticket for this at <https://jira.atlassian.com/browse/BAM-15739>. Please follow it for updates

regards,

Sultan


author: Felipe Kraemer
body: Hello Xabier,

The [Source Code Checkout](https://confluence.atlassian.com/display/BAMBOO/Checking+out+code) task allows checking out from a one directory at a time. So if you want to checkout from 'releases' and from 'branches' in the same build plan, you'd better use a [Script](https://confluence.atlassian.com/display/BAMBOO/Script) task where you can execute the 'svn checkout' twice, one for 'releases' and the other for 'branches'.

However, if you want to [use plan branches](https://confluence.atlassian.com/display/BAMBOO/Using+plan+branches) for 'releases' and 'branches' you can follow these steps:

1. Go to the **Branches** tab in the configuration pages for the plan you wish to branch.
2. Check **Create plan** **branches for branches detected in the repository**.
3. Enter a regular expression like this:  
   (releases\|branches)/.\*

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer

comments: author: Xabier Davila
body: Hi Felipe,Plan branches doesn't work if I try {{<http://svn/path/to/project>}} and this regex: {{(branches\|releases)/.\*}}I also tried Tried different combinations of the URL (with/without trailing slash) and regex: (branches/.\*\|releases/.\*), with the same resultsI get an error:"An unexpected error occurred trying to detect VCS branches" and cannot see anything in the logs


author: Xabier Davila
body: Actually, tried again in a new plan, new repo. I get offered "branches, trunk, tags and releases" as my branches in Bamboo, that is, the contents of <http://svn/path/to/project>, instead of the contents of "branches" and "releases"
Changed a Bamboo password variable but build does not reflect change - uses old value
Asked by Allison Ross:

I have setup a Bamboo password. I have changed the password but when i do a build I still get the old value. Is there something I need to do after making a change to a variable after saving it?


Answers:
author: Allison Ross
body: I tested changing the variable in my test plan and it worked. Difference - My production plan has a trigger that polls every 3 minutes and my test plan has no trigger defined. I think that has something to do with it. In any case I now have a work around. Thank you to all.


author: rsperafico
body: Hello Allison,Thank you for your update.Ok, you have created a Bamboo variable under your Plan configuration (Defining plan variables - <https://confluence.atlassian.com/display/BAMBOO/Defining+plan+variables>).Could you please let me know where are you calling this variable? If possible, could you attach a screenshot as suggested in previous message?---Kind regards,Rafael P. SperaficoAtlassian Support


author: Daniel Wester
body: Make sure you run a new build after changing the plan configuration. If you rerun a build - the previous configuration that was configured when the build was triggered will be used.

comments: author: Allison Ross
body: Thanks Daniel. I was doing a new build but I will file away that advice on a rerun. Good to know.Allison


author: Allison Ross
body: Thanks Rafael,

I am using Bamboo 5.7.2 build. I created password variables in the variables tab of my plan. I named my variables, for example:

xx_password

I don't believe I have had this issue before but something that is different from other password variables is that this one is all numbers whereas others are alphanumeric.

I appreciate any help. Full disclosure: I am a Bamboo newbie.

Allison


author: rsperafico
body: Hello Allison,

Thank you for your question.

What is the Bamboo version you are currently running?
> I have setup a Bamboo password.

Where did you set up a Bamboo password?
> I have changed the password but when i do a build I still get the old value.

How are you changing the password?

Please, attach a screenshot to illustrate locations to the inquires above.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support


Tags: bamboo-administration
Is it possible to integrate other VCS ?
Asked by Nitesh Hibare:

Hi Team,

As of now Bitbucket supports GIT vcs. Is it possible to integrate other VCS ?


Answers:
author: Aron Gombas _Midori_
body: It is Git only.

Note that it was [supporting Mercurial until 2020](https://bitbucket.org/blog/sunsetting-mercurial-support-in-bitbucket), but then it was removed.


author: Ben
body: Hey Nitesh!

At present, Bitbucket Cloud only supports GIT as the VCS.

Was there any in particular that you were wanting to see implemented?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Problem with mail
Asked by Mikhail Tyutkin:

Hi,   
I am not receiving emails (pull requests updates, comments and merge update) on my email - **\<email_removed\>**  
Please help


Answers:
author: Theodora Boudale
body: Hi [@Mikhail Tyutkin](/t5/user/viewprofilepage/user-id/4932671),

Is this issue about Bitbucket Cloud (<https://bitbucket.org/>) notifications?

If so, the email address you provided was in a suppression list with the error message

```
550: 550-5.1.1 The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces
```

We attempted to send an email to that email address and received a hard bounce response from your mail server. The hard bounce informed us that the email does not exist and in this case, it is placed in a suppression list, as we no longer try to resend to non-existing emails.

I went ahead and removed your email from the suppression list, could you monitor your inbox and let me know if you are able to receive notification emails from now on?

Kind regards,  
Theodora

comments: author: Mikhail Tyutkin
body: Thank you, everything works


author: Theodora Boudale
body: That's good to hear and you are very welcome!

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

Kind regards,  
Theodora
Unable to download artifacts from bitbucket pipeline
Asked by supragyachauhan:

I'm getting this error on screen when I try to download the artifacts:

```
{"type": "error", "error": {"message": "Access token expired."}}
```

This is my new laptop where the issue is coming.


Answers:
author: Syahrul
body: Hey [@supragyachauhan](/t5/user/viewprofilepage/user-id/4932627)

Welcome to the community!

May I know how you downloaded the artifacts, and have you tried downloading it on a different web browser than the one you use?

Also, to ensure that it's not an issue with your network, can you try downloading it via VPN or an external network such as your mobile Hotspot?

Let me know how it goes.

Cheers,  
Syahrul


Tags: token
email notification with artifacts
Asked by PrasanthK:

hi,

Can anyone please tell me how to configure the email notifications for every build **"Success/Failure"** , If build is "**Success"** need the "**Artifacts"** to be attached with email as well.

few examples are there, a step by step implementation will be more helpful.

Thanks.


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

Welcome to Atlassian Community!

You could configure an **after-script** section in your step combined with the pipe **atlassian/email-notify** to send an e-mail with the status of the build and also with the artifacts attached.

The **after-script**section is always executed independently if the commands in the step have failed or not.

Please allow me to share a configuration example using Gmail's SMTP:

```
pipelines:

default:

 - step:

    script:

       - echo "This is test command 1" > file1.txt

       - echo "This is test command 2" > file2.txt

   after-script:

     - ALERT_TYPE="success"

     - if [[ $BITBUCKET_EXIT_CODE -ne 0 ]]; then ALERT_TYPE="error" ; fi

     - pipe: atlassian/email-notify:0.7.0

        variables:

        USERNAME: 'example@example.com'

        PASSWORD: $PASSWORD

        FROM: 'example@example.com'

        TO: 'example@example.com'

        HOST: 'smtp.gmail.com'

        SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'

        ATTACHMENTS: 'file1.txt,file2.txt'
 
        DEBUG: 'true' #OPTIONAL
```

The example above creates two text files (file1.txt and file2.txt) in the default directory as part of the step's script. The after-script section will check the value of $BITBUCKET_EXIT_CODE to define if the commands executed in the step were successful or not ( 0 exit code equals success). Then it will send an e-mail with the status of the build - 'success' or 'error' - and the created files attached, accordingly to the values configured in the variable section of **atlassian/email-notify** pipe.

You can adapt the above example with your current e-mail provider. For detailed instructions on how to configure the pipe, you can refer to its official documentation :

* <https://bitbucket.org/atlassian/email-notify/src/master/README.md>

This documentation also provides links to the most common providers and how you should configure them.

Hope that helps! In case you have any further questions related to this topic, please let me know.

Thank you, [@PrasanthK](/t5/user/viewprofilepage/user-id/4932562) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Merge checks for bitbucket cloud
Asked by Vishal Paike:

Hi All,

I am looking to add merge checks on the project/workspace level. Specifically I want to enforce 2 PR approvals for all the repos in a particular project/workspace. Is the feature available for bitbucket cloud?


Answers:
author: Ulrich Kuhnhardt _IzymesCo_
body: Hi [@Vishal Paike](/t5/user/viewprofilepage/user-id/2706392) - welcome!

You can check out 3rd party apps in Workspace \> Settings \> Marketplace apps to see if any provide the functionality.

As a matter of fact we wrote [*Workzone for Bitbucket Cloud*](https://marketplace.atlassian.com/apps/1211303/workzone-pullrequest-workflow?hosting=cloud&tab=overview) for exactly this use case (and much more) for our team and have made it available on the Marketplace for BB Cloud.

You can configure pre-defined reviewers and groups with granular resolution down to file and directory level, requires specific approval quotas, build results and more.

Feel free to check it out and let me know how you go.

Best Regards, Ulrich

//[Izymes](https://marketplace.atlassian.com/vendors/1210584/izymes-pty-ltd) - Eliminate boring from your work.


author: Patrik S
body: Hello [@Vishal Paike](/t5/user/viewprofilepage/user-id/2706392) ,

Thank you for reaching out to Atlassian Community.

At this moment I'm afraid it's not possible to configure the branch permissions (including merge checks) at the workspace/project level, just directly at the repository level.

We definitely understand the benefits of having the ability to manage those permissions at higher levels, such as at the project level, and our engineering team is actively working on implementing that feature.

You are also welcome to check Bitbucket Cloud's roadmap, which already includes the functionality of project-level permissions, along with other features that are in the works :

* <https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket>

Hope that helps to clarify your questions. Let me know in case you have any doubt.

Thank you, [@Vishal Paike](/t5/user/viewprofilepage/user-id/2706392) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
How to connect BitBucket Pipelines To Salesforce
Asked by Raj Pabnani:

Trying to setup Bitbucket Pipelines With Salesforce but the Org is Not Getting connected with the Bitbucket and all the Pipelines Build that is been done in the Local Server is Not getting Deployed in the salesforce org . How to setup Pipeline Variables so that the connection between the Salesforce Org and the Bitbucket Pipelines can get stablish and the deployment can take place between the salesforce org and the Pipelines .


Answers:
author: Patrik S
body: Hello [@Raj Pabnani](/t5/user/viewprofilepage/user-id/4932154) ,

Welcome to Atlassian Community!

At this point in time we currently don't have an official documentation on how to integrate your Salesforce organization with your Bitbucket Pipelines.

However, I did some research and found some articles that might be of help on the process setting up this integration

From Salesforce website:

* <https://www.salesforce.com/video/3598965/>

From Medium articles:

* <https://medium.com/@maheshchouhan1995/setting-up-salesforce-environment-c4ac75bf1bec>
* <https://medium.com/@maheshchouhan1995/ci-cd-using-bitbucket-pipeline-for-salesforce-part-2-8fe982823e02>

Hope this brings some light in the issue you are facing. In case you have any questions, please let me know.

Thank you, [@Raj Pabnani](/t5/user/viewprofilepage/user-id/4932154) .

Kind regards,

Patrik S.


Tags: bitbucket-cloud

cloud