youngmon/atlassian-qna huggingface dataset:
Ubuntu stock image, update to last Docker version
Asked by fmontada:

Hi team is there way to update Docker on Ubuntu stock image, I am able to build a new image with Docker task but I am not able to push it to Docker hub, I read that I need to have the last version of Docket because old version has incompatibility with Docker hub

Error

```
error	30-Aug-2015 18:45:21	time="2015-08-31T01:45:21Z" level=fatal msg="Error: Status 400 trying to push repository fmontada/book-system: \"Access denied: 703a8705027fab8928c91f11e58e1d1ad12716c60f3705a6b5e71e579b1a89a5 is a private image\"" 
```

Thanks

Francisco


Answers:
author: Przemek Bruski
body: You can use the instance startup script (via Bamboo Image Configuration) to install a new docker. Like this:

```
curl -sSL https://get.docker.com/ | sh
```

comments: author: fmontada
body: Hi @Przemyslaw Bruski thank to replyI added it to the config yesterday and did not work curl -sSL <https://get.docker.com/> \| shErrorerror 31-Aug-2015 08:26:23 \* Are you trying to connect to a TLS-enabled daemon without TLS?error 31-Aug-2015 08:26:23 \* Is your docker daemon up and running?simple 31-Aug-2015 08:26:23 Failing task since return code of \[/usr/bin/docker build --force-rm=true --tag="fmontada/book-system:39" /home/bamboo/bamboo-agent-home/xml-data/build-dir/BOOK-BOOK-JOB1/infrastructure.client.mobile\] was 1 while expected 0I also add "sudo /etc/init.d/docker restart" to restart Docker and did not work could you help us ? Thanks Francisco


Tags: cloud
Syncing Shared Dev Sandbox Changes
Asked by bk-dev:

How do you guys handle syncing changes from the shared dev sandbox down to the individual dev sandboxes? I'm assuming you would merge from dev/master and then perform an ANT push operation to your dev sandbox. Is this correct?


Answers:
author: Melanie Wright
body: That's pretty much how we do it, yep!

Usually we compile our Mavensmate project in Sublime Text rather than use Ant but whatever works best for your flow.

You could even build bamboo plans to update your sandboxes on command.
Do I need to upgrade remote agents when upgrading server from 5.7 to 5.9?
Asked by Matt Walsh:

I am upgrading the Bamboo server from 5.7 to 5.9. Is an upgrade of all remote agents required as well?


Answers:
author: Sergey Podobry _Stellarity Software_
body: Remote agents are upgraded automatically as soon as they connect to a new Bamboo server.


author: Matt Walsh
body: Thanks Sergey.

<br />

What about a downgrade? If I had to rollback the server to the previous version for some reason. Would they downgrade themselves as well?

<br />

Thanks.

comments: author: Sergey Podobry _Stellarity Software_
body: Downgrade works too.


Tags: bamboo-administration
Parse phpunit html without using PHPunit task
Asked by Ryan McLaughlin:

Based on this article I can setup a PHPUnit task to run my PHPUnit tests

<https://confluence.atlassian.com/bamboo/phpunit-289277055.html>

However, I run my PHPUnit tests through paratest so they can run in parallel and execute much faster. It still outputs the same PHPUnit html and xml.

I would like to know how I can setup the PHPUnit task to parse the details without having to actually run the phpunit tests.


