youngmon/atlassian-qna huggingface dataset:
why atlassian bamboo can deploy war files bigger than 50MB?
Asked by Andrea Abbate:

When i deploy my war from my tomcat manager it dosen't works because the limit is 50MB and my war is bigger.

when i deploy my war from atlassian bamboo platform it works ... ??

someone have suggestions for explain it ?

thanks


Answers:
author: Juan Ram?n Alonso
body: As far as i remember the tomcat manager is an app itself and it has its own limits. By default you can only upload files up to 50MB. But you can always set a higher limit just by editing the manager's WEB-INF/web.xml file.

Bamboo does not seem to have such limit (or at least is not so tiny)

comments: author: Andrea Abbate
body: where can i set a limit in bamboo ?


Tags: tomcat
xmrig tried to install some packets from bamboo home
Asked by volodymyr_kondratiuk:

Hello,

I use bamboo v 5.15.0.1.

I received from my bamboo instance the next email with:  
subject: \*\*\* SECURITY information for dc16-01 \*\*\*  
body:

```
dc16-01 : Sep  5 11:19:42 : bamboo : user NOT in sudoers ; TTY=pts/9 ; PWD=/home/bamboo/xmrig-3.1.1/manual ; USER=root ; COMMAND=apt-get install git build-essential cmake libuv1-dev libmicrohttpd-dev libssl-dev libhwloc-dev
```

When I check home dir I found this:

drwxr-xr-x 3 bamboo bamboo 67 Sep 5 11:19 xmrig-3.1.1  
-rw-r--r-- 1 bamboo bamboo 3.6M Aug 31 04:15 xmrig-3.1.1-xenial-x64.tar.gz

I do not download xmrig and user bamboo is not allowed to login over ssh for do something like this. I think that may happened only over web part of bamboo. Maybe it's some security bug of bamboo... and it can download and try to install this package.

If you need additional information please ask me.

Best regards, Volodymyr


Answers:
author: Rafael Pinto Sperafico
body: Hi [@volodymyr_kondratiuk](/t5/user/viewprofilepage/user-id/1120202) ,

