youngmon/atlassian-qna huggingface dataset:
Is it possible to use my own hardware instead amazon EC2?
Asked by Edgard Leite:

I have 3 xeon servers without use. How can I use them if I am a onDemand User?


Answers:
author: Przemek Bruski
body: You can't do that at the moment. There's an improvement request for that here: <https://jira.atlassian.com/browse/BAM-11870> , please watch and vote.


author: Ellen Feaheny [AppFusions]
body: Another option for you Edgard would be a Direct Managed Hosting route -

... whereas not OnDemand offering, but instead the on-premise servers, hosted - and you also get a ton of extras via plugin options.

In this case, you get the benefits of 24x7 no headaches and maintenance handled hosting that you enjoy with OnDemand, but also can do connections to your servers (per configs, etc.) and alot more.

I can quote you on this - and also discuss the architecture you are aiming for.. still very cost effective. Also - migration is turnkey mostly, like over a weekend.

email if interested.

Ellen  
ellen@appfusions.com


author: JohnA
body: Hi Edgard,

I'm sorry to say that for OnDeamnd instances, the only option is using EC2 because we don't permit external connections from OnDemand instances unless they are through a connector such as the one for connecting Bamboo OnDemand to EC2. This is actually one of the restrictions of OnDemand, so if you wish to use your own hardware then you would also need to take Bamboo behind the firewall: <https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand>

All the best,  
John


author: Jobin Kuruvilla [Adaptavist]
body: Nope. Bamboo onDemand only supports EC2 and running agents in own hardware is not supported.


Tags: cloud
How can I have a particular job in a stage run sooner that other jobs in the same stage?
Asked by Sean Dockery:

I have four jobs in the same plan in the same stage that represent four different build configurations of one of our products: Win32/Debug, Win32/Release, x64/Debug, and x64/Release. I would like to keep these jobs in the same plan so that all configurations share the same build number.

Because of resource constraints, the Win32 and x64 jobs go to two remote agents (rather than four). I would like the Win32/Release job to be run ahead of the Win32/Debug job, and the x64/Release build run before the x64/Debug build, but I don't want to put the Debug jobs in a separate stage because that would mean that the x64/Debug build to wait for the Win32/Release build to complete.

Is there any way to order jobs within a stage?


Answers:
author: Przemek Bruski
body: You cannot achieve this, sorry. You have to assume random/not guaranteed order for Jobs in a single stage and every stage has to be completed before another one runs.


author: Sean Dockery
body: Another unfortunate consequence to having to relegate the debug build jobs to their own stage is that they don't run when either of the release build jobs fail. :-(


author: Cameron Ferguson
body: You can just put in a "lag" task of your job that does nothing but sleep for a given amount of time...

Just make a script task at the top of the jobs you want to slow down for a certain amount of time and type in:

"ping -n 30 127.0.0.1 \> NUL 2\>\&1"

Where the "30" is the time in seconds you wish to lag. I know the command looks wierd, but windows doesn't really have a "sleep" option to wait for a task to be complete. Basically what this command does is ping the machine 1 time per second 30 times... hence the 30 seconds...

But Adam and Przemek are correct that you can't guarantee that both of these jobs start at the same time because of agent availability. You could have the "lagged" job start and the task you didn't want to lag waiting for an agent to be available for 30 seconds... therefor this wouldn't be a good solution...


author: Adam Myatt
body: Since Jobs within a Stage execute in parallel I would say that if Win32/Release and Win32/Debug Jobs are tied to the same agent using Capabilities then you can achieve what you want. If they are tied to a specific agent, then they cannot run in parallel. However if that isn't realistic and you have multiple agents they must be able to run on I'm not sure how it can be done unless you split the Debug Jobs out into separate stages.

comments: author: Sean Dockery
body: I relented to partition the debug jobs into a subsequent stage. One negative side effect is that the debug stage is only executed if both release jobs in the release stage pass.

I guess I'll just have to work toward getting more remote agents. :-)
Where are the deployment tasks?
Asked by Mike Curwen NL:

So bamboo sales material talks about "continuous deployment" and pipelines, and their screenshots have tasks like "deploy to QA". But when I attempt to add a Deployment task, I see no tasks when I click the 'Deployment' type. Is this a big tease, or a big mistake?


Answers:
author: Adam Myatt
body: Mike,

What kinds of deployments are you looking to do?

Bamboo has several relevant plugins, but they are not installed by default.

