youngmon/atlassian-qna huggingface dataset:
Junit XML Parser of bamboo does not separate test cases by their test suites
Asked by Kashyap:

Junit XML Parser of bamboo does not separate test cases by their test suites while displaying test results on bamboo. Basically all test cases found under XML files are either go to failed test OR successful tests but there is not further categorization by test suites under those two categories. XML results file does have testsuite information why bamboo does not group test cases by test suites. Does anyone have any example XML file which does that. My xml file looks like following which has 2 test passed tests in 2 different test suites.

\<?xml version="1.0" encoding="UTF-8"?\>

\<testsuites\>

\<testsuite hostname="cp-cip3" timestamp="Thu Oct 30 20:42:59 EDT 2014" package="com.olf.cxplugins.test.trayport" time="2000" ignored="0" failures="0" successful="1" tests="1" name="TrayPortSuite2"\>

\<testcase time="32.735" name="tpCommPhysGasNBPPrompt" classname="com.olf.cxplugins.test.trayport.TPCommPhysGasNBPPrompt"\>

\</testcase\>

\</testsuite\>

\<testsuite hostname="cp-cip3" timestamp="Thu Oct 30 20:42:59 EDT 2014" package="com.olf.cxplugins.test.trayport.test" time="2000" ignored="0" failures="0" successful="1" tests="1" name="TrayportSuite"\>

\<testcase time="135.782" name="tpDeleteDeals" classname="com.olf.cxplugins.test.trayport.test.TPDeleteDeals"\>

\</testcase\>

\</testsuite\>

\</testsuites\>  
\<?xml


Answers:
author: Krystian Brazulewicz
body: Yeah, we're flattening the structure. I think it would only matter to distinguish between testsuites if you were running the same tests in each of them but testsuite would provide different runtime conditions/input values.

Is this your case?

comments: author: Christian Auby
body: We use test suites to organize tests by category, GUI, DataLayer and so on. Once you go above 100 tests the test page gets quite unwieldy. It would be great if the test page in Bamboo grouped tests by the test suites and showed the number of passed / failed / total tests per suite.


author: pradhyumna shrestha
body: You are right .. the bamboo xslt transform template ignores the testsuites.

this is what bamboo thoughts the xml is and transforms that accordingly. ignoring multiple testsuite to group test case as if there were just one testsuite.

\<testsuite\>

\<testcase\>

\</testcase\>

\</testsuite\>

If you want to generate different report than t he one junit task generates in bamboo you might have to write your own plugin.

or you can generate a report using own xslt transformation but bamboo won't be maintaining that as the test cases but you will have a artifact report that has better details.

If you want to try custom report: use the following

<http://sourceforge.net/p/junitstylexmltestviewer/code/ci/master/tree/>


Tags: bamboo-administration
Linking to Stash from Bamboo: "Selected server has no repositories"
Asked by Pascal:

I'm trying to link a Stash (3.1.3) repository in Bamboo (5.5.1). When I select Stash as server, the repositories select box stays empty and I get the error message "Selected server has no repositories".

I have verified that the application links (outgoing and incoming authentication) between Stash and Bamboo are enabled (from both sides). Is there something I am overlooking? Do I have to setup certain repository permissions in Stash?


Answers:
author: Pascal
body: Going through several diagnostics steps (as suggested by Ron), my eye finally fell on what was wrong: the application link between Bamboo and Stash was configured to use http instead of https, which caused an http to https redirect when the authentication manifest file was requested. Changing the link to https solved the problem.


author: srinivas charan mamidi
body: i enabled SSH access in Stash, it is working


author: Jorge Falc?o
body: I solved this problem fixing the servers date/time


author: Ron Chan
body: For the application links, have you enabled "Trusted Applicatons", "OAuth" (including 2-Legged OAuth and impersonation through 2-Legged), and "Basic Access"?

It's not documented clearly which one does what, so for safe measure we've enabled them all and linking Stash\<-\>Bamboo works for us.

Also, I suggest downloading a plugin "Application Links Diagnostics" for both Stash and Bamboo. That helps determine where the unlinked connections are.

comments: author: Pascal
body: Thanks for your quick answer, Ron. Especially the AppLinks Diagnostics add-on is useful. I thought I was still stuck, though, when I saw its outcomes. Until my eye fell on the actual error... see my own answer.