Bamboo v5.15 was released back in February/2017. Since then Atlassian released a few [Security Advisory](https://confluence.atlassian.com/bamboo/bamboo-security-advisories-289276756.html "Security Advisory"). Perhaps, [Bamboo Security Advisory 2017-03-10](https://confluence.atlassian.com/bamboo/bamboo-security-advisory-2017-03-10-876857850.html "Bamboo Security Advisory 2017-03-10"), relates to the issue you have reported.

You should consider backing up and upgrading Bamboo to a most recent version.

Kind regards,  
Rafael


author: Steven F Behnke
body: I believe you should raise this over [https://support.atlassian.com/contact/](https://support.atlassian.com/contact/#/)

comments: author: volodymyr_kondratiuk
body: "Atlassian no longer offers personal support for Starter Licenses."  
I can't because I have starter licence :)
Jira: Upon Bamboo build open issues are not moved to a selected release
Asked by Tomasz Kosinski:

Previously, upon Bamboo build, open issues can be automatically moved to a selected new version.  
It does not work anymore. However if I just click "Release" issues are moved as expected.


Answers:
author: Daniel Santos
body: Hi [@Tomasz Kosinski](/t5/user/viewprofilepage/user-id/425741),

This does not sound like an out of the box configuration between the two servers.  
In order to help us to understand what is causing this behavior, can you please share with us:

* Are you using Jira Server or Cloud?
* What is the Bamboo version you are running?
* When did this configuration stop working?
* Do you have any extra plugin for this?
* If you are using REST API to change Jira issues from Bamboo, can you share them here?

That should be a good start to troubleshoot this.

comments: author: Tomasz Kosinski
body: Hi,

I use Server edition

I believe that problem started to be visible when I updated:  
Jira 8.2.0 -\> 8.30  
Bamboo 6.9.1 -\> 6.9.2


author: Daniel Santos
body: Hi [@Tomasz Kosinski](/t5/user/viewprofilepage/user-id/425741)

Can you share more details on how this is configured for you?  
Are you using and extra plugin or REST API for this?


author: Tomasz Kosinski
body: I do not use any 3rd parties. Its simple JRIA+BITBUCKET+BAMBOO.   
Bamboo builds are started form Releases pane in JIRA.


author: Daniel Santos
body: Hi [@Tomasz Kosinski](/t5/user/viewprofilepage/user-id/425741)  

I'm writing to let you know I didn't forget you. I just needed extra time to set up the environment and test this. As soon I come into a conclusion I'll let you know.


author: Daniel Santos
body: I'm just registering here that I got in touch with you through email and as soon we have our meeting and a conclusion we can post our findings here.


author: Lars Seifert
body: we do have the very same problem - what was / is the solution?


Tags: jira
Conditional build on based on different branch
Asked by Ray Lee:

Hello,

Suppose that we have a develop and uat branch in defined in a repository and it uses Maven to build its jar package, since our project has many junit test cases built in,

so each maven build action would take more than 15 mins to complete.

We want to see if Bamboo can trigger normal maven build with test cases run, but in uat branch build, maven build can be skipped with a skip test parameter provided.

Thanks for your advice and hints

Ray


Answers:
author: Daniel Santos
body: Hey [@Ray Lee](/t5/user/viewprofilepage/user-id/2115484)  

There is a plugin you can use to achieve this goal. It is called [Conditional tasks for Bamboo.](https://marketplace.atlassian.com/apps/1219706/conditional-tasks-for-bamboo?hosting=server&tab=overview)

There is a brief explanation about it in this thread:

* [Solved: How we can configure job with conditional tasks for Bamboo plugin?](https://community.atlassian.com/t5/Bamboo-questions/How-we-can-configure-job-with-conditional-tasks-for-bamboo-Plug/qaq-p/1105461#M23528)

<br />

In your case, you want to run the task for **develop** but not for **uat**.

This would be the conditional task configuration for this to work:

![Screen Shot 2019-09-09 at 15.31.24.png](https://community.atlassian.com/t5/image/serverpage/image-id/65594i5ECAB8651A35C1ED/image-size/large?v=v2&px=999 "Screen Shot 2019-09-09 at 15.31.24.png")

Details:

* Variable used: **planRepository.1.branchName**   
  Reference: [Bamboo variables - Atlassian Documentation](https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html)
* The regular expression for **develop** and one more branch would be like **(develop\|otherBranch)**.

I hope that helps.


Tags: build
Process of using docker images in tasks
Asked by Rafael Ruales:

Hello,

Could anyone explain the process about HOW I can use docker with my tasks?

simple example: I have a maven 3.x task to build some code, I installed maven in the bamboo server and pointed the executable in bamboo.

But HOW would I use the maven docker image to build the code without having to install maven in the bamboo server?

I am looking for the how, not for articles that explain what bamboo and docker are.

thanks


Answers:
author: Rafael Ruales
body: This is the solution:

- set up a build plan and under "Default Job" on tab "Docker" and there I added **maven:3.6.1-ibmjava-8-alpine** as "Docker image", left everything else as is and pressed the "Save" button.

- added "Maven_Docker" under *Overview \>\> Executables* setting path **/usr/share/maven** which determines the Maven 3.x path inside the above mentioned Docker container

- First Bamboo task of this build plan needs to be a **Source Code Checkout task** of a Java project that shall be utilized for a Maven build.

- As second task I added **Bamboo task Maven3.x**, set "Maven_Docker" as Executable on its task configuration page and "JDK 1.8" (which is set on my Bamboo instance as a Server Capability) as "Build JDK. All other settings are untouched.

- Finally I run this build plan and it started loading the Docker container, built the Java project utilizing the Docker container's Maven 3.x executable and finished with success.


author: jira guy
body: Use a docker container to run your instead of regular agent which runs on bamboo server. Make sure you docker container has maven and docker installed.

Voila!


Tags: docker

maven
Need help with Bamboo using Docker for build/test environments
Asked by Patrick Peace:

Hello everyone,

I having an issue with Bamboo using Docker to spin up a Python container install some packages then run unit tests.

I am using Bamboo YAML spec files for configuring the pipeline. In the Spec file I defined Docker to use the Python image at the plan level.

When the pipeline runs Bamboo spins up the Python container and runs the Build stage to install python packages, but for the Test stage Bamboo spins up another Python container that doesn't have my dependencies and tests fail.

I must be misunderstanding or doing something wrong. Any guidance or assistance would be much appreciated.

Expectation:

- Bamboo Spins up Python container

- pulls code

- install packages

- run tests

All inside the same isolated container.

Example Spec File:

---  
version: 2  
plan:  
project-key: AN  
key: PYAPP  
name: py app testing

docker:  
image: python:3.7  
volumes:  
${bamboo.tmp.directory}: ${bamboo.tmp.directory}:z  
${bamboo.working.directory}: ${bamboo.working.directory}:z  
use-default-volumes: false

stages:  
- Build environment:  
- Build  
- Test Ansible Role:  
- Test

Build:  
tasks:  
- script:  
- pip install pytest  
- pip install -e .

Test:  
tasks:  
- script:  
- pytest


Answers:
author: Daniel Santos
body: Hello [@Patrick Peace](/t5/user/viewprofilepage/user-id/3297618)

The behavior you see is expected. You defined two different stages, each stage has a different job. Each job will run in a fresh Docker container.

To avoid the issue you are facing you could:

**Option 1**

* Put all the tasks in the same stage.

**Option 2**

* Build a new image with all the dependencies you need for your build and add it to docker hub. Then reference the new image in your build. This will allow you to use different jobs for your builds without the need to re-add the dependencies.

I hope that clarifies the issue.

comments: author: Patrick Peace
body: Awesome thank you [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)


author: Daniel Santos
body: You are always welcome [@Patrick Peace](/t5/user/viewprofilepage/user-id/3297618)!


Tags: docker
Is there any option to use Elastic Bamboo with other cloud providers.
Asked by Amarendar Musham:

Is there any option to use Elastic Bamboo with other cloud providers.


Answers:
author: Juan Ram?n Alonso
body: I don't think so. You have to provide your AWS account to set up Elastic Bamboo. There is no option to provide your account for any other cloud provider when you set up all the stuff . It relies on computing resources from AWS EC2 to run builds using some preconfigured AMIs with a remote agent. I guess that when you set up Elastic Bamboo it will copy the needed AMIs to your account and you can start using them.

This is a good starting point: <https://confluence.atlassian.com/bamboo/getting-started-with-elastic-bamboo-289277126.html>
How can I checkout a folder from GIT and upload the same folder to svn using BAMBOO?
Asked by Sarath Sasi:

I want to upload a folder into svn after fetching the latest copy of the files from GIT. Is there a way I can achieve this through Bamboo?


Answers:
author: Daniel Santos
body: Hi [@Sarath Sasi](/t5/user/viewprofilepage/user-id/1151422)

You will need to configure your plan with a script task to checkout the SVN repository and commit the content copied from GIT. The commit task available in Bamboo is not able to commit code in SVN, only in:

* Bitbucket Cloud
* Bitbucket Server / Stash
* Git
* Mercurial

The alternative you have is to use a script task for that. Considering that, these are the options I can suggest:

**Option 1**: Git as a plan repository + Script task

1. Configure GIT as your plan repository.
2. Make sure you have checkout task to checkout your code
3. Add a script task after the checkout task.  
   In this task you should:
   1. Create a folder for your SVN repository
   2. Checkout the SVN repository
   3. Copy the GIT files to correct folder in SVN
   4. Commit the code

**Option 2:**Everything in a script task

1. Create a script task in your plan  
   In this task you should:
   1. Create a folder for your GIT repository
   2. Checkout the GIT repository
   3. Create a folder for your SVN repository
   4. Checkout the SVN repository
   5. Copy the GIT files to correct folder in SVN
   6. Commit the code

I would suggest you using **option 1.** The advantage here is that you will not need to manage the credentials for git in the script task, but only for SVN. Another good thing is that Bamboo will be registering the commits revisions in the Build results.  

I hope it helps you.


Tags: bitbucket
View Plan as Java Specs produces exception
Asked by Mike Mintz:

Hello,

I am trying to move out build plans to revision control. when I try to export the plans, I get this:

Export to Bamboo Specs failed: Duplicate repository null ------------------------------ Duplicate repository null

Any ideas? I am concerned that the build may be too old:

version 6.5.0 build 60509 - 20 Apr 18

Thanks,

Mike


Answers:
author: Daniel Santos
body: Hi [@Mike Mintz](/t5/user/viewprofilepage/user-id/3548976)

Instead of going deeper to try understanding what could be the source of this issue, I have a different suggestion that may save time.

* Is it a problem for you to remove the repository configuration and add it back?  
  It is possible that recreating them will fix the data structure that seems to be wrong/corrupted.

Let me know if results you have in case you are trying this approach.

comments: author: Mike Mintz
body: Thank you for the suggestion. Sorry to be dense, but what repository? As you can tell, I have only been using Bamboo for a few weeks. I was quite surprised that versioning build plans was not standard.


author: Daniel Santos
body: Hi [@Mike Mintz](/t5/user/viewprofilepage/user-id/3548976)

The error you see seems to be related to the source repository configuration set for your Bamboo plan. When you created the plan, I suppose you configured a repository for it and I think that is the data structure reporting this error.  

Steps to find the source repository information I'm talking about:

* **Build \>\> All Build plans \>\> (click the affected plan) \>\> Actions \>\> Configure plan \>\> Repositories**.

I suppose you will find a repository entry there (that was configured before), and I suggested you to try removing and adding it back to check if the export specs issue will be fixed.

> I was quite surprised that versioning build plans was not standard.

Yes, Bamboo specs is a recent feature and intends to fix this gap.

Let e know if recreating the repo will fix the issue.


author: Mike Mintz
body: Hi Daniel,

Cool found the repositories. I will try that later today, but feel free to close the issue.

We have lots of repositories and I need to be careful that I add the correct one back in.


author: Daniel Santos
body: Hi [@Mike Mintz](/t5/user/viewprofilepage/user-id/3548976)

Take your time to check those repositories and if that didn't solve the issue, just share with us here. =\]


Tags: spec
Email Notifications are not getting triggered post build run.
Asked by Sreekanth Reddy Seelam:

Email Notifications are not getting triggered post build run. I tried to test it with my email ID but I got an exception. Please find below log for the error![Screenshot 2019-09-05 at 2.52.27 PM.png](/t5/image/serverpage/image-id/65249i182A63F6E8AE94FB/image-size/large?v=v2&px=999 "Screenshot 2019-09-05 at 2.52.27 PM.png")![Screenshot 2019-09-05 at 2.53.54 PM.png](/t5/image/serverpage/image-id/65250i573208FC8F33A97B/image-size/large?v=v2&px=999 "Screenshot 2019-09-05 at 2.53.54 PM.png")![Screenshot 2019-09-05 at 2.54.09 PM.png](/t5/image/serverpage/image-id/65251iC5030F1FE1C63A37/image-size/large?v=v2&px=999 "Screenshot 2019-09-05 at 2.54.09 PM.png")![Screenshot 2019-09-05 at 2.54.21 PM.png](/t5/image/serverpage/image-id/65252iCA32ECD7554C319E/image-size/large?v=v2&px=999 "Screenshot 2019-09-05 at 2.54.21 PM.png")


Answers:
author: Daniel Santos
body: Hi [@Sreekanth Reddy Seelam](/t5/user/viewprofilepage/user-id/1528755)

I'm afraid that Bamboo is not able to process the passwords stored in your mail server configuration and therefore you will need to recreate it.  
There is a knowledge base article about this: [After upgrading, Bamboo stop sending emails and throws 'Unknown encrypted data format' exception - Atlassian Documentation.](https://confluence.atlassian.com/bamkb/after-upgrading-bamboo-stop-sending-emails-and-throws-unknown-encrypted-data-format-exception-901496931.html)

Please let me know if that fixes the issue.
REST api to delete plan branch
Asked by robin:

Is there any rest api available to delete plan branches. I am currently using a post to

'http://\<url\>/chain/admin/deleteChain!doDelete.action?buildKey=\<branchkey\>'

It is working fine in version 6.0.3 but not in version 6.6.3 ?


Answers:
author: Rafael Pinto Sperafico
body: Hi [@robin](/t5/user/viewprofilepage/user-id/3476071) ,

<https://jira.atlassian.com/browse/BAM-18589> - **REST API to Delete plan branches**, it became available in Bamboo v6.8.0

```
http://myhost.com:8085/rest/api/latest/plan/{projectKey}-{buildKey} [GET, DELETE]
```

More information in <https://docs.atlassian.com/atlassian-bamboo/REST/6.8.0/> - Bamboo REST API Documentation

Kind regards,  
Rafael

comments: author: Rafael Pinto Sperafico
body: Hi [@robin](/t5/user/viewprofilepage/user-id/3476071) ,

Using the endpoint you have mentioned, you are simply calling the action to confirm your deletion. Instead, you should call:

```
# http://localhost:8085/bamboo is Bamboo's Base URL

http://localhost:8085/bamboo/ajax/deleteChain.action
```

The cURL command would be:

```
# USERNAME, provide username and password to authenticate in Bamboo
# user MUST have permissions over the Plan to perform deletion

# PROJ-PLAN0, example of a Plan branch to be deleted

# http://localhost:8085/bamboo is Bamboo's Base URL
curl -k -u USERNAME \
     -H 'X-Atlassian-Token: no-check' \
     --data 'buildKey=PROJ-PLAN0' \
     -X POST http://localhost:8085/bamboo/ajax/deleteChain.action
```

Kind regards,  
Rafael


author: robin
body: Thanks [@Rafael Pinto Sperafico](/t5/user/viewprofilepage/user-id/2904254) for your reply :)

My bamboo version is 6.6.3.

I am getting an error

\<h1\>Page not found\</h1\>  
\<p\>  
Sorry, the page you were trying to reach does not exist. Try going back to the dashboard and browse the site to find the page you were looking for. \</p\>  
\<h4\>Go to...\</h4\>  
\<ul\>  
\<li\>\<a href="/"\>Site homepage\</a\>\</li\>  
\</ul\>

while using the curl 'http://localhost:8085/bamboo/ajax/deleteChain.action'

Is this applicable for my Bamboo version 6.6.3

Regards,

Robin


author: Rafael Pinto Sperafico
body: Hi [@robin](/t5/user/viewprofilepage/user-id/3476071) ,

Could you please confirm http://localhost:8085/bamboo is your Bamboo's Base URL? If not, replace it with your Bamboo's Base URL.

```
curl -k -u admin:admin \
     -H 'X-Atlassian-Token: no-check' \
     --data 'buildKey=PROJ-PLAN0' \
     -X POST http://bamboo.base.url/ajax/deleteChain.action

{"status":"OK","plan":{"key":"PROJ-PLAN0"}}
```

Yes, it works on Bamboo 6.6.3

Kind regards,  
Rafael


author: robin
body: Thanks a lot :) [@Rafael Pinto Sperafico](/t5/user/viewprofilepage/user-id/2904254) !!!

That was the issue, I thought '/bamboo/' is a part of api. Now it is working fine... :)
Redirecting emails to incoming mailbox JSD
Asked by Danylo Borodai:

Hello community! I have a question

We have email A and email B.

A is connected to JSD Project as Incoming email and working good.

We want make a redirection of messages from email B (which is now used for other service) to email A so messages from email B will register as requests through email A.

Will it work and what issues could be? Thanks a lot in advance


Answers:
author: Danylo Borodai
body: Ok. It works


author: Jack Brickey
body: Hi [@Danylo Borodai](/t5/user/viewprofilepage/user-id/5482177) , how are you "redirecting"? The trick here is ensuring that the "from" address is associated with the end customer and not a forwarding address. At least if your intentions are to maintain the customer as the reporter.

comments: author: Jack Brickey
body: Is the second email already well established with customers? If not consider using the default Atlassian provided email as the secondary.


author: Danylo Borodai
body: Field "from" will be a real reporter


author: Danylo Borodai
body: Second email is working as incoming email for few month now and works well. We don't use Atlassian provided but our custom one


Tags: cloud

jira-service-management

jira-service-management-cloud
Is it possible to set export function permissions?
Asked by ???_??_:

Is it possible to set export function permissions?

For security reasons, I want to check if I have permission to export


Answers:
author: Kris Dewachter
body: Hi [@???_??_](/t5/user/viewprofilepage/user-id/4704901) ,

Do you mean permissions on exporting Jira issues?

If so, there is no permission you can set for that.

Best regards,

Kris

comments: author: ???_??_
body: HI, [@Kris Dewachter](/t5/user/viewprofilepage/user-id/4588367)   

Thank you for answer :)


Tags: cloud

jira-service-management

jira-service-management-cloud
Adding a Mandatory field to the Request Closing Screen
Asked by Sefa Sevencan:

Hello,

I would like to add a mandatory field to the claim closure screen as I have provided in the screenshot. Before closing the claim, I would like to fill this field so that it can be pulled to done.  

Thank you in advance for your help.  

![Close.png](/t5/image/serverpage/image-id/327481i10294652B34C2B8C/image-size/large?v=v2&px=999 "Close.png")


Answers:
author: John Funk
body: Hi Sefa,

On the same transition that uses the screen above, add a Validator for Field Required. Then select the field. Save the workflow and publish it.

comments: author: Sefa Sevencan
body: I think you are talking about the process on the link, but this does not solve my problem. It appears on the request screen, I want it to come to the closing screen.

<https://confluence.atlassian.com/jirakb/how-to-make-a-field-required-before-closing-the-issue-1236928291.html>


author: John Funk
body: No, I am talking about this same screen. When does this screen get shown? When you are trying to have the issue to Done? That's the same transition that you need to add the Field Required validator.


author: Sefa Sevencan
body: Can you explain step by step?


author: John Funk
body: Can you share your workflow?

And can you answer my questions above?


Tags: cloud

jira-service-management

jira-service-management-cloud
Issue in report extraction
Asked by Ahmed Awad:

Hi,

Please advise on the below issue we faced while extracting excel file report from jira

![jira report issue.png](https://community.atlassian.com/t5/image/serverpage/image-id/327466i48C1A2184CE737EE/image-size/large?v=v2&px=999 "jira report issue.png")![Capture Jira Issue.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/327467i8FD0B8854DE45318/image-size/large?v=v2&px=999 "Capture Jira Issue.PNG")


Answers:
author: Aron Gombas _Midori_
body: My team mate wrote an article about the potential causes, you may find it useful: <https://www.midori-global.com/blog/2021/10/15/what-to-do-if-jira-cloud-for-excel-is-not-working>

comments: author: Ahmed Awad
body: Hi Aron,

Unfortunatley issue is not fixed yet. If you have any additional information to fix this issue it would be great.

Thanks for your cooperation dear


Tags: cloud

jira-service-management

jira-service-management-cloud