youngmon/atlassian-qna huggingface dataset:
Is there a way to include a capability's location in an Inline Script task?
Asked by Dan Rumney:

I have a Script task for creating a JAR file that looks like this:

```
$BAMBOO_CAPABILITY_JAR -cvf ../target/static.war *
```

As far as I could tell, this is the way to access the value of the jar capability of the agent running my task (it is set as a requirement on the job.

However, $BAMBOO_CAPABILITY_JAR is evaluating to nothing, so my Script task is failing.

So... if I want to include the location of a capability in my in an inline script, how should I do it?


Answers:
author: Przemek Bruski
body: try ${bamboo.capabilityname}
What's the best practice to achieve database isolation for Bamboo branch build?
Asked by Georges Auberger:

Automatic Bamboo feature branch builds are great. The problem is that now each branch will run its own integration build periodically.

What is the best practice to ensure that each branch build tests are isolated from each other when they execute against a common database?


Answers:
author: Quinton McCombs
body: So far the only answer that I have found is to dedicate an agent to the bamboo project. This causes all build within that project to single thread using one agent. It is far from ideal but it does prevent concurrent build from hitting the same database.


author: Shaunt Kojabashian
body: I'd like to know this as well... The Git feature branch workflow looks awesome however I have no idea how to incorporate that with a database project and CI.


Tags: cloud
How can I get contact Atlassian Bamboo support member?
Asked by madhu aravabhumi:

I would like to speak to Atlassian support member for my Bamboo license upgrade and cost details for renewal support. I like to work closely with Bamboo support team in Bamboo upgrade.

How can I get Atlassian support member contact? (My bamboo is purchased from USA)

-Madhu


Answers:
author: rsperafico
body: Hi Madhu,

Thanks for contacting us.

In order to provide you a better resolution to your questions, I would kindly ask you to open a **Support Request** under "**Bamboo Administration** " \>\> "**System** " \>\> "**Atlassian Support Tools** " \>\> "**Support Request**"

Once our Support Team receive your ticket raised, we will be redirecting you to the appropriate channels where your question about Bamboo upgrade / costs fro renewal support will be answered.

We are looking forward to hearing from you.

--

Kind regards

Rafael


author: Nic Brough -Adaptavist-
body: Atlassian don't really do telephone support.

You should raise a support request with them and include your telephone contact details, and they'll ring you if they can't handle it via email or it's going to be quicker with a call.


Tags: bamboo-administration
In Bamboo how can you access\edit plan and global variables in windows powershell script
Asked by Ryan Vice:

I'd like to be able to read and update plan and global variables from PowerShell scripts. Ive seen that you should be able to take a variable like

bamboo.buildNumber

and access it in script by using

$bamboo_buildNumber

and i've also seen that you need to do

$BAMBOO_BUILDNUMBER

but neither is working for me.

What's the correct way to access these varialbes? And can you set them and then have that value available to other tasks, stages, deployment projects, ect...


Answers:
author: Jason Monsorno
body: If you run it as a Script command or pass in as arguments you can use Bamboo Variables in PowerShell. No matter where you use bamboo variables the format is the same
> ${bamboo.buildNumber}

If you continue to have problems, make sure to check the log as it shows which variables it's substituting before calling anything:
>
> ```
> command	29-Jan-2014 09:24:36	Substituting variable: ${bamboo.buildKey} with TOOLS-TINK-BUILDcommand	29-Jan-2014 09:24:36	Substituting variable: ${bamboo.buildNumber} with 2command	29-Jan-2014 09:24:36	Substituting variable: ${bamboo.buildTimeStamp} with 2014-01-29T09:24:21.118-05:00command	29-Jan-2014 09:24:36	Substituting variable: ${bamboo.repository.revision.number} with 187290command	29-Jan-2014 09:24:36	Substituting variable: ${bamboo.repository.branch.name} with Trunk
> ```

```
As for editing, there is a plugin that can inject variables from a text file which you could create with PowerShell; personally, I've got inconsistent results with it so I abandoned it but here it is: https://marketplace.atlassian.com/plugins/com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin. I'm not sure if the API will allow changes to any Global Variables or if it does whether the changes would be available in the same build in a later step (might cache).
```

<br />


Tags: cloud
Is there a way to get a Deployment Project to kick off the build it's dependent on when running on a schedule?
Asked by Ryan Vice:

I want to have a scheduled daily build that builds and deploys to our dev environment and I'd like to be able to reuse the build for things other than just the daily build. Because of this I'd like to be able to have the deployment job kicked off from a scheduled trigger and have it automatically run the dependent build plan. I've tried doing this and it looks like the deployment project grabs the last sucessful build plan's artifacts which is not the desired behavior.


Answers:
author: Jason Monsorno
body: You could trigger it with the API but you'd also need to be waiting around for it. I can't think of a straight forward way to handle what you seem to be asking for so I'll list off a few ways to get it done which you can probably mix and match a bit.

Two plans - Same configuration except different time triggers each with their own deployment project that is triggered off the build.

Two triggers on the same build, if you could redeploy the last successful build if the last build(s) failed and have a known time limitation of the build then you could have two build triggers and each with their own accompaning deployment triggers that are (build time) apart from the build triggers. You could also build in checks to prevent needless redeploys.

And a complicated way mainly by excess logs, setup two triggers on the build and have each deployment project trigger off the build. The first job of the deployment project would check some parameter; bamboo variable, artifact, timestamp, time, etc.; and either do the work or not. Not doing the work can't cancel the deploy though, you'd either have to report successfully doing nothing or report a failure which won't go to the next steps.

More complicated, less logs. Build has two triggers, deployments have none. Last stage of the plan will use same/similar check parameter as previous example and manually trigger the deployment(s) of its choosing. The call would need to be async to an external script/process and have a short delay to ensure the build is complete before the deployment is fired off. This is the most complicated but will write/leave the cleanest results to view, the UI will show which deployment(s) was called from each build and you only have a single plan to configure.


Tags: cloud
Bamboo ignoring my artifact and deploying the full git branch
Asked by guiwoda:

Ok, I'm pretty new to Bamboo, and I'm having a hard time deploying *just the way I want*.

Right now, I have a **build** plan that polls my git repo for changes in a branch ("*development*") and does:

1. checkout  
2. script (removes files that **I don't want** to deploy)

There's a shared artifact (called "*DevelopmentArtifact* ") and, when this build finishes, **I can see the content of this artifact is correct (the files I don't want to deploy are not there).**

This triggers a **deploy** configuration for a QA environment. The tasks defined in this environment are:

1. Artifact Download (pointing at "*DevelopmentArtifact* ")  
2. SCP Task

When I read the deployment log, I can see it is actually deploying **the full development branch** , not the "filtered" artifact. **All the files that I removed with my script on build are back there!**

Any ideas why would that happen?

I have both "development" and "master" branches configured in the plan, and both the Build and Deploy plans show the "development" branch label. But **there is no version control checkout in my deployment configuration** , so **why would it ignore the artifact** and get all the files instead?

Let me know if you need more info to understand the problem.

Thanks.


Answers:
author: guiwoda
body: For now, I just moved my script task from build to deployment. But still, I'm curious about this.
Atlassian products - Offline help?
Asked by Chris Ryan:

Is it possible to have the application help within the applications themselves available on standalone (PC's not connected to the internet)?

i.e. I want to click the "?" button in the top right of Bamboo, and it actually navigate to the product documentation. Is it possible to install the docs so they exist on the Bamboo server itself?

Thanks,

Chris


Answers:
author: Chris Ryan
body: Found it!

<https://confluence.atlassian.com/display/ALLDOC/Bamboo+Documentation+Directory>
Post build action
Asked by Marcin Czajka:

I have a mvn project on bamboo. We generate some custom test reports based on sure fire reports. This is done by mvn javadoc plugin (test reports contain also documentation of test). I wanted to do:

mvn clean install javadoc:test-javadoc

The thing is that javadoc plugin won't be called in case of test failures, of course I want to have both: build failure in case of test failure and reports. Ignoring test failures during the build is not the option.

Is there any way to add some post build task which is executed after each build?

I found:

[](https://confluence.atlassian.com/display/BAMBOO026/Post+Build+Completed+Action+Module)<https://confluence.atlassian.com/display/BAMBOO026/Post+Build+Completed+Action+Module>

but this requires additional coding and maybe there is more simple solution

regards


Answers:
author: Peter Van de Voorde
body: Hi Marcin,

You could simply make the post build task a final task in you Bamboo job.

Take a look here for more information : [](https://confluence.atlassian.com/display/BAMBOO/Configuring+tasks)<https://confluence.atlassian.com/display/BAMBOO/Configuring+tasks>

Best regards,

Peter

comments: author: Marcin Czajka
body: Hi Peter,

thank you very much for your answer.
Bamboo Startup Time
Asked by Kyle Varga:

Bamboo takes over 30 minutes to startup, it appears that it is loading all builds into the JVM Cache. This seems like a not-great thing todo. Is there any way to configure this to use a redis/memcached or decrease the amount of caching?


Answers:
author: Przemek Bruski
body: 275 - that's not much - any plan branches?

Yes, disabled plans also get loaded.

comments: author: Kyle Varga
body: Instance statistics {#toc-hId--1332420396}
------------------------------------------

Number of plans 60991 {#toc-hId--444916715}
-------------------------------------------

Number of builds (approx) 7866 {#toc-hId-442586966}
---------------------------------------------------

Full reindex time (approx) 6 minutes {#toc-hId-1330090647}
----------------------------------------------------------


author: Przemek Bruski
body: over 60K plans. That looks suspicious. Which Bamboo version are you on and does this number keep growing "on its own"?


author: Kyle Varga
body: It seems to be growing "on its own".

Number of plans 61082

Number of builds (approx) 8009

Full reindex time (approx) 6 minutes

We are currently running Bamboo 5.1.


author: roy_lyons
body: Check to see if you have a variable set for the git repository url in one of your plans that has automatic branching turned on. Thats what did it to mine!


author: Daniel Wester
body: Are you using Plan Branches? In particular is there a set of build plans that have a lot of branches?


author: Kyle Varga
body: We are. I just found a bug that is fixed in 5.1.1 (we are running 5.1.0 until tonight) that has some sort of infinite loop if the branch names contains a comma. Most likely the cause, hope to clean this all out and see how much it improves load time.


author: Przemek Bruski
body: Yeah, that bug is the reason why I've asked about growth and Bamboo version.

Once you upgrade, the branches coung will stop growing, but the old ones will still be there.

You can try enabling branch expiry on the affected plans to have Bamboo remove the automatically. It's a lot to remove though.


author: Kyle Varga
body: There is some steps to help cleanout the old branches in the bug ticket that I will attempt to follow tonight.


author: Adam Pryce
body: How can we obtain these kind of instance statistics? We are dealing with a similar problem, but we aren't sure how to take that heartbeat.


author: Przemek Bruski
body: Unfortunately not. We are aware of the problem though and we are investigating possible approaches to reducing it.

30 minutes seems like a lot though - how many plans do you have?

comments: author: Kyle Varga
body: 275 Build Plans. Do disabled plans also get loaded into memory?


Tags: bamboo-administration
jUnit test results
Asked by James Rogers:

I want to publish jUnit test results. Is using an Atlassian product a good way? What product?


Answers:
author: James Barwick
body: The answer:

install an 'instrumentation' in the android manifest for the 'missing junit xml generator' from GitHub.

Google it.

Then after the instrumentation is installed, you can run:

ant emma instrument install test fetch

The last 'fetch' is a custom.properties target to pull the XML files from the emulator

Then, in the Ant build job, you can optionally turn off the 'this build produced junit test results' and use the extra JUnit Parser, or just ust the Test results from the Ant job itself.


author: Timothy
body: [Bamboo could be a solution](https://www.atlassian.com/software/bamboo) for you. Once the JUnit's are executed [as tasks](https://confluence.atlassian.com/display/BAMBOO/task), you could make them artifacts. You can then deploy them using [Bamboo's depolyment funcitonality](https://confluence.atlassian.com/display/BAMBOO/Deployment+projects).

comments: author: James Barwick
body: couple of things:

1) I dont know what "JUnit's are executed as tasks" means. I know what a task is. I can run "Ant", but I guess you mean "Execute JUnit test cases with 'ant test'".

2) Various projects including "Deployment Projects"...wow! Lot's of information to obsorb. I wish there was a "Quick Start Guide" that just told me what to do. I really hate guessing.

Since I found the Android instrument for producing JUnit test results in XML, and have finally figured out how to use Ant to fetch the results from the emulator, and finally figured out how to use the JUnit Parser in Bamboo, I got 'something'....but still not sure if this is 'best practice'.

When buying bamboo, you should be 'told what to do' instead of trying to figure it out. Why does everyone have to recreate the wheel? Let's get best practices out there. Bamboo and Atlassian should differentiate itself from Jenkins/Hudson. Don't make people PAY to figure out how to use your software (Atlassian University). You should invest in this training for customers and remove the roadblocks to customer adoption.


Tags: atlassian-support
Can I use/extend my current Bamboo license with another Bamboo server setup?
Asked by madhu aravabhumi:

Hi, I am currently running Bamboo server with license type "Bamboo Enterprise: Commercial Server" which contains 25 agents support. I want to setup another Bamboo server on Linux machine for future projects with same licence key. Is it possible?

Thanks in advance, -Madhu  


Answers:
author: darylchuah
body: Hi Madhu

It is not possible. The single commerical license only entitle you the following:

<https://www.atlassian.com/licensing/bamboo#downloadlicenses-5>

comments: author: madhu aravabhumi
body: Thanks Daryl. Also I would like to speak to Atlassian support member for my Bamboo version upgrade procedure queries and cost details for extend/renewal support. I like to work closely with Bamboo support team.

How can I get Atlassian support member contact? (My bamboo is purchased from USA)

-Madhu


Tags: bamboo-administration
FTP Uploader for Bamboo funktioniert nicht
Asked by Vitalij Befus:

Habe das Plugin FTP Uploader for Bamboo gekauft. Funktioniert gar nicht: kan nicht konfigurieren, kan nicht in Tasks ausw?hlen (gibt's nicht)!


Answers:
author: Sergey Podobry _Stellarity Software_
body: Hi Vitalij,

In case you still need an FTP functionality please try a new [FTP Task](https://marketplace.atlassian.com/plugins/com.stellarity.bamboo.ftp-task/server/overview) addon. It works in deployment plans, can upload and download files, supports SSL and reconnection.

I hope you'll find it useful.

---

Best regards,

Sergey
What is the price of Bamboo too?
Asked by Rasmiranjan Nayak:

Hello Sir/Mam,

I have checked the prcing of Bamboo tool in [](https://www.atlassian.com/software/bamboo/pricing)<https://www.atlassian.com/software/bamboo/pricing>.

But got confused with pricing details.

Please let me know, whether these pricing for Local Agents or Remote Agents or both cost same?

If not then please provide me what will be price of "Local Agent License" and "Remote Agent License"?

I would like to know one more thing, what are the advantages of Remote Agent than Local Agent?

Because documentation says only two lines that, Local Agent runs in Bamboo server and Remote Agents runs in Non Bamboo server.

Could you explain Remote Agents Benifits or advantages over Local Agents?

Thanks in Advance


Answers:
author: Jason Monsorno
body: Agents in the pricing model are all remote agents. Remote agents are instances of the Bamboo process designed to sit on other machines in order to distribute load. Local agents are basically the number of worker threads Bamboo can start, which is unlimited.

Local Agents are threads on the same machine to allow multitasking but higher risk of overloading the machine and slowing everything down.

Remote Agents cost money but distribute the computing power to multiple computer.

Each Agents can be configured differently to force certain builds the necessity to use a subset or agents can be dedicated to builds or deployments so the can have their own queue or just forced to specific hardware/software you wish.

Personally we did the Download License and are able to get 7 local agents per machine without degrading performance. Machine stats: 64-bit Windows Server 2008 R2 2x 2.53 GHz 4.00 GB

comments: author: Jason Monsorno
body: Also, scroll down on the link you sent:

> Bamboo's pricing tiers are based on build slaves, or "remote agents" as we call them, rather than on user seats. With multiple agents you can split long-running test suites into parallelized batches, and run multiple builds simultaneouly. The more concurrency, the faster your team gets feedback on their changes. The faster the feedback, the easier (read: cheaper) it is to address problems
Bamboo - session timeout
Asked by Jeffrey Lobo:

Is there a configuration setting in Bamboo for a session timeout.

One which defines when the system will close a user session because of inactivity.


Answers:
author: rsperafico
body: Hi Jeffrey,

Thank you for your question.

Please, refer to [How to stop Bamboo from timing out](https://confluence.atlassian.com/display/BAMKB/How+to+stop+Bamboo+from+timing+out "How to stop Bamboo from timing out") for further information.

Kind regards,  
Rafael
Plans for more 'gradual' licensing of Clover for OnDemand users?
Asked by Mark Derbecker:

Everything in Atlassian's OnDemand suite is great for startups. The incremental capability for incremental cost that scales with the team is really enabling.

The exception is Clover. We would have signed up for Clover if it wasn't such a major upfront cost to roll it out to the team ($1000s of dollars). As a result, we integrated Sonar.

The question for the Atlassian team is: Any plans to make Clover pricing more harmonious with the rest of your OnDemand products?


Answers:
author: Marek Parfianowicz
body: Hi Mark,

This topic has been started some time ago:

[](/questions/74521/any-plans-for-a-clover-desktop-starter-license)<https://answers.atlassian.com/questions/74521/any-plans-for-a-clover-desktop-starter-license>

but as far as I see, there was no final decision about it.

Starter FAQ about Clover:

[](https://www.atlassian.com/licensing/starter#clover-1)<https://www.atlassian.com/licensing/starter#clover-1>

An old issue raised in JIRA about it:

[](https://jira.atlassian.com/browse/CLOV-752)<https://jira.atlassian.com/browse/CLOV-752>

Cheers  
Marek

comments: author: Mark Derbecker
body: Ok, thanks!


Tags: cloud

clover
Can I send a notification when a Bamboo build starts?
Asked by John Cheripka:

Can I send a notification when a Bamboo build starts? It seems all the notification options are tailored to when the build completes or fails.


Answers:
author: John Cheripka
body: Thanks for the suggestion Kelly. I was able to send an email when the build starts by using an inline script task.


author: Kelly Schoenhofen
body: One thought would be to notify on the first job completing - while Plan notifications support jobs, it's job failures and/or change of status, so that wouldn't help.

I can think of two options:

1) Put a script step in there and run a shell/vbs script (depending on your OS) that sends an smtp email to an address. If you google, you can find dozens of vbs scripts that will send an email, for instance. The advantage of this option is you can customize the email contents.

2) It's kludgey, but you could tie two jobs together - the "real" job could be the child and an empty parent job could be what you kick off and provides the notification (that job #2 is starting). The advantage of this option is your email stays in the Bamboo Notification framework - nice html email, nice choices of recipients. The biggest disadvantage I can think of is you can't really customize the contents of the email. You'd have to name the plan something like "Plan #2 is starting", so its more obvious to the recipients what is occurring

I can see pro's and con's to both; I would go with option #1 to be honest. Find a nice smtp email script and you could customize the content in an plan arguement I bet. You could include several variables from the plan and punch up the content.


author: J. Caldwell
body: what is triggering the build? Manual or automatic process?

comments: author: John Cheripka
body: Currently set up as a manual process because the plan is not fully operational yet, but will be looking to move to an automated process once the plan is stable.
5.3 Compatability with Bamboo Inject Variables Plugin
Asked by Kelly Schoenhofen:

I know Bamboo 5.3 just came out, but we upgraded (because we're just so excited about Bamboo I guess) and now we would like to use this plugin. Can you upgrade its compatibility level so we can install it?


Answers:
author: Przemek Bruski
body: The fastest way is to install it manually without waiting for us via "Upload" in Addon Management.

comments: author: Kelly Schoenhofen
body: Thanks - I didn't notice you could upload plugins via the UI before, I assumed it would be some sort of manual copy to a plugins folder on the Bamboo server. I just installed it to our 5.4 server via the Upload method in Addon Management, and it appeared successful. Thanks again.


author: Matthew LaPine
body: Is the plug-in compatible with 5.6.2, or will we need a new version? If a new version is needed, when will it be available, please? Thank you.

comments: author: Terry Leung
body: Matthew any luck getting the latest version? I have jut installed Bamboo 5.6 and found out this plug-in isn't compatible also.


author: mnd
body: I would also like to see this plugin compatible with future versions - and possibly even be supported by Atlassian.


Tags: addon-com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin

bamboo-app