youngmon/atlassian-qna huggingface dataset:
Bamboo: import a Maven project not using settings.xml ?!
Asked by Julien Tognazzi:

Hi,I have a bamboo server behind a proxy.Maven on this server is configured to use our nexus repository as configured in the system wide settings.xml.But if I try to import a maven project. It fails trying to connect to extern maven repositories.So it seems to me it doesn't take the settings.xml into account...If I create the plan manually, setting a maven task, it builds ok.Is it the normal behavior ?thanks.


Answers:
author: Ben
body: Specifically, use an EBS Snapshot attached to your image, as described here:  
<https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+instances+to+use+the+EBS>

It even automatically will copy over the .m2/settings.xml for you.


author: Colin Goudie
body: Generally in this case I would add a profile to the settings.xml on your bamboo server that specifies to use your nexus repository. Then if you are building other maven built projects that you don't want to change their pom.xml (i.e adding your nexus repo in there as well) then just specify the profile in the build setup in bamboo for that project. i.e. -P ProfileName

It should then find the profile defined in your settings.xml and use the maven servers there to fetch dependencies

comments: author: Julien Tognazzi
body: Yes, This is more or less what I do.

But here, I'm talking about the***import of a Maven projec*t** feature .

When I point the import process to our maven project (which builds fine when creating the maven task manually), the import process fails and in the errors I see it tried to connect directly to maven cerntral and other external maven repositories.

The question is then, why doesn't he use the maven settings ?


Tags: maven
Integrating Bamboo with AWS Elastic Beanstalk
Asked by Dani Ramdani:

I wish to integrating Bamboo with AWS Elastic Beanstalk,

is there anyway to make it ?

Thanks


Answers:
author: LucasA
body: Yes, you can make use of Beanstalk API, making the calls through a shell script (using the Bamboo script task).

Cheers,

Lucas Lima

comments: author: Dani Ramdani
body: Hi Lucas, tnx for your suggestion, could you please guide me to run this ? tnx


author: villegas2000
body: ey Lucas, would be great to at least answer the questions. I just received a reply on a similar topic in Jira and your answer, as in this case is useless. #fail


author: Andrea Barquin
body: Where you able to use the API from the bamboo script task?


Tags: aws

beanstalk
How to attach a file when triggering bamboo plan (Run Customized)
Asked by Raveendran Kumaravelu:

Hi,

Could you please advise me how to attach a file when triggering bamboo plan (Run Customized).

Scenario is:

We deploy bunch of applications on a WebLogic server. As part of pre-deployment preparation we generate a txt file with list of applications to be deployed. (deploy_app.txt). This is the default list file which list 50 applications.

What we would like to achieve is, when triggering bamboo plan, we would like to attach a file which subset (not all 50) of applications names (override_deploy_app.txt). If a build job finds a override file attached...job should consider override_deploy_app.txt for deployments (NOT the deploy_app.txt)

I can introduce a variable ${bamboo.varName} with comma separated values for selective deployments and do the check (if variable value is valid then override default)

But would like to know, is there a way to attach a file?

Thanks in advance


Answers:
author: Raveendran Kumaravelu
body: Thanks Michael for your inputs

Thanks Przemek for your suggestion, this is another way of doing it.

For my scenario, it would be easier for me to use variable


author: Przemek Bruski
body: The easiest approach would be to store the file somewhere (e.g. on a http server). Then, in your build, you could download that file with wget and use for your build.


author: Michael Ottati
body: This is not an answer to your question, I am simply posting to agree with your requirement. I too have a similar issue for which the ability to attach a file to a customized plan would seem to be the perfect solution.

Our scenario is that we would like for users to be able to submit large XML files (3-10 MB in size) that a custom build plan would then process. Submitting this XML as an attachment would appear to be the most natural mechanism. The XML itself describes a test scenario which the build infrastructure then goes out and executes.

We too considered the use of properties but the size of the data that users would be required to paste into the property value seems excesive.
How to configure Bamboo to run an inline script with cygwin bash on Windows?
Asked by Sorin Sbarnea (Citrix):