author: Yared Ayalew
body: I've enabled all of the authentication settings and got a success using AppLinks Diagnostics tool but end up getting "Selected server has no repositories" message. Any idea?


Tags: bamboo-administration
When a mail will be triggered for Bamboo
Asked by F:

Hi All,

I am new to Bamboo and have configured a mail server for Bamboo and the test mail is successful and I would like to know which are the activities in Bamboo that will trigger a mail notification to the user, so that I can do a testing.

Thanks

Fahad


Answers:
author: Alexey Chystoprudov
body: Hello Fahad,

Look at Notification tab of plan configuration. It allows to setup notification events, for example send email to user who failed build or to all team.


author: F
body: Thanks Alexey.. :smile:
Updating License
Asked by Jorge Jauregui:

We purchased a new license for Bamboo, but I can't find where to enter it online. Where do I update the Bamboo license?


Answers:
author: davy
body: Hi Jorge,  

A Bamboo cloud license is automatically added to the cloud instance. (no action needed)  

A Local Bamboo server license can be updated at the license details on the local server.  
https://confluence.atlassian.com/display/BAMBOO/Updating+your+Bamboo+license+details  

If you purchased the wrong type of license contact our sales team  
https://www.atlassian.com/company/contact.  


Tags: cloud
bamboo capabability restrict
Asked by Timothy Harris:

Is there a way to keep users from creating capabilities? Some permission or restriction?


Answers:
author: Ron Chan
body: If you disable users from "Create Plan" permissions, that should prevent them from creating capabilities.

comments: author: Timothy Harris
body: I don't really see that as a solution. This would be a centrally administered Bamboo instance. But some users in projects will need to be able to create and modify plans. We do not want them managing capabilities or agents though. Any other ideas?
Is there a plugin to kill Hung builds in bamboo for local agent
Asked by Archana Balasanjeevi:

I was trying to kill the hung bamboo builds automatically via a plugin . I installed hung Build Killer , but it does not works for local agent . Is there any plugin to kill the hung builds(which run via local agents)


Answers:
author: Eric Pederson
body: +1 - this should be a supported plugin. Also it should work on local agents. Or at least be documented that it doesn't.


author: kiran jonnalagadda
body: I am also looking for Atlassian to implement this feature in bamboo


author: JamesV
body: I also have the same issue.


Tags: bamboo-administration
Best remote agent architecture for integrating Java and .Net application in CI
Asked by Chintan Patel:

As per my requirement, I need to integrate Bitbucket repository with Bamboo CI server hosted on linux machine as per following:

1. .Net application on Bitbucket
2. Java test application on BitBucket.
3. When there is a commit on .Net application repository, Bamboo should trigger MSBuild to build the repository on AWS windows server.
4. After that, Bamboo should trigger Maven test of Java repository to test the .Net application.

As I have mentioned, Bamboo server is hosted on linux machine, so I can only trigger Java Maven build from local agent as MSBuild.exe is not available on linux machine. So as per my thinking I need to create Remote agent on another Windows machine \[hosted on AWS\] to trigger the MSBuild.

Please confirm this approach and provide best practice suggestion for this requirement.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Your approach is right. You can just have the build run on remote Windows server. Everything else is business as usual. Just you the right tasks in the right order :wink:

comments: author: Shyam Visamsetty
body: Hi Jobin, Thanks for the answer. I work with Chintan on this. Would it also be a good idea to send commands to remote windows machine from the existing linux server and avoid creation of a remote agent? Would that be helpful?


author: Shyam Visamsetty
body: We were thinking of sending the remote commands using freeSSHD and powershell. Is that a good idea too?


author: Jobin Kuruvilla [Adaptavist]
body: I wouldn't do that unless you don't want spend money on a remote agent. Never tried it and so I am not sure how robust that solution would be.


Tags: elastic-agent

ms-build

remote-agent
Is it possible to move a deployment plan to another build plan
Asked by Jan Swaelens:

Hello,

Is it possible to move a deploy plan created for a build plan x to another build plan? The use case is as follows: we have a build plan for each major release and upon switching to the next one we want to move the deployment plan to the next/newly created build plan to deploy the artifacts of the latest version.

thanks


Answers:
author: Marcin Gardias
body: Yes it is, simply edit deployment details.