Tomcat Plugin - allows you stop/start/deploy to a Tomcat web app server

JBoss Plugin - allows you stop/start/deploy to a JBoss web app server

SSH/SCP Plugin - ability to SCP/SSH to remote servers for deploying, running scripts, etc.

Artifactory - If you use Artifactory you can deploy directly to it.

Not all the current plugins support all recent versions of Bamboo so browsing through Bamboo's Plugin Manager can be not effective at times. Best bet is to explore all Bamboo plugins through the marketplace. Even if some of the plugins may be out of date. it gives you an idea of what is out there.

comments: author: James Dumay
body: Tomcat, SCP/SSH and JBoss Tasks are all supported on the latest Bamboo (4.2).


author: Mike Curwen NL
body: A simple file copy to a test server is about as sophisticated as we can get, right now. So I did find the SSH/SCP plugin and am trying to get it working. James, my issue with you saying "... are supported..." is that in the plugin marketplace they are labelled as "No Vendor Support", which is Atlassian. This circles back around to my irritation about having marketing material that talks about continuous deployment, but requiring unsupported (and not installed by default) plugins to accomplish even something as simple as "move the artifact to this server". I sympathize that "deployment" means hundreds of things to thousands of customers, but maybe even some improved documentation would help.


author: James Dumay
body: I understand your frustrations Mike and you are not alone. We've got a plan for documenting and commerically supporting some of these Tasks plugins that is being worked on as we speak. If you have any problems, feel free to email me directly at [james@atlassian.com](mailto:james@atlassian.com).
Restrict a plan to a specific local agent
Asked by Sean Dockery:

We have six build plans that we run manually about once a month to perform a comprehensive set of regression tests of integration between various products that we develop. The longest running of these plans is approximately 50 hours in length.

Is there a way in which I can configure the plans to have an affinity to a specifc local agent so that we can prevent them from saturating our build queues?


Answers:
author: Adam Myatt
body: Sean - The Bamboo Group Agent plugin should be able to help you. <https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-group-agent>

comments: author: Sean Dockery
body: Thanks, Adam. At first glance, this looks to be exactly what I need.


author: Kidane Yosief
body: I think Dedicated agent was enough solution to my problem. I had the problem of running two jobs and fails if they run at the same time. Now I am able to block them using the dedicated agent feature. Thanks


author: Przemek Bruski
body: The simplest approach would be to add a custom capability (e.g. longRunningJobAgent) to that agent and add a requirement for that capability on these 6 jobs.

comments: author: Sean Dockery
body: The problem is that you cannot add custom capabilities to individual local agents.


author: Ken Wood
body: You can't? That's news to me. I have two builds that need to share a resource (exclusive) so I defined "gateResourceX" as a capability on one and only one local agent. Then, both build plans have a requirement for "gateResourceX" exists. Which ever build plan gets to that specific local agent first, the other build plan is forced to wait in the queue until the agent is no longer being used.


author: Bastien Chong
body: I think he meant that this local agent will not be dedicated because it shares some custom capabilities.
Java exception during artifact storing in Bamboo
Asked by Mark Wolff:

We are new users of Bamboo and have successfully built our product with our first project/task, whatever you call it. (And the crowd goes WILD!)

Now, I wish to grab the output of our wonderful build and do something with it. Unfortunately, we get a java exception and the artifact isn't stored.

Failed to execute plugin 'Artifact Copier' with error: java.io.IOException: Exception occurred when posting message com.atlassian.bamboo.v2.build.agent.messages.ArtifactPublishMessage@66ab75. Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Software caused connection abort: socket write error

The machine running the build is a remote agent, Win XP OS, physical hardware (not a VM).


Answers:
author: Adam Myatt
body: This may warrant a full report with detailed logs to Atlassian support. Quick guess is that based on the error message the remote agent is having difficulty communicating back to the Bamboo server. Are you using HTTPS for the Bamboo server and/or agent?

If you take a look at some of the connectivity troubleshooting here there is a link to a NetworkAnalyzer class you can run on the remote agent machine to diagnose issues connecting to bamboo. <https://confluence.atlassian.com/display/BAMKB/Troubleshooting+Remote+Agents>


Tags: artefact

exception
Bitbucket Continuous Integration with Bamboo OnDemand
Asked by Tim Widmann:

I'm having trouble getting Bitbucket to trigger a Bamboo OnDemand build. I followed the documentation for setting up a Bamboo service from Bitbucket but it doesn't trigger the Plan to build. Bamboo seems to work OK though; I can trigger builds manually without any problems. As a backup I changed the build strategy to polling the repository for changes and that worked. In the mean time I can use that but I would like CI builds triggered on-commit.

I have a couple of questions:

- Does Bitbucket support making CI notifications to Bamboo OnDemand? If it helps I enabled the Accept legacy remote API calls? option in Bamboo's settings

- Is there a way to get logs or errors from Bitbucket to debug? That way I can see if it's making the call, and what the response is.


Answers:
author: aMarcus
body: Bamboo OnDemand supports being triggered via the Bitbucket Bamboo Service. The correct URL depends on your specific instance name, but is roughly: https://\<instance\>.atlassian.net/builds or https://\<instance\>.jira.com/builds depending on the age of your OnDemand instance. No IP address is necessary in the Trigger IP field.

Check out the documentation on the Bitbucket Bamboo Service at <https://confluence.atlassian.com/display/BITBUCKET/Bamboo+hook+management>. If you run into any issues, please open a support request.

comments: author: Cornelius Kopp
body: The link to the documentation now leads to a nonexisting page. Can you perhaps update this for the latest version?


Tags: bitbucket-cloud

cloud

continuous-delivery

git
Remote agent reports it is unable to clean source directory
Asked by Ken Wood:

Remote agent on Windows 7 reports:

*Executing Task 'checkout sspext_80_rel(3)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.*  
(java.lang.RuntimeException : com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\\wc\\E2SC-ST2T-RT' File does not exist: C:\\wc\\E2SC-ST2T-RT\\solution)  
But when I look, the file directory 'solution' is there...  
Ideas as to the cause? I used the 'support tool' plugin to analyze the log and it made no recommendations relative to that specific error in the log.


Answers:
author: Ryan Goodwin
body: Still no solution for this?


author: Sasa
body: Did you find the solution for this?

I'm having the same problem, with same files every time. Sometimes it deletes, sometimes not. Those are Doxygen produced files in Latex folder..

comments: author: Ken Wood
body: Never found a cause; just know it hasn't happened for a long time now.


author: Przemek Bruski
body: Are you able to delete that file manually? Something is probably locking it - that process needs to be killed.

comments: author: Ken Wood
body: That's always the first thing I check when it comes to dealing with Windows. But, to double check, I'm installing Sysinternals Process Explorer on every windows box hosting a remote agent to verify the file is not locked by another process.
Bamboo scheduled plans summary
Asked by Guillaume Lucazeau:

Hello,

is there a Bamboo plugin that displays the summary of every scheduled plan, and an approximate duration (like based on the averaged duration on the last x runs). A display in a table, with cell length according to this duration, would be really nice.

I have a lot of test plans that are scheduled, and so far I have to manage this document myself, and check each plan to remember when it is scheduled and how long it usually takes.

Is there something, somewhere, that could generate this doc? If not, that would be a nice feature I think :-)

Thanks

Guillaume


Answers:
author: Przemek Bruski
body: I don't think so, but you could create a SQL query that would do it (BUILD_DEFINITION table will be tricky, but it looks doable). You'd have to query BUILD, BUILD_DEFINITION (to find schedules) and BUILDRESULTSUMMARY (to get durations).

comments: author: Guillaume Lucazeau
body: Thanks for your help, I will try to do that. I still think it would be a nice feature for a next Bamboo version :-)


author: Guillaume Lucazeau
body: So here is the query I'm using, it gets info about plans that are scheduled and active:

SELECT  
b.BUILD_ID AS BUILD_ID,  
b.FULL_KEY AS FULL_KEY,  
b.BUILDKEY AS BUILD_KEY,  
b.TITLE AS TITLE,  
b.LATEST_BUILD_NUMBER AS LATEST_BUILD_NUMBER,  
b.PROJECT_ID AS PROJECT_ID,  
ExtractValue(bd.XML_DEFINITION_DATA, '/configuration/repository/change/schedule/cronExpression') AS CRON,  
brs1.BUILD_DATE AS BUILD_DATE,  
brs1.BUILD_COMPLETED_DATE AS BUILD_COMPLETED_DATE,  
brs1.PROCESSING_DURATION AS PROCESSING_DURATION  
FROM  
BUILD b  
INNER JOIN BUILD_DEFINITION bd ON b.BUILD_ID = bd.BUILD_ID  
INNER JOIN BUILDRESULTSUMMARY brs1 ON b.FULL_KEY = brs1.BUILD_KEY  
INNER JOIN (  
SELECT BUILD_KEY,  
MAX(BUILD_COMPLETED_DATE) AS LAST_DATE  
FROM BUILDRESULTSUMMARY  
GROUP BY BUILD_KEY  
) as brs2 ON brs1.BUILD_KEY = brs2.BUILD_KEY AND brs1.BUILD_COMPLETED_DATE = brs2.LAST_DATE  
WHERE b.BUILD_TYPE = 'CHAIN' AND b.SUSPENDED_FROM_BUILDING = 'FALSE'  
AND ExtractValue(bd.XML_DEFINITION_DATA, '/configuration/selectedBuildStrategy') = 'schedule'  
ORDER BY brs1.BUILD_DATE ASC