On Jenkins I had a script that was configured to run with bash (via cygwin) on Windows but when imported to Bamboo, I discovered that Bamboo is running the same inline script with cmd and that it does not supports any shebang when writing the script.

How do I tell bamboo to run this script under bash?

Note: I don't want to checking this script into the repository, so the option to execute a file is not an option. I want to be able to edit this script from the build system interface (inline script).


Answers:
author: Sorin Sbarnea (Citrix)
body: Shortly, that's not possible. Still, you can vote for having this implemented <https://jira.atlassian.com/browse/BAM-13383>


author: ArmenA
body: Hey Sorin,

You can use the [Command task](https://confluence.atlassian.com/display/BAMBOO/Custom+command+executable) and specify the relative path of your script file in the Argument field (instead of the [Script task](https://confluence.atlassian.com/display/BAMBOO/Script)).The path is relative to the current working directory of that plan (something like: BambooHome/xml-data/build-dir/PROJ1-PLAN1-JOB1).

Armen
Attach instance to bambo?
Asked by Anthony Yes:

Our VM at amazon is not visible to Bamboo any more..how do we attach a vm to bamboo? We have used a bamboo template vm which was working but now it is not. We do not wish to recreate an instance we wish to use the current instance if possible.


Answers:
author: LucasA
body: Please double check your security settings from both sides and update your remote agent to the same version of Bamboo Server. If doesn't work, please raise a support ticket at <https://support.atlassian.com>

Lucas Lima
Running Bamboo with Keil/ARMCC compilers. Make or other tools?
Asked by Erick van Rijk:

I'm looking into implementing Bamboo for CI in our development stream. We primairly use Keil uvsion with armcc for our embedded work and I would like to run builds with each checkin.

I've been looking into command line task that run Make/bat files, but haven't really found any success stories doing this.

Has anyone done this before?


Answers:
author: Erick van Rijk
body: A little update.

I'm able to run a Keil uVision project using the script task with the following commands:

\*\*\*\*

c:\\keil\\uv4\\uv4.exe -b Blinky.uvproj -o errors.txt  
type errors.txt

\*\*\*\*

this will build the project just fine (advanced features such as cleanall etc dont work however).

But, even when there are warnings/errors it will NOT report any failures since it completes without a stderr output in windows.

To solve this I try and parse the logfile and generate an error, but windows doesn't like redirects very much. "grep "warning:" errors.txt \>\&2" generates an missing output file error. (\>2 doesn't trigger anything)

"grep "warning:" errors.txt \| Write-Error" seems to work ok, but it dumps the entire stacktrace into the logfile making it impossible to read.

I cannot find any tool/plugin that allows me to define a proper error parsing REGEX inside Bamboo.

A custom REGEX error parsor should be standard in a CI IMHO.

Anyone have another idea how to solve this?


author: Erick van Rijk
body: I've looked at the build scripts and it look interesting. The only issue there is that the last item in the script exits without an error, the entire job is PASS. Meaning that I would need to make a script for every line in my build process.

Is there an easier way of parsing Errors during running scripts and outputting that to Bamboo.


author: Erick van Rijk
body: Hi Sergey,

Command line building is what I am doing with Eclipse right now, however I'm wondering if Bamboo actually can increase efficiency by using it as a CI server.

I haven't played around with Bamboo sufficiently yet to get a definite idea how useful it is. Hence asking the community for their ideas.