comments: author: Jan Swaelens
body: Ah, did not think of that - I was looking for an operation to trigger it ;-). Thanks!
How to use Bamboo release/version number to build package to deploy?
Asked by Mike Howells:

I'd like to use the release/version number generated by my deployment project as the version number of my released package. If that means I have to build the package in the deployment tasks, how do I avoid building the same release more than once? I only want to build a release once and deploy the same one to each environment.

At the moment I'm creating the released package in a build plan, but that means I can't use the release/version number provided by the deployment project.


Answers:
author: cbenard1
body: Hi Mike,

In Bamboo's current iteration this isn't possible natively. There isn't any access to the variables from later plans/deployments. This is a much requested feature though and has been added in the upcoming release of Bamboo 5.7: [https://jira.atlassian.com/browse/BAM-13573](https://jira.atlassian.com/browse/BAM-13573?jql=text%20~%20%22dynamic%20deployment%20variable%20version%22)

Your best bet would be to upgrade your current installation to 5.7 once it becomes available in the very near future.

Thanks!

Turner
Is there a way to make a stage run regardless of previous success?
Asked by kensykora:

One of the steps in my build process is to run automated load and UI/Selenium tests to verify everything's working. I'm doing this by spinning up a new cloud environment and spinning it down once the tests are complete. However, if tests fail, the stage to spin down the environment doesn't run.

Is there a way to configure my build so that it ALWAYS runs the spin-down scripts regardless of previous success/failure?

To give you an idea of what this looks like:

Screen Shot 2014-10-31 at 8.25.07 AM.png  
[](https://community.atlassian.com/t5/Bamboo-questions/Is-there-a-way-to-make-a-stage-run-regardless-of-previous/qaq-p/139255?attachment-id=8262){#link_11696fb0fef6fc}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/4503/1/Screen%20Shot%202014-10-31%20at%208.25.07%20AM.png){#display_11696fb0fef6fc_0}


Answers:
author: Krystian Brazulewicz
body: I think you should simply consolidate 3 last stages/jobs into one stage/job. In a job you can mark a task as a finalizing and it will always be executed.

comments: author: kensykora
body: Thanks, I'll give this a shot. it'd be nice to be able to do this on a stage level, as I am going to be adding in load tests into that, which can be run in parallel with the UI tests. With your suggestion I'd be unable to do this.


author: kensykora
body: Submitted feature request: <https://jira.atlassian.com/browse/BAM-15171>
Run own PHPUnit excutable
Asked by gadelkareem:

I am using Laravel PHPUnit library installed with composer. I managed to run PHPUnit using the script task but I am wondering if I can get the tests results on my control panel as well?


Answers:
author: gadelkareem
body: I figured it out!

I use Laravel PHPUnit testing so I had to edit the image configuration and add capability of type PHPUnit with name as Laravel PHPUnit and path as ./phpunit then added a task on the plan from PHPUnit and choose the Laravel PHPUnit that I added earlier. Checked the log xml test and it works


author: Krystian Brazulewicz
body: Can you please explain exactly what is that what you're trying to get?


Tags: cloud
How can I tag a BitBucket (mercurial) repository from a Bamboo build?
Asked by pdhaigh:

It currently appears that only Subversion is supported. Is this currently possible/are there plans to support this?


Answers:
author: cbenard1
body: Hi Phil,

In its current iteration Bamboo does not have the ability to tag HG repos. We have this feature request created to add that ability: [https://jira.atlassian.com/browse/BAM-9138](https://jira.atlassian.com/browse/BAM-9138?jql=text%20~%20%22hg%20tag%22%20and%20project%20%3D%20bam)

Apologies that I do not have better news/a solution for you at this time.

Thanks!

Turner


Tags: bitbucket-cloud

cloud
What is the recommended way of triggering a Bamboo deployment plan from a JIRA release?
Asked by pdhaigh:

I can trigger a build from a JIRA release, but I actually want to deploy the release. Of course, I could add the deployment tasks to the build job, but that circumvents the use of the deployment plan. Since it seems that deployment plans are the Future, surely there is a way to use these from the JIRA release?


Answers:
author: pdhaigh
body: Thanks Mike - but this means that you can't use automatic builds, as they will then trigger the deployment.

The work around that seems best is the use automatic builds with a "dummy" manual stage, so the builds complete all the real work, but pause rather than completing. A JIRA release can then select that build to finish - with a deployment plan containing an automatic trigger as you suggest.

However, I'm sure Atlassian have plans to make this integration a little tighter - rather than requiring a work around - is there an issue we can watch to track progress on this?


author: Mike Howells
body: You can configure triggers in your deployment plan environments to automatically deploy when a build is successful. So you could get JIRA to trigger a build and get that build to trigger the deployment to an environment, e.g. the first environment in your deployment pipeline.

Screen Shot 2014-11-01 at 12.33.34 am.png  
[](https://community.atlassian.com/t5/Bamboo-questions/What-is-the-recommended-way-of-triggering-a-Bamboo-deployment/qaq-p/158717?attachment-id=8954){#link_11696fefbdc5cc}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/5086/1/Screen%20Shot%202014-11-01%20at%2012.33.34%20am.png){#display_11696fefbdc5cc_0}


author: pdhaigh
body: Ok, so JIRA doesn't currently support this natively. Are there plans for this? It would make sense to me, as this appears to be a reduction in functionality if you use Bamboo deployment plans - which surely isn't the intention.


author: Jobin Kuruvilla [Adaptavist]
body: You can write a JIRA listener that kicks of the deployment plan in Bamboo. Need some dev effort!


Tags: jira
Can I create drop-down list for permissible values for variable names in Bamboo?
Asked by Tarun Makhija:

I have 2 variables defined for a build plan.

The value box is a text box which enables the user to put in any value.

Instead of the text box, I would like to have a dropdown list with permissible values from which a user can pick. Is this possible in Bamboo?

TIA


Answers:
author: Jonathan Paul
body: Did you ever manage to figure it out? I want to do the same thing (like a variable called environment, with only values "qa" "prod" and other predefined environments allowed for the developer to choose from


Tags: select-list

variable
Common tasks between environments?
Asked by Richard Cross:

I have a Deployment Project set up to deploy to Test, SIT, UAT and Production. The method of deployment for each environment is exactly the same, save for the above labels which determine the way in which the application runs and configures itself.

The only problem is that I have to duplicate each deployment step in every single environment, which creates a real headache in terms of maintenance when I need to adjust the deployment steps.

Is there a workaround for this?


Answers:
author: Rados?aw Antoniuk
body: I don't think you can do it another way. In Bamboo 5.6, they added a cloning capability to the environments, so if your plans are **exactly** identical, then you can easily modify one environment and then clone it to others.

Another way, you can create a bash(or whatever) script, that will do all of the steps, and then just hook this up as a task and do the maintenance of it outside Bamboo. That sometimes simplifies things a lot.


Tags: bamboo-administration
Artifact download to a directory outside the working directory
Asked by Sean Phelan:

I'm new to Bamboo and I need to copy artifacts to a directory outside the working directory. This doesn't seem possible with the Artifact download task. Correct?

If this is true, should I just add a script task after the download to move the files? I want to confirm I'm not overlooking something.

Thanks in advance


Answers:
author: Rados?aw Antoniuk
body: Yeap, that's the way I do it.

The artifact downloader is treating / as the working directory. So I am just doing mv in an inline script after artifact gets downloaded. :smile:


author: pradhyumna shrestha
body: you can but use the relative path to the bamboo working directory for the plan in the "Destination path"

you can print the bamboo directory path using

if you want to use artifact download task in a remote agent : use ${bamboo.agentWorkingDirectory} to first print out the bamboo working directory for the plan using a simple bamboo task with the above variable

echo ${bamboo.agentWorkingDirectory}

or

check the log file to get idea on what is the working directory

Then use path to where you want to copy the artifact relative to the above value.
How does configure my Bamboo plan permissions
Asked by a-derkach:

Hello,

I'm a custom Confluence user.  
I created new build plan on the Bamboo.  
Can I (or admin) disable permissions for other users to change any configurations of my plan?


Answers:
author: Luther Hargrove
body: You can go to Actions \> Configure Plan \> Permissions tab and set the permissions there. You can decide who can see your plan and who can run it, etc..


Tags: permission

plan
Bamboo and Ruby - Bamboozled Plugin
Asked by Craig Solinski:

Bamboozled Plugin for Bamboo 5.x is installed.

On a remote bamboo agent have a Ruby software stack installed.

Plan requirement will force plan to run on Agent with Ruby stack.

The problem is, on the Plan Configuration, Miscellaneous tab the Ruby environment is empty.

YET a selection must be made according to Plan failure message. I've clicked 'Detect Server Capabilities' on Bamboo Server but the Ruby stack of software is NOT on the Primary Bamboo Server - its on the Remote Agent Server.

This is my first attempt to create and run a Ruby plan under Bamboo using Bamboozled Plugin. (We are mainly a Java shop and we have 200 plus Java plans running successfully across Primary Bamboo server and other remote Agents. The Bamboozled docs do not seem to address the case where the Ruby stack is on a Remote Agent.

Thoughts?

Thank you,

Craig


Answers:
author: Rados?aw Antoniuk
body: The capabilities you mention are (in your case) from the remote agent, not the server. So the remote agent needs to detect them, or if it is unable to, you can add those capabilities by hand. If you navigate to the Agents, click on the remote agent name, then you have a button for adding a capability for that specific agent. Once this is done, you can configure your plan to depend on specific dependencies that only your remote agent has.


author: Craig Solinski
body: I'm thinking perhaps <http://rvm.io/> needs to be installed on the Primary Bamboo server, so 'Detect Server Capabilities' will load a valid value into the Plan Configuration, Miscellaneous tab.

Requested this software be installed...
Bamboo and stash
Asked by Susant Prusty:

We have couple of projects in stash were we have multiple repositories inside each project depending on the product and every repositoy has it's own build, test and deployment ways.

Now we are very new to Bamboo , what is the best way to set-up plans ?

Do we have to create plans for indivisual repositories ? can we adjust all the CI process in a single plan ?

Thank you

Regards,

Susant


Answers:
author: Susant Prusty
body: Can I create a single job and add all the tasks there ?

Build, test, deploy etc ?

Thank you

Regards,

Susant


Tags: bamboo-administration
How can I run specific build based on variable?
Asked by Tarun Makhija:

I have 3 build tasks in the deploy stage of my plan-

Clear Demo which runs  
-U clean liquibase:dropAll -pl database/mysql -Pdemo

Clear Dev which runs  
-U clean liquibase:dropAll -pl database/mysql -Pdev_int

Clear QA  
-U clean liquibase:dropAll -pl database/mysql -Pqa

**Right now, when I have to deploy in demo, I have to disable dev_int and qa**.

**What I want to do?**   
Just have one step, which **picks the value from a variable** e.g. WHICH_ENVIRONMENT  
The value can be : demo, dev_int(default), qa

-U clean liquibase:dropAll -pl database/mysql -Pl**++\<WHICH_ENVIRONMENT\>++**

Is this possible?

TIA for help!


Answers:
author: Ron Chan
body: You can setup 3 environment deployments demo, dev_int, qa.

And each one has a deploy task that calls:  
-U clean liquibase:dropAll -pl database/mysql -Pl${bamboo.deploy.environment}

The value of ${bamboo.deploy.environment} will be based on the environment name i.e. demo.

comments: author: Tarun Makhija
body: Thanks for your answer! Saved me a lot of time and solved my issue!


Tags: variable
How do you deploy to Salesforce when you have scheduled apex jobs?
Asked by Dreamforce Attendee:

From [this comment](https://developer.atlassian.com/display/SFDC/Frequently+Asked+Questions?focusedCommentId=30612000#comment-30612000) -

I have been using SF migration tool, but encounter a road block: we have quite a few scheduled apex job in the system. Although the jobs may not run, the migration tool will just error out. Do you run into issue with schedule jobs? If so, how do you resolve them? Thx.


Answers:
author: Melanie Wright
body: We have an apex class that we use to abort and schedule all jobs before and after deploys. We currently run this manually by calling the methods with anonymous apex (from the dev console or SoqlXplorer), but we would ideally build this in as a step in our Bamboo deployments.

```
public with sharing class ProcessScheduledJobs {	public static void scheduleAll(){		System.schedule('jobname1','0 0 2 ? * SAT', new SomeSchedulableClass());		System.schedule('jobname2','0 1 * * * ?', new SomeOtherSchedulableClass());	}	public static void abortAll(){		// CronJobDetail.JobType = '7' represents scheduled apex jobs		for(CronTrigger ct : [SELECT Id FROM CronTrigger WHERE CronJobDetail.JobType = '7']){			system.abortJob(ct.Id);		}	}}
```


Tags: salesforce