So now I can make a nice HTML tab with that.

But I still think it could be a feature in Bamboo! :-)
How to ignore minor build errors/warning in bamboo?
Asked by AmitB:

I am getting builds marked as failed due to minor warnings (i.e. doxygen warnings, etc.) Is there a way to ignore output of specific tasks such that the build appears successful?


Answers:
author: Przemek Bruski
body: if you're running doxygen from a script task, just make sure the status code is 0, for example by putting exit 0 as the last line of your script.

comments: author: Przemek Bruski
body: Call a script that calls doxy.exe.


author: AmitB
body: How do I do this from a command task? I call a command task with the executable set to doxy.exe. How do I add additional code to call exit 0 at the end?


author: AmitB
body: Thanks, calling it from a script task and adding exit 0 fixed the problem.


Tags: error

warning
How do I set Tests field in the dashboard when I use an unsupported unit testing framework?
Asked by AmitB:

I am using cppTest for my unit tests. I would like to notify Bamboo that tests are running, such that the Tests field in the dashboard will not say "No tests found".

Is this possible?


Answers:
author: Przemek Bruski
body: XML format from CppUnit is not compatible with JUnit.

You can:

Try getting in touch with this guy: [https://answers.atlassian.com/questions/67647/bamboo-ondemand-c-coverage-profile-reporting-and-release-management](/questions/67647/bamboo-ondemand-c-coverage-profile-reporting-and-release-management) .

or google for "xslt cppunit junit", some people prepared cppunit-\>junit output converters.


author: AmitB
body: Yes, cppTest is able to generate reports in html. Can I just translate the JUnit and then enter it that way? Is there a more elegant solution?


author: PiotrA
body: Hi,

Is cppTest capable of outputting test results in some .xml format? I reckon there are Bamboo users who transforms theirs output formats to the junit test .xml format and use Bamboo JUnitTestResult parser task (I don't remember the exact name) to collect that data.


Tags: test

unit-test
How to launch a detached process from Bamboo task?
Asked by Brent Villalobos:

One of our builds requires starting up a small service process on the machine prior to running tests. I thought I could do this as a script task by just running something like:

```
tcsh -c "start_my_service&amp;"
```

The service does start and runs as a detached process (is no longer a child of Bamboo's java process). However, the bamboo build just hangs after that and doesn't move on to the next task. Is there a good way to launch a service and not have Bamboo wait for it but move on to the next task?


Answers:
author: PiotrA
body: Hello Brent,

Could you please check the hints I've left in <https://jira.atlassian.com/browse/BAM-11488> ? I think you can run 'detached process' if you redirect all input/output streams and use "nohup". But I never confirmed if my solution is working on a real environment...

comments: author: Brent Villalobos
body: I tried the solution in that Jira ticket and it worked. Thanks! Add this to my Bamboo wishlist -- A checkbox in the script task on whether you want to wait for the task to complete or not so the user doesn't have to think about the magical incantation.
Purchasing question: source repository and Bamboo on same server and 10+ builds
Asked by Janene Hoffmann:

Bamboo purchasing situation:

local server contains the source repository and Bamboo

anticipate 10+ plan builds

Question: do I need to purchase at least 1 remote agent in order to get unlimited plans?

<br />


Answers:
author: Sultan Maiyaki
body: See my response on this link: [https://answers.atlassian.com/questions/76590/purchase-bamboo-local-agent-and-10-builds-still-need-to-purchase-remote-agent-in-an-effort-to-get-unlimited-plans](/questions/76590/purchase-bamboo-local-agent-and-10-builds-still-need-to-purchase-remote-agent-in-an-effort-to-get-unlimited-plans)
[LazyInitializer] Exception initializing proxy net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was closed
Asked by William Wells:

While upgrade Bamboo 3.2.2 to 4.0 on RH6 with a MySQL backend I keep receiving this error when it goes through the data upgrade process. From the few returns I've seen on googling it appears to have something to do with plugins. However, the only plugins I have are the ones that were installed/created by Bamboo. I do not have any third party vendor plugins installed. I just upgraded from v2.6.2 to 3.2.2 without any issues so I'm confused as to what would be causing this problem.


Answers:
author: William Wells
body: Unfortunately, when we tried to migrate the data over to a test environment it just wouldn't take. We kept receiving this error regardless of what we attempted. We ran a risk on our production upgrade and went with an untested upgrade. Fortunately, it was successful and everything seems to be working properly. I don't know what the root cause was when it came to Bamboo data migration. I did a test run of the application upgrade without the data migration (i.e., created new project plans, then upgraded that information). It was far from being a mirror image of the production system, but it did help me ensure that there were no procedural questions in regards to the Atlassian documentation.


author: Przemek Bruski
body: Try upgrading to 4.1.2 instead it may have your issue fixed. If that does not work, please file a support request at [support.atlassian.com](http://support.atlassian.com).

comments: author: William Wells
body: If I upgrade to 4.1.2, will I have any issues with compatibility with the other Atlassian tools we are using? We're pretty integrated with Fisheye, Jira, Crowd, Confluence. I chose to stick with the 4.0 because it was released at the same time frame as the other applications we are upgrading


author: Przemek Bruski
body: I don't think you'll have problems with that.
Purchase Bamboo - local agent and 10+ builds = ? still need to purchase remote agent in an effort to get unlimited plans?
Asked by Janene Hoffmann:

Preparing to purchase Bamboo, but confused upon the pricing.

We have our source code repository and Bamboo on the same server, so does that mean I don't need to purchase a remote agent? But then I'm limited to 10 plans - correct?

Or do I need to purchase 1 remote agent in order to get unlimited plans?


Answers:
author: Sultan Maiyaki
body: It wont suffice unless you have a really super PC that can accomodate 29 local agents in addtion to the remote agent. I mentioned a super PC because each of the local agent; a JAVA process will take resources (RAM and CPU). With the assumption that each agent will take atleast 768MB of RAM, your PC should have around 32GB of RAM


author: Sultan Maiyaki
body: Bamboo licensing is based on agents rather than user which is somehow a good news. The flexibility of having several agents on your server is to be able to run jobs concurrently.

Now if your source repository is on same server as Bamboo and you dont need concurrent builds, then you can stick with the starter license that allows you to create unlimited local agents with 10 jobs (10 jobs can mean 10 plans with 1 job each OR a single plan with 10 jobs depending). Another thing to be aware of is the fact that you can create mutilple local agents as long as your server is super interms of specs.

So the biggest question I guess will be on whether 10 jobs will satisfy your need other wise you may want to upgrade the license to 1 remote agents with unlimited jobs.

comments: author: Janene Hoffmann
body: If I were to have 30 concurrent builds, will 1 remote agent with unlimited jobs (builds) suffice?


Tags: atlassian-support
Argument for Command Incorrectly Read
Asked by Jeffrey Shank:

I've created mysqldump as a command and am passing the following arguments:

-h ${bamboo.dbhostname} -P ${bamboo.dbport} -u ${bamboo.dbusername} -p${bamboo.dbpassword} schema \> schema.sql

While this works perfectly via command line, when run from Bamboo, the build log reports:

mysqldump: Couldn't find table: \>

I've tried piping to cat then redirecting but then it reports:

mysqldump: Couldn't find table: \|

Should I be escaping the redirect in some way?


Answers:
author: J. Caldwell
body: are there any special charcters in the hostname, db user name/password? My thought is that there is a charcter causing odd behavior before then so that it picks up the \>
What the heck should you do to get rit of Attlassian?
Asked by Finance Phoundry:

How to end account from Attlasian??


Answers:
author: Nic Brough -Adaptavist-
body: Log into an Atlassian system and go to the id management link and find the account preferences under there.

Or, in most cases you can use <https://id.atlassian.com/manage-profile/account-preferences> for a direct link.

There's a "delete account" link on that screen.


Tags: bitbucket-cloud

cloud