youngmon/atlassian-qna huggingface dataset:
Sub projects in Bamboo
Asked by Sarp Kaya:

A project might have lots of plans. Is there a way to create sub projects in Bamboo?


Answers:
author: Boris Berenberg
body: You can not create sub projects.

comments: author: Sarp Kaya
body: Is it then possible to make this as a feature request?


author: Boris Berenberg
body: Would this qualify: <https://jira.atlassian.com/browse/BAM-2686>


author: Sarp Kaya
body: Yes :o created almost 8 years ago!
Cannot start Bamboo with bamboo user
Asked by etiennenoel:

When I try to start bamboo with the bamboo user, it simply doesn't start. When I look in catalina.out.log, I get the following error and I can't access bamboo via its url:

```
Aug 03, 2015 11:01:43 AM org.apache.catalina.core.AprLifecycleListener initINFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/libAug 03, 2015 11:01:43 AM org.apache.coyote.AbstractProtocol initINFO: Initializing ProtocolHandler ["http-bio-8085"]Aug 03, 2015 11:01:43 AM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 570 msAug 03, 2015 11:01:43 AM org.apache.catalina.core.StandardService startInternalINFO: Starting service CatalinaAug 03, 2015 11:01:43 AM org.apache.catalina.core.StandardEngine startInternalINFO: Starting Servlet Engine: Apache Tomcat/7.0.40Aug 03, 2015 11:02:12 AM org.apache.catalina.core.StandardContext startInternalSEVERE: Error listenerStartAug 03, 2015 11:02:17 AM org.apache.catalina.core.StandardContext startInternalSEVERE: Context [] startup failed due to previous errorsAug 03, 2015 11:02:17 AM org.apache.coyote.AbstractProtocol startINFO: Starting ProtocolHandler ["http-bio-8085"]Aug 03, 2015 11:02:17 AM org.apache.catalina.startup.Catalina startINFO: Server startup in 34063 ms
```

However, when I start bamboo with sudo, it works. I can't run bamboo using sudo because some scripts in my deployments need to be run without sudo.

I am using bamboo 5.7.2


Answers:
author: Naveenan Thaneswaran
body: Hi, was there a resolution to this? I'm encountering the same issue on Bamboo 5.7.2.


author: rsperafico
body: Hello Etienne,

Thank you for your question.

Please, make sure the "bamboo user" you are referring to has full permission in *\<bamboo-install\>* and *\<bamboo-home\>* directories.

Since you are able to run Bamboo using sudo and not with a non-admin user, it seems there is some issue with this user.

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Recursive Build Question
Asked by Peter Kendlbacher:

Hi all!

I am very new in bamboo so here my stupid question.

I have a Project with maven dependencies. The Project has two childs defined in the maven pom. Now I want that the build first builds the childs an then the original Project.

I don't want to define three build plans for this.

Is this possible?

thanks Peter


Answers:
author: Marcin Oles
body: Hi @Peter Kendlbacher,

using Maven you should be able to achieve that if you just build the parent project, e.g. using 'mvn clean install'. It should build the child projects within it. You can try running this command in a console and see if all projects get build to verify if it works.

So you only need one build plan in Bamboo.

Cheers,  
Marcin


author: Jeryl Cook
body: be certain you are including in each of the modules:

```
&lt;parent&gt;&lt;groupId&gt;com.vanitysoft....&lt;/groupId&gt;&lt;artifactId&gt;....parent&lt;/artifactId&gt;&lt;version&gt;1.0&lt;/version&gt;&lt;/parent&gt;
```


author: Peter Kendlbacher
body: I have now set up a multi modul project, but it is not working as expected.

The structure I have chosen is not a tree, because we have many teams in the company and every team is building independently artifacts, which should be able to be combined freely.

The structure looks like this:

comp1-app/trunk/app1 - is the multi modul parent which references the artifacts (../../../comp1/trunk/artifact1, ../../../comp2/trunk/artifact3)

comp1/trunk/artifact1

comp1/trunk/artifact2

comp2/trunk/artifact3

In the build plan I have added a maven 3 task with the comp1-app/trunk/app1 folder as Working sub directory.

As I run the plan now I get the error, that the submodules are not found:

\[ERROR\] Child module /opt/bamboo-home/xml-data/build-dir/TESTPLAN-JOB1/comp1-app/trunk/app1/../../../comp1/trunk/artifact1 of /opt/bamboo-home/xml-data/build-dir/TESTPLAN-JOB1/comp1-app/trunk/app1/pom.xml does not exist

This message appears for every modul. In my opinion somehow Maven is unsing abolute paths and not relative ones are uses.

Does anyone know how to configure Maven tu use relative Paths or do I have to change something in the Maven Plan Task?

Thanks , Regards Peter
need to set path variable as D:\ in the maven task, but i am not able to set the path. how should i set the path
Asked by PAKEER MOHAMMED:


Answers:
author: rsperafico
body: Hello Pakeer,

Thank you for your question.

Could you please elaborate on this variable you are referring to?

Would be possible to attach a screenshot from the Maven task so we can get a better understanding on what you are attempting on doing, please?

The variable with path **D:\\** will be used where?

---

Kind regards,  
Rafael P. Sperafico  
Atlassian Support
Is this supposed to work? MAVEN_OPTS="-Dspring.profiles.active=dev"
Asked by SPence:

All I want to do is set the active profiles during the build plan.


Answers:
author: Bruno Rosa
body: Actually this varies according to the type of profile being used. Profiles can be explicitly specified in the *Goal* field, I don't think it will work using MAVEN_OPTS. Please have a look at this documentation for more information about this <http://maven.apache.org/guides/introduction/introduction-to-profiles.html>.
maven project in git subdirectory
Asked by Sag Ich Nicht:

Hi,

i have severall maven projects in a git repositorie. I would like to be able to make a plan for one single project.

But i can not find a way to tell bamboo in which subdirectory my project is. According to that bamboo says "cant find pom" if i try to build the project.

How can i do that?

Thanks in advance!


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: You can provide the "working sub directory" when you set up the maven task. You can also use "override project file" option to point to a pom.xml file.

Having said that, a good idea might be separate out the projects into multiple git repositories.


author: Sag Ich Nicht
body: Thank you very much!
Bamboo authentication Issue
Asked by Raj:

Hi All

We are having a bamboo server with ldap integration which works with bamboo,confluence and jira. at times we are having login issues with bamboo and needs one or more restart of bamboo service to login into bamboo.

The error we get is as below,  
`[http-bio-8085-exec-13] [DefaultAuthenticator] login : 'useremail' could not be authenticated with the given password`  
`2015-07-29 10:15:04,015 WARN [http-bio-8085-exec-13] [DefaultAuthenticator] login : '`useremail`' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.`  
we followed the resolution as per the below link.  
<https://confluence.atlassian.com/display/BAMKB/Could+not+login+admin+user+after+admin+account+creation+at+setup>  
But when we set up bambooauthenticator to use crowd or single sign on we are unable to restart the bamboo service . the issue is quite confusing . in Bamboo configure page we could see that bamboo is configured to use the ldap authentication but in seraph-config.xml file its written to use internal bamboo authenticator. All our users are able to login with the ldap username and password as well. But at time the server will not allow us to login and when we check the logs we get the above error and after one or more restart ( or stop \& start process) the users wil be able to login.  
Any help on solution will be highly appreciated.  
Thanks  
Raj


Answers:
author: Raj
body: Hi Rafeal

Thanks for the detailed mail. Seems like the below link helped to fix the problem for now. Cant reproduce the issue to retest it .

Refer: <https://confluence.atlassian.com/display/BAMKB/LDAP+-+Users+are+intermittently+unable+to+login>

Thanks

Raj


author: rsperafico
body: Hello Raj,

Thank you for your question.
> ... bamboo server with ldap integration ...
>
> ... Bamboo configure page we could see that bamboo is configured to use the ldap authentication but in ***seraph-config.xml***file its written to use internal bamboo authenticator...

The file above mentioned should be modified ***only if*** you have**Crowd** installed as Single Sign-On (*SSO*) is managed by Crowd.

You have mentioned Bamboo is configured to authenticate against LDAP, in this case, you might have ***atlassian-user.xml*** set up with LDAP settings on how to connect to your Active Directory and Users and Groups to be filtered. Please refer to [How to set up LDAP in Bamboo](https://confluence.atlassian.com/display/BAMKB/How+to+set+up+LDAP+in+Bamboo) for further information.

In case you have the same set of users in the applications (*JIRA, Confluence, Bamboo)* it would be beneficial if you set up LDAP in JIRA and let this manage users authentication in Bamboo/Confluence, for instance.

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 fails to create instance in EC2
Asked by farhanrahman26:

I am trying to create an instance from the Bamboo instances page. I am getting an error which is as follows:

"Failed to start elastic instances: Error when starting a new instance".

Things I have tried to solve this:

1) Look into atlassian answers for help