Answers:
author: Steffen Opel _Utoolity_
body: Update {#toc-hId-1651170048}
----------------------------

Similar to the referenced JUnit task referenced below, the [PHPUnit](https://confluence.atlassian.com/bamboo/phpunit-289277055.html) task also supports the (unfortunately undocumented) advanced option to *Pick up test results that where created outside of this build* - assuming it also works in a similar way, this will hopefully allow to achieve your goal (haven't used it myself though):

image2015-8-28 18:12:3.png

*** ** * ** ***

Initial Answer {#toc-hId--900986913}
------------------------------------

I'm not familiar with [paratest](https://github.com/brianium/paratest), however, it seems the XML output you are referring to is in the popular JUnit format:
>
>     --log-junit           Log test execution in JUnit XML format to file

Bamboo supports various [tests tasks](https://confluence.atlassian.com/bamboo/configuring-a-test-task-289277052.html) besides [PHPUnit](https://confluence.atlassian.com/bamboo/phpunit-289277055.html), and most/all of them support this JUnit test output format, including the [JUnit](https://confluence.atlassian.com/bamboo/junit-parser-289277056.html) task itself of course:

![](https://confluence.atlassian.com/bamboo/files/289277495/JUnitParser.png)

As visible in the screenshot, the task's main feature is to parse test results generated within the current build (or preceding ones via the advanced option). Accordingly, it should be able to pick up the test results generated by paratest as well.

<br />

[](https://community.atlassian.com/t5/Bamboo-questions/Parse-phpunit-html-without-using-PHPunit-task/qaq-p/274592?attachment-id=5421){#link_11683cf2a740b3}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/8728/1/image2015-8-28%2018%3A11%3A33.png){#display_11683cf2a740b3_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/Parse-phpunit-html-without-using-PHPunit-task/qaq-p/274592?attachment-id=5422){#link_11683cf2a740b3_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/8728/2/image2015-8-28%2018%3A12%3A3.png){#display_11683cf2a740b3_2}

comments: author: Ryan McLaughlin
body: Thanks, but I am trying to get it to parse the html output, so I can see which files and lines are covered.


author: Steffen Opel _Utoolity_
body: @Ryan McLaughlin - I have updated my answer with a potential solution based on the PHPUnit task - as mentioned, I haven't used that myself yet, so I'm not sure it will actually cover both report types, but would assume it does (it would be weird to implement two different code paths for both conceptually identical features).
Don't build branch plan when merging to master or Don't build artifacts from branches
Asked by Ryan McLaughlin:

I am trying to setup a build that runs all my tests on the branches, but when merged into master it builds artifacts. I have tried several options but I am unable to get it to work exactly the way I want.

Right now I have two plans, but I think I should be able to combine them into one. My ideal plan would be a branch plan that runs all the tests on the branches, but does not build artifacts. Then when merged to master it would repeat the tests, and build the artifacts.

I am not able to achieve this because branch plans also build artifacts and I cannot seem to find a way to disable that.

I have also tried setting up two plans, one that builds branches without artifacts, and one that builds master with artifacts. However when merging to master it runs both plans. I think this is because in the branch plan I have master selected in the Repositories tab. I must select a branch in the Repositories tab because it is a required field, I also cannot select a different branch because all the other branches are feature or bug branches so they get removed when merging.

So I guess I have two questions.

1. how can I setup a branch plan that only builds artifacts on master (not branches)? or
2. how can I setup a branch plan to not build on the default (master) branch, only on the branches? (I have already tried the "Only create branches that match" option, it doesn't work because master is the main branch for the default stage)


Answers:
author: Tajh Taylor
body: stumbling across this today... in our scenario, we want the develop branch to be mvn deployed to make snapshots available to other projects, but don't want pull request branches to be deployed.

the cruddy workaround I have right now is to have two plans... a plan for develop and a plan for PRs... but because the repository is tied to a branch, the PR plan also builds changes to develop, and so changes to develop get built by both plans. definitely a waste of resources, but does achieve the separation desired.


author: JnMik
body: Same problem here, bamboo currently build artifacts when I push a branch release/X.X.X, and it works good. Then I expect to merge on master and re-use this artifact (to retrieve my custom version tag in the branch name).

But when I merge the release branch into master, bamboo triggers another build phase, and it overwrites my previously created artifacts. So I don't have my version number anymore.

Tried all day to workaround this, can't find a way. It seems like a pretty common release flow, why is it so hard ?


author: Todd L.
body: I've been searching for an answer to this problem for over a year. Interested in hearing an answer. Our "master" plan does a 'mvn deploy' and pushing branch work into our Maven Repository for branches is not acceptable.

comments: author: Donovan Muller
body: Same problem. Surely this is a common issue?This JIRA issue seems relevant: <https://jira.atlassian.com/browse/BAM-12761>.
How do I generate test results from a script task in bamboo
Asked by Phill Price:

I have scripts to run behat in a php project, it passes but it says no tests found.

How do I get these tests recognised?


Answers:
author: Steffen Opel _Utoolity_
body: Though I'm not familiar with [behat](http://docs.behat.org/en/v2.5/), it seems it is capable of [writing test results](http://docs.behat.org/en/v2.5/guides/6.cli.html#format-options) in the popular JUnit format:
> behat supports 6 formatters out of the box:
>
> * ...
> * junit - generates a report similar to Ant+JUnit.
>
> * ...

Bamboo supports various [tests tasks](https://confluence.atlassian.com/bamboo/configuring-a-test-task-289277052.html) (amongst them also [PHPUnit](https://confluence.atlassian.com/bamboo/phpunit-289277055.html), but I think it won't help here), and [JUnit](https://confluence.atlassian.com/bamboo/junit-parser-289277056.html) in particular:

![](https://confluence.atlassian.com/bamboo/files/289277495/JUnitParser.png)

As visible in the screenshot, the task's main feature is to parse test results generated within the current build (or preceding ones via the advanced option). Accordingly, it should be able to pick up the JUnit test results generated by behat as well.

<br />


author: Alex Soto
body: As Steffen says, you need to output into JUnit format.

comments: author: Phill Price
body: Indeed. All working :) thank you both


author: Shawn DeArmond
body: Phil, would you be kind enough to share how you got the Behat tests running? How did you convert the output to JUnit? Thanks!


Tags: cloud
Cancelling build takes time
Asked by manny_armas:

We have several build plans and sometimes we need to cancel ongoing build to prioritize other, but it takes time to finish cancelling of build.

Does the cancelling of build really takes long time to finished? Is there any way that we can do to make it fast?  

Thanks,  
Manny


Answers:
author: manny_armas
body: HI Bamboo Support,

just want to follow up.

Thanks


author: manny_armas
body: HI Bamboo Support,

just want to follow up.

Thanks
Bamboo transition from Starter to Remote Agent
Asked by Brian_Murray:

Hi,

I have Bamboo installed on my server as a Starter Licence, I now want to transition from this to the company server and use a Remote Agent.

So that the move is smooth and complete, I want to have to have the 2 running in parallel (Both local server and Remote Agent). Then I can start to manually create the new jobs on the remote agent.

However, I notice that both use the same port numbers - 8085. Which means a conflict of running them together.

Any suggestions of what I can do?

Note: I have admin rights for the Local Starter Licence, but the Remote Agent is served by corporate IT and I have limited permissions.

Thanks for any suggestions.


Answers:
author: Sandeep Nagaraja
body: Hello Brian

I guess you can have only one Local Agent ( Main Bamboo Application Server ) connected to multiple Remote Agent boxes. Also the Remote Agents will run the builds which are created in main Bamboo Application Server.

Cheers

<br />

Sandeep


Tags: bamboo-administration
How do I deploy old artifacts in Bamboo
Asked by Steve Fyfe:

I want to deploy artifacts from an old (i.e. not current) release, but the Artifact Download task always downloads from the latest build. Is it possible to deploy from a prior release, and if so, how?


Answers:
author: Steffen Opel _Utoolity_
body: Bamboo provides [deployment releases](https://confluence.atlassian.com/bamboo/understanding-deployment-releases-357335182.html#Understandingdeploymentreleases-Whataredeploymentreleases?) to enable this:
> Releases are used to track exactly what software was deployed to an environment. In essence, **a release is a snapshot of any number of artifacts that will be used in the deployment process and their associated metadata** , such as JIRA issues, code changes and any test metadata that might be relevant to what is being deployed. *\[emphasis mine\]*

The emphasized part points towards the solution, namely that said artifact snapshots aka deployment releases can be used to deploy any former release, as further illustrated in [How artifacts and deployment releases work together](https://confluence.atlassian.com/bamboo/understanding-deployment-releases-357335182.html#Understandingdeploymentreleases-Howartifactsanddeploymentreleasesworktogether). Once at least one release is available, you can then always [Manually start a deployment](https://confluence.atlassian.com/bamboo/manually-starting-a-deployment-353272987.html):
> Deployment projects can be viewed and managed from the 'All deployment projects' screen. Think of this as a dashboard view of all of your deployment projects. You can also start deployments from this screen.

On this screen, you can 'Select a release to deploy', either by 'Creating a new release from build result', or by 'Promoting an existing release to this environment':

DeploymentPreview.png

<br />

[](https://community.atlassian.com/t5/Bamboo-questions/How-do-I-deploy-old-artifacts-in-Bamboo/qaq-p/36952?attachment-id=10920){#link_11683d926531c5}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/1176/1/DeploymentPreview.png){#display_11683d926531c5_0}

comments: author: Steve Fyfe
body: Thanks for your reply. As it turns out, this was all my problem, but it is resolved now.
how do i create bamboo build plan environment with REST API?
Asked by Ronny:


Answers:
author: Steffen Opel _Utoolity_
body: Good question - unfortunately the [Bamboo REST API documentation](https://developer.atlassian.com/display/BAMBOODEV/REST+APIs) leaves a bit to be desired still:

* While mentioned and linked on the [Bamboo REST Resources](https://developer.atlassian.com/display/BAMBOODEV/Bamboo+REST+Resources) page, it is easily overlooked that the inline information on that page itself is incomplete and only the *[API reference for your Bamboo version](https://docs.atlassian.com/bamboo/REST/) is the recommended source of information on Bamboo REST APIs.*
* Furthermore, while structurally similar, that API reference is also not entirely at the same level as the ones from [JIRA](https://docs.atlassian.com/jira/REST/latest/), [Confluence](https://docs.atlassian.com/confluence/REST/latest/) and [Stash](https://developer.atlassian.com/stash/docs/latest/reference/rest-api.html) in particular, and frequently lacks the request/response shapes for example.

Given this, I'm afraid it is not possible to create a deployment environment via REST yet, insofar [/deploy/environment](https://docs.atlassian.com/bamboo/REST/5.9.4/#d2e1093) is lacking a POST method (any method in fact) to create a new environment.

This matches with two related REST API features, which aren't yet available either:

* <https://jira.atlassian.com/browse/BAM-4854> (apparently scheduled for shipment 'around the end of the year')
* <https://jira.atlassian.com/browse/BAM-13501> (apparently unlikely to be addressed 'before the end of the year')
I'm using a Ubuntu elastic bamboo instance and I need more root volume disk space than 8gb it has. Do I need to create a custom image?
Asked by Gary Ormsby:

What's the preferred method to simply get a larger root volume?

I could add another EBS volume and change my scripts to use that, but I think that would be more trouble.


Answers:
author: Martin Zdarsky
body: The partition /dev/xvdb 3.9G /mnt does NOT come from the AMI image. This partition is attached by amazon during an instance start up as primary HDD to write on. By default Bamboo selects m3 medium which gives you 4GB. If you use m3 large then you'll get 32GB space.

See <https://aws.amazon.com/ec2/instance-types/>


author: Przemek Bruski
body: We will soon release images with more space available.


author: Alex Soto
body: I just ran into this problem myself. Our build agents install 3rd party software that uses the root partition and it get's filled up real quick since the default root partition is 8GB.

I resolved this by selecting the agent in the EC2 console and selecting Image \| Copy Image. I increased the root partition size on the copy. Then once the image was available used that new AMI id for my bamboo elastic agents.

Would be nice if Bamboo allows some way to customize the the launch details of Elastic Agents!


author: Gary Ormsby
body: I finally got around to looking at this again.

I ended up changing the docker graph direcory (-g option) to reference a directory I created in /home/bamboo (the /mnt partition). The hardest part was figuring where to do this. Initially I changed /etc/sysconfig/docker, as many forums mention, but that didn't do the trick. Once I saw that docker was running as a service I changed /lib/systemd/system/docker.service, which worked.

Thanks guys.

comments: author: Martin Zdarsky
body: Hi @Gary Ormsby,

Can you explain what did you do specifically. With examples, please? :smile:


author: Przemek Bruski
body: Can't you use the storage mounted under /media/ephemeral0 ?

comments: author: Alex Soto
body: see my recent comment below. Customized agents that install third party software can't control where they lay down their files. Especially if they are installing into /usr/bin, etc. Simply booting a bare agent the root partition is already close to full.It would be great if the Bamboo Elastic config allow customization of launch details.


author: Alex Soto
body: Using google I found the following that might help:

<http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html>

<https://alestic.com/2009/12/ec2-ebs-boot-resize/>

<http://blog.xi-group.com/2014/06/small-tip-use-aws-cli-to-create-instances-with-bigger-root-partitions/>


Tags: cloud
Bamboo Build Notification Email - Customize
Asked by Shijit Dasgupta:

For our Bamboo Builds when we have an error the message is not very descriptive.

It says no failed tests found even though the build log shows failed tests. It also doesn't show which test failed or the related error.

I just wanted to know how we could customize the Build Error Email.


Answers:
author: Steffen Opel _Utoolity_
body: @Shijit Dasgupta - my answer is complete now. Sorry for the iterative approach, but I encountered the odd restriction that "Your post was rejected because it contains blacklisted words", and the resulting post is now word by word identical to the one that I wanted to submit in the first place, alas ...


author: Steffen Opel _Utoolity_
body: Unfortunately this is not possible via the Bamboo UI, but can be achieved by [Modifying notification templates](https://confluence.atlassian.com/bamboo/modifying-notification-templates-289276982.html) in principle:
> If you want to customise the layout and content of your Bamboo notifications, you can customise the templates for each of the notification types (i.e. HTML email, text email, instant message) and events (e.g. Build Commented). The notification templates are written in [Freemarker](http://freemarker.org/).
>
> Some content in notifications can also be configured via system properties, such as the number of log lines to include in email notifications that display log information.
>
> :warning: Changes to notification templates only take effect after a Bamboo restart.

This obviously requires some development efforts, so you might want to be aware of resp. shortcomings in the referenced documentation:

* <https://jira.atlassian.com/browse/BAM-13936>

Furthermore, given the information from your failed tests isn't currently reported, it might not be readily available for access from the Freemarker notification templates either.
Is there a way to monitor the audit trail and changes being made to the Build Plans and Deployment projects
Asked by Sandeep Nagaraja:

Hello

In Bamboo 5.3, is there any way to monitor the audit trail and changes being made to the Build Plans and Deployment projects ?

Cheers

<br />

Sandeep


Answers:
author: Sergey Podobry _Stellarity Software_
body: Hi!

I guess you need this: [Tracking changes to your Bamboo server](https://confluence.atlassian.com/display/BAMBOO053/Tracking+changes+to+your+Bamboo+server).

Note: there is also an audit log tab in plan configuration (unfortunately I couldn't find a screenshot in the documentation).

comments: author: Xabier Davila
body: This is great, but is there a way to export this logs? For our compliance department we need some more 'stable' way to store this information.


Tags: bamboo-administration
How to poll multiple repositories in bamboo but then use only those with changes
Asked by fhemerka:

We have got multiple bitbucket repositories that we want to check for changes, then we've got repository polling trigger that checks all these repositories. But when someone edit the repository we want to build only the repository that was edited. Is there a way to do this?


Answers:
author: rverschoor
body: You can create multiple Plans, where each Plan is linked to just one repository.  
When a change is committed into a repository, the corresponding Plan will get triggered, and start building with the source code of that repo.


Tags: bamboo-administration
bamboo-agent.cfg.xml is corrupted
Asked by guy moore:

the size of my bamboo-agent.cfg.xml file is 364 bytes, the same size on 2 other machines,

but is filled with binary stuff.

The agent does not start up. here's a snippet in the log file:

Caused by: org.apache.commons.configuration.ConfigurationException: Content is not allowed in prolog.

many other lines of errors in the log.

How does one recreate a bamboo-agent.cfg.xml, namely the 2 sections of:

\<agentUuid\>XXXXXX\</agentUuid\>  
\<id\>2222222\</id\>


Answers:
author: rverschoor
body: Look for the atlassian-bamboo-agent.log file, in the same directory as the bamboo-agent.cfg.xml file.  
Search for loglines that mention "UUID", as they will show the "agentUuid" to use.  
It should look like "12345678-abcd-abcd-abcd-1234567890ab".

Then search for the text "Agent ???????? checking build queue" where ???????? is the "id" you can use.

Instead of the atlassian-bamboo-agent.log file, you can also check the logs/atlassian-bamboo.log file.

If this fails, just delete the remote agent's home directory and start the agent, it will re-create the home directory including the bamboo-agent.cfg.xml file.

comments: author: Mahesh
body: Thanks rene for the info. In my case i have observed that installing agent do create a bamboo-agent-cfg.xml file but do not generate the ID. The UUID is created though. Please let me know if i am missing anything.


Tags: bamboo-administration