author: Sergey Podobry _Stellarity Software_
body: I am sure it is possible. Take a look at [?VISION: BUILDING TARGETS FROM THE COMMAND LINE](http://www.keil.com/support/docs/868.htm "?VISION: BUILDING TARGETS FROM THE COMMAND LINE") and use the [Script Task](https://confluence.atlassian.com/display/BAMBOO/Script).

comments: author: Erick van Rijk
body: Hi Sergey,

Command line building is what I am doing with Eclipse right now, however I'm wondering if Bamboo actually can increase efficiency by using it as a CI server.

I haven't played around with Bamboo sufficiently yet to get a definite idea how useful it is. Hence asking the community for their ideas.
Junit XML example for bamboo
Asked by mad_irfan:

hi

i have a programm which can not generete a junit Report but its doing a dailyRegression Test in bamboo.  

what i have done:

in bamboo add add this in "JUnit Parser Configuration"  
/opt/bamboo/bamboo-agent-home/xml-data/build-dir/SRCHCI-TEST-JOB1  

after my HTML Report ist done i created this report.XML   

\<?xml version='1.0'?\> \<testsuites\> \<testsuite name='$testname' tests='555' failures='0' errors='0' time='0.022' package='IRFANsystemtests' id='1'\> \</testsuite\> \</testsuites\>"   

The probel is bamboo can not find the XML  
Could not find test result reports in the /opt/bamboo/bamboo-agent-home/xml-data/build-dir/SRCHCI-SRCHCI-TEST-JOB1-JOB1 directory.  

I just wann see in my bamboo plan how many were passed and how man daild in the startPage..  
"like: 1 of 7 failed"  

any ideas?


Answers:
author: ArmenA
body: Hi there,

Please try the workarounds from this [tracked bug](https://jira.atlassian.com/browse/BAM-12768) and let me know if that helps (using 'touch' and 'sleep' commands in a preceeding Script task).

Armen


Tags: junit
Is there a way to configure the system timezone for Bamboo OnDemand?
Asked by Steve Muskiewicz:

Our Bamboo OnDemand instance has its timezone set to US/Central (as seen from the System Information page). Is there any way to configure this to use US/Eastern instead? It makes it difficult when reviewing build logs to always have to remember to add an hour to the time stamps.

(Our JIRA OnDemand instance is configured to the proper timezone but something tells me this setting doesn't impact Bamboo at all)


Answers:
author: Michael Knight
body: I believe Bamboo uses the system timezone. This timezone would have been chosen by whoever created the OnDemand instance. It is changeable, but you will need to open a [Support case](https://support.atlassian.com) and request this (and the change will involve a restart of your instance).

JIRA has the ability to override the system timezone, which is probably why JIRA is OK for you.

comments: author: psemeniuk
body: @Michael Knight by system timezone you are referring to the \`user.timezone\` sysproperty. Is that right?


Tags: cloud
"Plan cannot run because you have reached your concurrent build limit." Yet, never done or run a build
Asked by Mg12:

Hi

I'm trying to run my first build plan, however when I click on the 'Run' button I get "Plan cannot run because you have reached your concurrent build limit."

Why is this?

I have one project that I am trying to build.


Answers:
author: Mg12
body: The answer is to not use this product.

Too many bugs and poor support. Definitely a clear sign to go elswhere.

comments: author: RianA
body: Hi there,

Sorry for the delay, as this thread wasn't really monitored form our side due to its nature to be open and collaborative. If you would like to get support with timely response, please raise a support ticket at <https://support.atlassian.com> and please raise it on the appropriate project.


author: Christian Costa
body: I'm having the exact same problem with a subset of the builds and unless I dedicate an agent to them they won't run. Can you please advise urgently?


author: Mg12
body: And some more info...

In the Build Result Summary page it says:

StatusReason for not building is unknown.  
Under the Logs tab it says:  

|---------------------------------|
| No logs were found for this Job |

<br />

<br />

<br />

<br />

<br />

<br />

<br />


author: Mg12
body: Users is another issue that I need to raise. I cannot see any of my team in Bamboo. So, there is definitely no way another user has started a build. It also says the build has never run.


author: RianA
body: This might be due to some other user had tried to run it from different browser. Please make sure that there's no one is accessing Bamboo at the time you are building and also please make sure that after a while there's one build that has been running.


Tags: cloud
How to use PMD and CheckStyle plugins with OnDemand
Asked by kdambekalns:

The [PMD](https://plugins.atlassian.com/plugin/details/5987) and [CheckStyle](https://plugins.atlassian.com/plugin/details/5825) plugins are not available with OnDemand. I figure from their marketplace comments that they are not even really supported for the download version.

So the question is: why is a paid Bamboo setup less capable than a free Jenkins setup? This seems ridiculous.


Answers:
author: Stewart Duffey
body: Is there any update from Atlassian on this issue? Are there any plans to support these plugins for Bamboo OnDemand?


author: dustin_barnes
body: I would like to add to this. I am evaluating Bamboo for purchase, and this might just be a dealbreaker. The inability to keep a running dashboard of code quality metrics, when they want thousands of dollars for the tool, seems like a critical missing feature. CheckStyle, PMD, and CPD are such mainstays of the world, and most JavaScript code quality tools also support outputting in those formats. Jenkins can do this no problem, and Bamboo just passes the buck to some random developer instead of having code quality as a core competency of their product.

This is why a lot of people recommend Jenkins for the actual building, then just passing it to Bamboo when you want the deployment pipeline features. I saw so many people with that setup, I figured there was a reason, and this must be it.


author: Andre Rabold
body: I wouldn't see it THAT negative but have to agree that Bamboo On Demand is severely limited when it comes to helpful plugins. Everything needs to be done manually which is complex and time intense. I was hoping Bamboo 5 might fix a few of these things but it doesn't look like there would be more plugins bundled :(


Tags: cloud
Where to download a bamboo agent? And can I deploy to a remote server with this?
Asked by Mg12:

Hi

The bamboo documentation is very mis-leading. I cannot see anywhere to downoad a remote agent ( see <https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide?focusedCommentId=376836482#comment-376836482>).

Can advise on where the download link is now?

And, can a remote agent be used to deliver a build to a remote server?


Answers:
author: RianA
body: Hi there,

I am afraid it's not possible to use Bamboo OnDemand with remote agent due to its [Restricted Function](https://confluence.atlassian.com/display/AOD/Restricted+Functions+in+Atlassian+OnDemand). You might need to use the download version in order to use it.

Hope it helps


author: ArmenA
body: Thanks for the suggestion. I have updated [this page](https://confluence.atlassian.com/display/BAMBOO/Bamboo+remote+agent+installation+guide) to indicate that the remote agents are available only for the [Downloaded Bamboo](http://www.atlassian.com/software/bamboo/pricing/?tab=download) instances - NOT for OnDemand Bamboo.

Armen


author: Mg12
body: May I suggest you make that clear in the documentation.

Thanks


Tags: cloud
run a plugin module
Asked by carolyn cheng:

I created a plugin module, which is linked to HelloWorld plugin. Only thing it does is print some striings to a log fle. How do I run this plugin? I don't see my log file under \<plugin dir\>/target.


Answers:
author: Fr?d?ric Tardieu
body: Assuming you installed the atlassian SDK, go in your plugin root directory, and type "atlas-run" command. JIRA will start, and you should see in JIRA log your plugin output.
deploy rails app to remote machine
Asked by Ron Stanonik:

I'm trying to use bamboo continuous integration for a rails app.I installed the rake plugin, but it only seems to build the app on the bamboo server.How do I deploy to a remote server?Thanks,Ron


Answers:
author: RianA
body: Perhaps you could use SSH/SCP task in order to achieve this. You could deploy it by specifying the command that you would like to run on the remote machine. For more information, please refer to the following documentation.  
\* <https://confluence.atlassian.com/display/BAMBOO/Using+the+SCP+task+in+Bamboo>\* <https://confluence.atlassian.com/display/BAMBOO/Using+the+SSH+task+in+Bamboo>


Tags: rails

ruby
Bamboo & Lync
Asked by Sam Tsai:

We are trying to setup Lync instant messaging with Bamboo, but we don't have an XMPP gateway setup. Is there any alternative support (plugins, etc) for this or development in Bamboo?


Answers:
author: Felipe Kraemer
body: Hi Sam,

Currently it's not possible to integrate Bamboo with Microsoft Lync Messenger, and I have created a new Feature Request in the Atlassian development issue tracker to make this possible in the future:

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

There aren't any plugins ready to be used: <https://marketplace.atlassian.com/search?q=Lync>

You can develop your own plugin if you prefer:

<https://developer.atlassian.com/display/BAMBOODEV/Bamboo+Plugin+Guide>


Tags: bamboo-administration
Bulk changes to bamboo plan tasks
Asked by Peter Kahn:

Hi all,

Is there a way to script bamboo admin changes to plans? I have a tast that runs a script from a network drive and the task is in 100 plans. I can go through them all via the web ui but that's painful. I'd like to be able to make a regex replace on the configurations globally.

On hudson/jenkins I'd modify the xml via a script and reload. On bamboo, I suspect I need to find an API or modify content via SQL scripts. It is also possible that I have more plans than I need. For each branch I have about 10 plans. I need different branches to run with different configurations for JDK and memory but beyond that, they are pretty similar. Perhaps the feature-branch plan option is one I should explore

Please let me know if you know how to push changes to tasks across many plans.

Thanks

Peter


Answers:
author: Bob Swift (personal)
body: [Bamboo Command Line Interface](https://bobswift.atlassian.net/wiki/display/BCLI) has [updateTask](https://bobswift.atlassian.net/wiki/display/BCLI/Documentation#Documentation-updateTask) which has some limited capabilities. There is an example on [Examples](https://bobswift.atlassian.net/wiki/display/BCLI/Examples) . It is not easy. You need to know the task specific key and field names. You can get those from a tool like Live HTTP Headers while creating or updating a task. Only worthwhile if you have on-going automation or a very large number of tasks.

comments: author: Peter Kahn
body: Thanks Bob. Do you think field names are likely to change release to release? If they are stable then this seems a better approach than manual. Either way, I think I need to find a way to have more generic plans and scripts with base their specialization off of variables or plan naming to reduce the work load.


author: Bob Swift (personal)
body: Most task plugin providers are unlikely to change the names as it causes compatibily issues. More likely they will just add new ones. For instance, the script task has been the same since I started using it years ago. I certainly haven't for any of my Bamboo tasks. It is possible the UI for creating and editing a task could change on a release boundary potentially requiring a CLI update to handle. This is an interim solution until Bamboo gets around to providing proper configuration remote APIs :(.


Tags: bamboo-administration
How to force git garbage collection?
Asked by Deadcow:

We hit the 4gb limit and I did followed "Reduce repository size" guide to revert latest commit and also I turned "Delete dangling commits when over size limit" on in Labs, but somehow repo size just increased in size even more and it stays 5.9 GB for now for a few days, it seems that git gc were not initiated

url of the repo: git@bitbucket.org:DoMyBestGames/school.git

\*upd 1

Oh we did figured out that "Delete dangling commits when over size limit" setting is set per user and not per repo as I thought. We enabled this feature for the second user of this repo (he did the final commit) and hopefully this will trigger garbage collection, we'll see in a minutes I guess

\*upd 2

Nope, three hours passed, no difference ?


Answers:
author: Caroline R
body: Hi, [@Deadcow](/t5/user/viewprofilepage/user-id/938862)!

I saw that you created a ticket with our support related to the same question and we have already answered you there, so to avoid any possible misunderstandings or miscommunication that may arise from discussing the same matter on two different platforms, let's focus on the ticket instead.

Once the ticket is resolved, feel free to share the resolution here to help other community members that may have the same issue.

Kind regards,  
Caroline

comments: author: Deadcow
body: Thanks! All is fine now ?


author: Vishwas
body: Hey [@Deadcow](/t5/user/viewprofilepage/user-id/938862)

I have seen Atlassian Team checking from there end and doing gc. Hopefully they will reply here soon :)

Meanwhile have you checked this bfg utility which allows to do gc

<https://rtyley.github.io/bfg-repo-cleaner/>

Regards,

Vishwas

comments: author: Deadcow
body: Yeah! I found out about bfg just when we hit the 4gb limit and now I'm afraid to use it while we have dangling uncommited changes.

I'd like to try this tool for sure when I get back controls over the repo :)


author: Gonchik Tsymzhitov
body: Hi!

could you create a new repo in bitbucket and push old local repo and look the size after new git clone ?

comments: author: Deadcow
body: I tried that, it is much lower in size. I think gc should help. Seemingly only atlassian admins can help with this


Tags: bitbucket-cloud

cloud