2) Give full access to bamboo user in IAM AWS.

3) Configure an AMI from bamboo using an existing AMI in AWS and launch that AMI

4) Contact atlassian support (no reply yet).

What else can be done? I don't know where to look for logs as well. I am not sure if this is a bug in Bamboo.


Answers:
author: farhanrahman26
body: Okay the solution for this is as follows:

**Workaround:**   
Manually create the keypair with name "elasticbamboo" in the AWS console for the region that your elastic instances are configured to start up in. Keep the private key file as Bamboo won't have it on server side.  
[Obtaining AWS Key Pair to access Amazon Elastic Instances](https://confluence.atlassian.com/display/CLOUDKB/Obtaining+AWS+Key+Pair+to+access+Amazon+Elastic+Instances)  
More info on [Amazon EC2 Key Pairs](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#having-ec2-create-your-key-pair)

I got this from atlassian support. Use this workaround and it works quite well.
Bamboo auto click "Clear all error logs"
Asked by Eclipse Trading:

There are thousands of false alarms, "errors" in the Bamboo Dashboard, I want to clear it out automatically everyday, what is the best way to do this?


Answers:
author: Davide Trombini
body: You could script this:

\<your bamboo url\>/removeAllErrorsFromLog.action?returnUrl=%2Fadmin%2FsystemErrors.action

Useful after a Bitbucket backup during which you will get many errors in Bamboo.


author: Gonchik Tsymzhitov
body: Hi, do you have any solution?


Tags: bamboo-administration
how do i do unit test in bamboo from maven
Asked by Aakash Basnet:

Hi Support Team,

I have a OSB project and maven build script.I am not sure how to carry out the unit test via Bamboo for the project. Can anyone help me to do the unit test automation through Bamboo?


Answers:
author: Alexey Chystoprudov
body: Hello Aakash,

You can use Maven task to execute Maven build and tests. Please find more details at our documentation <https://confluence.atlassian.com/display/BAMBOO/Maven>

comments: author: Aakash Basnet
body: Thanks Alexey,But I have a OSB based project,its not a java based project. I just want to understand the core concept how unit testing goes, Can you please tell me what are the necessary steps/items that we need to follow? I mean like do we need to write a test case code seperately and what are the information do we need to include in maven POM file.your answer will be highly appreciated.


author: Alexey Chystoprudov
body: Aakash,I'm not familiar with OSB, but you mentioned Maven. What is going on when you execute "mvn test" command at your project? Does it run tests? Does it generate any test report at target/surefire-reports? To identify tests Bamboo can use Maven task or separate JUnit/NUnit tests parsers. So if your maven execute tests and generate reports with surefire plugin - Bamboo can handle it, otherwise you will require another plugin to provide tests results to BambooHope it helps


author: Aakash Basnet
body: Alexey,I have a OSB based project and maven as a build script,I am not sure wheather my script file is good enough or not? When I run "mvn test" it says no test to run. What should I do to execute the test via Bamboo?


author: Alexey Chystoprudov
body: Aakash, do you know if it's possible to execute tests in your project with command line from console? If it's possible then Bamboo can do it. If you need some UI tool to execute tests in your project - Bamboo can't run them without additional steps
Configuration of Elastic Bamboo is not clear
Asked by Oliver Hagel-Doll:

In the documentation here <https://geioshq.atlassian.net/builds/admin/elastic/editElasticConfig.action>  
the usual wording for AWS is not used: start, stop, terminate instances.

Also the time units are not clear at the fields (should be always contained in dewscription) - minutes for idle agent shutdown delay, but also minutes for shutdown delay after agents terminated?


Answers:
author: Marcin Oles
body: Hi @Oliver,

what you're saying sounds like a good material for an **improvement** issue to be raised in Bamboo project: <https://jira.atlassian.com/browse/BAM>

I agree that "Shutdown delay" should probably include the time unit. However, I'm not sure where exactly does the terminology differ from AWS typical wording - if you could point exact places and phrases used (maybe in the created issue), that would be great.

Cheers,  
Marcin


Tags: cloud
Bamboo x AWS
Asked by williamespindola:

I don't use AWS can I use Bamboo without it? I'm working with Digital Ocean.

Both bamboo for cloud and server.


Answers:
author: Marcin Oles
body: As was noticed in previous answer, AWS is required for using Bamboo in Cloud. It is however not necessary if you're running Bamboo server.

For server, there are more agent types to choose: local agents (run on the same machine as the server node), remote agents (usually run in the same local network), or elastic agents (on EC2 from AWS) - as an option, not necessity.


author: Abdoulaye Kindy Diallo
body: As per the below documentations, AWS is a fundamental requirement to use Bamboo Cloud:

* <https://confluence.atlassian.com/display/BAMBOOCLOUD/Getting+started+with+Bamboo+Cloud>
* <https://confluence.atlassian.com/display/BAMBOOCLOUD/Configuring+Elastic+Bamboo>,


Tags: cloud
Bamboo: Preserve native code library build for use by other projects?
Asked by mike_thomas_roames:

Hi there.

How do I set up a Bamboo hosted native code library continuous integration build, from which the output binary libraries are available for other CI projects?

Thanks for your assistance.

Mike.


Answers:
author: mike_thomas_roames
body: Thanks Alex.


author: Alex Soto
body: Hi there, here's the docs on how to do it:

<https://confluence.atlassian.com/display/BAMBOOCLOUD/Sharing+artifacts>


Tags: cloud
Integration between UFT and Bamboo
Asked by Jeffrey Lobo:

Has anyone used Bamboo and HP UFT together. to kick off automated regression tests after a build.


Answers:
author: VikasB
body: You. An give a try to UFT Task for Bamoo. It integrates UFT, Bamboo and JIRA together.

<https://marketplace.atlassian.com/plugins/com.mdb.plugins.ufttaskforbamboo/server/overview>
Deploy build only if code coverage is above threshold
Asked by Aviram Gabay:

Hi,

Is it possible to trigger a deploy job for a build only if the clover report shows above a certain percentage of coverage?

Thanks!


Answers:
author: Grzegorz Lewandowski
body: Hi,

you could use `targetPercentage` option to fail the build and then stop deployment. Please refer to the documentation for more information:

* <https://docs.atlassian.com/maven-clover2-plugin/latest/usage.html>
* <https://docs.atlassian.com/maven-clover2-plugin/latest/check-mojo.html>
* <https://confluence.atlassian.com/display/CLOVER/clover-check>

Best regards,

Grzegorz Lewandowski

comments: author: Aviram Gabay
body: Thanks for the answer!

I've looked into the links you send and I don't understand how to configure it via Bamboo.  
Do I need to have access to the server for that? Isn't there a way to do it from the Bamboo interface?

Thanks again


author: Grzegorz Lewandowski
body: Ok, sorry I blindly assumed that you're using manual integration with Clover and that's probably not the case and you're using automatic one. Such settings, as you require, are not available in Bamboo Administration screens since it's Clover product configuration not a Bamboo one. I can't be sure here, but you're probably using Maven to build your project, am I right?In that case you'd have to configure manually Clover with your poms, please refer to the \[docs \|<https://confluence.atlassian.com/display/CLOVER/Basic+usage>\] how to achieve this.


author: Aviram Gabay
body: I will try it! thanks!


author: Marek Parfianowicz
body: Shortly:1) Add maven-clover2-plugin to your pom.xml.2) Define \<targetPercentage\> option.3) Maven task should run: clean clover2:setup test clover2:aggregate clover2:clover clover2:check (I assume that you'd like to see coverage reports as well)4) In Bamboo you shall choose "Clover is already integrated into this build".5) Your deployment task trigger shall depend on a successful build task.


Tags: bamboo-administration

clover

coverage

deployment
cannot instantiate elastic bamboo server
Asked by Rick Waugh:

This was working fine yesterday. Today I don't seem to be able to create a server. When I try to do it manually it simply tells me it failed. When I try to configure a server, I don't get the product list, so when I try to change the configuration, it fails. I can log into Amazon with the account in question, and create a server, so not sure what the problem is.


Answers:
author: Rick Waugh
body: Still not sure what the issue was. I changed my AWS account, and it works. Not sure why the old one stopped working. The product list not being there definitely suggested a permissions issue.


author: Marcin Gardias
body: These kind of problems are best resolved through [Atlassian Support](http://support.atlassian.com).


Tags: elastic-bamboo
Bamboo - Downloading deployment runtime files.
Asked by mark_gillespie:

Perhaps this might seem an odd question, but I can't figure out what we need.

We use Stash/GIT as our SCM, and one one of the key rules, is you avoid storing binaries in GIT. We have mostly avoided this (aside from a few libs which we don't build, or can't build), these are all built by Bamboo nicely, and stored as downloadable artifacts for the deployment project to "download".

However when it comes to deployments, we also have large runtime files (e.g. .NET runtime) to pack into our installers that are built as part of our deployment projects. We currently have a separate GIT repository for these binary files, but it's growing large - we know it's not the right way to do this (which is why we kept them separate), but we also don't know what the right way would be.

I have looked at artefact servers like Apache Archiva, but it seems like this is more like a product where you publish artefacts and then download them (which Bamboo already does). In short, I can't see anything in the Bamboo Deployment project for downloading binary files from a binary file server to a place on the local disk, for packing into our installers.

Am I being totally stupid? What would be the ideal way to achieve what we are trying to do?

(Worth mentioning, environment is .NET/Windows)

<br />

Thanks.

<br />


Answers:
author: Alexey Chystoprudov
body: Hello Mark,

You can add some Script task to download required files by command line (Wget for Windows or some PowerScript code) to work folder and then use these files as part of deployment process
Send an email to an Atlassian Team
Asked by Patrick Tryon:

With the introduction of creating Teams in Atlassian, is there a way to send notifications/emails to the Team via something like automation?

The scenario is we have multiple teams using a single JSM Service Desk. With the Team option now available I was attempting to compartmentalize the work using the new Team field. This also allows the team lead to add and remove team members without having the Atlassian Admin team creating a group. The issue is how do I notify the team when a new issue is created?

I know you can assign an issue to a Team and you can also [@mention](/t5/user/viewprofilepage/user-id/732788) the team so that comments are shared easily. I just wanted to know if there was a way to use maybe the smart value {{issue.Team}} in some capacity.

Adding the Team option is great but if we cannot enable a mechanism to notify the team via automation this is a bit lost.


Answers:
author: Ste Wright
body: Hi [@Patrick Tryon](/t5/user/viewprofilepage/user-id/4783568)

It's not possible natively at present - but there are feature requests you can vote for, check out:

* <https://jira.atlassian.com/browse/JRACLOUD-82542>
* <https://jira.atlassian.com/browse/JSWCLOUD-23151>

Ste


Tags: cloud

jira-service-management

jira-service-management-cloud
Schedule customised build
Asked by Dan Gustafsson:

I have a build plan in Bamboo to build a project. The build uses a script which require 3 parameters. These are configured as variables and I can set them by Run \> Run Customised.

I need to set up a cron job to build several version of this project. Is there a way to provide these parameters somehow in a scheduled job?

Also, would it be possible to save popular configurations so they can be re-run easily without having to provide the parameters each time? Even if that would require some other scripting or calling a bamboo url directly.


Answers:
author: rverschoor
body: You can use the "Inject Bamboo variables" Task for this.

Let the cron job start a script that generates a file with the proper key=value pairs, and then starts the Bamboo build through REST.  
The "Inject Bamboo variables" Task uses the generated file.  
Note that the variables read from the file will be in their own namespace, e.g. ${bamboo_namespace_myvar} instead of just ${bamboo_myvar}.

Alternatively you can override variables in the REST call itself, as described in the [Resetting Variables via a REST API call and Dynamic Release versioning](https://confluence.atlassian.com/display/BAMKB/Resetting+Variables+via+a+REST+API+call+and+Dynamic+Release+versioning) Knowledge Base article.

comments: author: Dan Gustafsson
body: I think I can do what I want with the REST call. thanks!


author: Sergey Podobry _Stellarity Software_
body: Create a new branch plan and set its repository path to your original one (so it will use the same sources). In a branch override variables you need.

Then you can add scheduled builds and so on.

comments: author: Dan Gustafsson
body: At the moment I have 11 x 3 x 2 possible configurations. One branch for each is not really feasible. This is really what I wanted to avoid by using variables in the first place. But thanks for the suggestion.


Tags: bamboo-administration