youngmon/atlassian-qna huggingface dataset:
Always geting "No agent can build this Job" for php/phpunit/composer/ant
Asked by Martin Poirier-Theoret:

I'm setting up a project with php. Everything trigger properly before I got any task other thant checkout.

I've add phpunit call with a custom bootstrap in the phpunit.xml file. It failed because the file wasn't there. This file is generated via composer.phar that need to be executed prior the phpunit task. So I add a ant call that will use the default configuraiton (so just "ant") and here is the build.xml file

```
&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;project name="base" default="build"&gt;  &lt;target name="build"&gt;    &lt;exec executable="php"&gt;      &lt;arg value="composer.phar" /&gt;	  	&lt;arg value="install" /&gt;	  &lt;/exec&gt;  &lt;/target&gt;&lt;/project&gt;
```

Since than the build get trigger but get stuck with:

"No agent can build this Job"

I don't know what to do from there !


Answers:
author: Martin Poirier-Theoret
body: The issue have been resolve using the Atlassion support. It was related to the fact that I 'ant' instead of 'ant 1.8' for the job configuration


author: LucasA
body: Hi,

You can solve this adding the necessary capabilities on the Remote Agent. Please proceed as described here: <https://confluence.atlassian.com/display/BAMBOO/Configuring+elastic+agent+capabilities>

If you still need help with this, please raise a support request at <https://support.atlassian.com>

Lucas Lima


Tags: cloud
Bamboo SMTP unable to find valid certification path to requested target - why?
Asked by Matt Holmes:

I have Bamboo 4.1 installed on the same server as our JIRA 5.0.4 installation. JIRA has had working email notifications since the beginning, and is set up for SSL connections (HTTPS redirect included). Bamboo is set up for jira.mycompany.com:8085 and is not set up for SSL.

When I configure the SMTP settings in Bamboo, I get the following error:

The mail settings you entered were not valid. Error thrown was: javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Which confuses me because bamboo isn't using certs?

My email server is Exchange 2010.

Any ideas?


Answers:
author: Tiago Comasseto
body: Hi Matt,

Is your Exchange server configured for communication over SSL? If yes, then you'll need to import Exchange's certificate into the cacerts file of the Java installation that Bamboo is using. You can see more details on how check this [here](https://confluence.atlassian.com/display/JIRA/How+to+Set+Up+SMTP+Relay+in+Exchange+2007).

This is the example of the import command:  

```
keytool -import -keystore ./jre/lib/security/cacerts -file server-certificate.crt
```

Also, after this, you can test if the connection over SSL is right using [SSLPoke](https://confluence.atlassian.com/display/JIRA052/Connecting+to+SSL+services#ConnectingtoSSLservices-UsingJava), as this example:  

```
java -Djavax.net.ssl.trustStore=/opt/java/jre/lib/security/cacerts SSLPoke smtp.gmail.com 465
```

Once you have the certificate imported, you can restart your Bamboo instance and attempt to configure the SMTP server again.

I hope this helps.

Cheers


author: Steve Thornhill
body: Matt,

Did you ever fix this - I've found a method that does work if you still need an answer


Tags: ms-exchange

smtp

ssl
partial code to testing
Asked by Evan Cutler:

I have a large website I am building.

V1.0 has five components.

The leadership wants me to put into staging and testing each component as they are feature complete.

I am still new to JIRA and build management.

I infer from all build management documentation that you don't do a build until you are code complete for V1.0. What kind of "issue tracking" does one use for partial completeness...ie, i want to put up two components for testing and bug reporting?

<br />

thanks.


Answers:
author: Renjith Pillai
body: Define a project and define the components if you already know it. As you keep developing and your users find issues request them to report.

Also for tracking your project progress itself you need or can use JIRA with all your Epics/Stories and sub-tasks being tracked in JIRA

And you should be looking at Bamboo also if you are looking a continous deployment, not just JIRA


Tags: build

continuous-delivery

test
Possible to have bamboo load .bashrc?
Asked by Chris:

Is there a way to have bamboo load .bashrc or .bash_profile as part of the start up script so I don't have to export custom PATH \& environment vars in every Script tasks?

<br />

For example, in each Script task anytime we want to do a ruby related script we need to include

```
# export PATH="$RBENV_ROOT/shims:$RBENV_ROOT/bin:$PATH"
```

It would be nice if this was loaded automatically somehow.


Answers:
author: Przemek Bruski
body: Instead of calling the Bamboo startup script directly, just source the .bashrc and then call the script. The exoprted variables will be visible to all script tasks run on the local agents. If you want to do the same for remote agents, you need to do the same - i.e. source the dot files first, then run the agent startup command.

comments: author: Chris
body: Is there a way to have it source automatically? I'd just be swapping out one line for another, right?

And to be clear, this is a "Job Task" inside of a plan, not starting up bamboo itself


author: Chris
body: Or are you saying there is a script that launches the elastic agent I can append a source .file to?


author: Przemek Bruski
body: Ah. No, that won't work. The tasks are isolated. Whatever you source in one, won't be visible in others. THe only way to make them available everywhere is to use them during Bamboo startup or Bamboo agent startup.


author: Przemek Bruski
body: Re: elastic agents. Yes, you can do it for the elastic agent. The easiest way is to add the necessary lines to .bashrc of the bamboo user using the instance startup script (have a look at your image configuration).

That script is run before the agent is started, so whatever you do there will be visible to the agent.


author: Chris
body: By instance startup script, do you mean the script that is entered in EC2 that runs on boot (I believe set as \`user data\` in the launch menu) or a bamboo startup script in the server itself?


author: Przemek Bruski
body: Click edit on your image configuration. You can enter a script there. It will be run right before the agent is started. The script is run as root.


author: Chris
body: awesome, thank you (and thank you for such speedy support!)


author: jokecamp
body: Can you elaborate on where to put the ". \~/.bashrc"

For a ubuntu 14 remote agent I am trying in the "start-agent.sh" file and running "./start-agent.sh"

like so:

```
. ~/.bashrcjava -Djavax.net.ssl.trustStore=/home/devadmin/keystore -Dbamboo.agent.ignoreServerCertName=true -jar atlassian-bamboo-agent-installer-5.9.1.jar https://mybuildserver/bamboo/agentServer/ start
```

<br />

But the bashrc is still not loading for my tasks.


Tags: cloud
grahamb@sfu.ca
Asked by Graham Ballantyne:

Any attempt to view the Manage Add-ons page in our Bamboo installation results in two errors:

- The Atlassian Marketplace server is not reachable...

- An unexpected error occurred. Please refer to the logs for more information.

My server does not require a proxy to connect to the internet, and I can ping [marketplace.atlassian.com](http://marketplace.atlassian.com) and curl <https://marketplace.atlassian.com>. I have cranked up all logging to debug and haven't found much useful information, with the exception of:

2013-01-16 16:29:02,711 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (stringKey)

2013-01-16 16:29:02,767 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.plugin.license.error)

2013-01-16 16:29:02,805 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.plugin.license.sen.unknown)

2013-01-16 16:29:02,875 DEBUG bambooAgentMessageListenerConnector-1 FingerprintMatchingMessageListenerContainer Consumer ActiveMQMessageConsumer { value=ID:atlassian.f5esx.sfu.ca-52246-1358381937624-3:1:1:1, started=true } of session PooledSession { ActiveMQSession {id=ID:atlassian.f5esx.sfu.ca-52246-1358381937624-3:1:1,started=true} } did not receive a message

2013-01-16 16:29:03,159 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.plugin.error.failed.to.remove.request)

2013-01-16 16:29:03,327 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.messages.install.success.finished.button)

2013-01-16 16:29:03,340 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.messages.install.licensing.required.button)

2013-01-16 16:29:03,370 DEBUG qtp380254118-135 DefaultI18nBean Error getting text for key: (upm.messages.update.success.finished.button)

I have attached log output collected while loading the add-ons page.

Additionally, nothing shows up under the System Plugins section of the page. The System Information page shows numerous enabled plugins.


Answers:
author: Graham Ballantyne
body: It turns out that the base URL was set incorrectly; fixing that resolves the issue.


author: Sultan Maiyaki
body: Hi Graham,

Are you using the crowd SSO? If yes pls see this bug <https://jira.atlassian.com/browse/BAM-12484> and apply the workaround suggested in this comment [https://jira.atlassian.com/browse/BAM-12484?focusedCommentId=420114\&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-420114](https://jira.atlassian.com/browse/BAM-12484?focusedCommentId=420114&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-420114)

comments: author: Graham Ballantyne
body: It turns out that the base URL was set incorrectly; fixing that resolves the issue.


Tags: app

universal-plugin-manager
Can I run builds one after another even if the parent plan (plan before) fails
Asked by usman hussain:

I have a number of builds that I need to run in sequence. I am not bothered if the plan before (parent build) fails or not. The only thing I am interested in getting all the build in a plan to run one after another with only one agent.

Currently the first build runs but when it fails, it does not trigger off the other builds.

This is a big thing for us as these plans means extra hours of work because we are unable to run all the plans.


Answers:
author: Sultan Maiyaki
body: Hi Usman,

This is not configurable at the moment but you can have a look at this feature request <https://jira.atlassian.com/browse/BAM-6434>
Can I do an enabled plugin with my free licence for bamboo?
Asked by Javier Pascual:

Can I do an enabled plugin with my free licence for bamboo?  
I try enabled a plagin and this is the response: "This add-on failed to enable. Your license may be invalid. Please refer to the logs for more information.".   
what is the possible problem?  
Thanks


Answers:
author: James Dumay
body: Hi Javier,

Is there a Plugin Manager update available? You can find out by visiting Administration-\>Manage Plugins. Could you try updating the Plugin Manager and then try installing the addon?

If that fails, try contacting [support](support.atlassian.com).

Thanks  
James

comments: author: Javier Pascual
body: Hi James,

I'll look y and I'll tell you something

Thanks

Javier


Tags: licence
Does Bamboo limit the number of plans it queries on a trigger event?
Asked by Brent Villalobos:

We use AccuRev and a custom Bamboo repository plugin. We have many plans set to build on AccuRev promotions using a triggered, not a polling, strategy. In earlier versions of Bamboo (v3), we had to put in some logic on our repository notification server that filtered out what plans to trigger. Otherwise, if we asked Bamboo to process all triggered plans on each promotion and build only the ones that have changes then it would overwhelm our source revision system with queries. We have about 30 plans configured for build triggering so having Bamboo send 30 queries to the AccuRev server on every promotion was too much to handle.

We are now on Bamboo v4.3 and I've been doing some tests to see if just triggering all plans with an "http://\[bamboo url/api/rest/updateAndBuild.action" will still cause problems by overloading our source revision server. It looks like Bamboo v4.3 does a good job of first ignoring updateAndBuild actions against non-trigger plans. And then it looks like it limits the number of plans that concurrently query for changes.

Can anyone confirm if Bamboo does limit the number of triggered plans that concurrently query for changes? Or to put it another way, if we increase the number of plans that use build triggers, will that not increase the load we put on the rcs server on each check in?


Answers:
author: Przemek Bruski
body: Yes, I can confirm that. It's even configurable via the "bamboo.plan.exe.threads" property (the actual value is property\*2). The default is 8.
Is it possible to set "Run customised..." by default?
Asked by Vincent Palita:

The question says it all :P. I can't find the option in the configuration.

Thank you for your help!

Vincent


Answers:
author: PiotrA
body: Hello Vincent,

The answer is: "No". However, there is an improvement request in Bamboo tracker: <https://jira.atlassian.com/browse/BAM-12315> - I think you should vote on that issue and add yourself as a watcher. After all it's not an uncommon feature I'd say.

regards

comments: author: Vincent Palita
body: Thank you very much! I added a vote.

In fact when you use Bamboo to work on remote computer that all have the same configuration, using the variables to just tell which computer to use is REALLY usefull.
How do I prevent a remote agent from being used?
Asked by Ed Abshire:

We have 6 remote agents set up for specific teams inside our company. They don't wany any other builds using their agents. The problem is, if a build matches a minimum requirement, it will of course use that agent.

Is there any way I can prevent an agent from picking up a build unless it has a specific flag/requirement associated with it?


Answers:
author: danielwester
body: Haven't used it - but <https://marketplace.atlassian.com/plugins/com.edwardawebb.bamboo-group-agent> seems to do what you want.

comments: author: Ed Abshire
body: Thank you, this is exactly what I was looking for.

-Ed


author: Jan Swaelens
body: You can also assign a unique custom capability to each of thos remote agents and assign this capability as a requirement to the corresponding plans that they need to build.

comments: author: Ed Abshire
body: I am looking at the first answer. The problem with the 2nd answer is that if even one minmum capability is met, the agent can be used other builds.


Tags: remote-agent

requirement
Create a plugin bamboo
Asked by Javier Pascual:

Can i do a service for user manage? i have do it with a plugin? this service exist?  
I am doing a conector between bamboo and a external identity manager. This software is oim, it is posible?  
Thank you for yours responses  
mi english is very bad, i am sorry.


Answers:
author: Javier Pascual
body: Hello Paul,  
Thank you very much for your interest. We have an Oracle Identity Manager (OIM) and we need to modify, create, delete, groups and users of bamboo from IOM (JIRA and Confluence is easier). we can do this? as we can? I'm trying with a plugin.  

Thank you very much, greetings  
Javier


author: Paul Greig
body: Hi Javier,

Could you please provide some more details on exactly what you are trying to achieve?

Thanks,

Paul


Tags: cloud
Restrict builds between times
Asked by Adam Strawson:

We have a few rules in place within our development process, one of which is that we don't push out code changes after 4pm, and on Fridays.

I'd like to try and bring these rules into play on Bamboo.

Is there a way to only allow builds during certian times?

I thought about just setting the plan as 'disabled' but then any user can then go and enable it, alternativly is there a way to set the permissions so a user is unable to enable a disabled plan?


Answers:
author: PiotrA
body: Hello adam,

As for setting permissions: I think you need to unset "BUILD" permission to disallow the user enabling/disabling a plan. Would that be a viable option?

comments: author: PiotrA
body: Yeah, that was worrying me too. In that case I don't see any other 'special' permission to control plan disabling/enabling.

Allthough, on the second thought - if you're considering enabling/disabling plans method, then maybe you could also manipulate the permissions too? After all, if people are disallowed to run the plans between 4pm++ and Fridays, then you could turn the 'build' permissions for them too, right? And I'm speculating, that if you would go with this solution, you would somehow automate the task of enabling/disabling plans so you could probably automate permission stuff too... But I'm speculating here.

cheers!


author: Adam Strawson
body: Hi, that's correct, but then it also disallows them from running the build too, which i'd still like them to be able to do during some defined hours.


author: Adam Strawson
body: Yeah, automating the ask would be prefered. I did look at the API, and having a cron run on the server which triggers the plans to be disabled/enabled, but the API is quite limited and only allows GET..

Might look at writing a plugin that can handle this kind of thing, speciify a time and/or date to disable/enable a plan. I'd imagine some other Bamboo user might find a use for it. Just hoped there were some easy way to do this already.
Where would I find the project keys and the plan keys?
Asked by Dan Ivy:

Hello - I'm trying to add a plan to my project that uses the "trigger condition" of "Only run Build if other Plans are currently passing" which requires the Plan Keys of my other plans. I'm not finding the Plan Keys listed anywhere - can someone suggest where to look, please?

Thanks!


Answers:
author: Andreas Nicolaisen
body: How is it possible that you (atlassian) base the setup of functionality on keys that you do NOT show anywhere, and that the user are supposed to MANUALLY provide! Wow!


author: PiotrA
body: Hello di33,

If you know which the plans of which you want to obtain plan key, then you could 'extract' the plan key from your web browser address. Just go to one of your desired plan's result pages, and check your web browser address bar, for example:

<http://my.bamboo.com:8085/bamboo/browse/BAM-FC-8882>

The BAM part is the \[Project Key\], the FC part is the \[Plan Key\]

Does it make sense? :)

comments: author: Dan Ivy
body: Perfect - thanks!


author: Doug Huras
body: Nice!


author: Yasashree
body: where can I find build key, build number using rest API and ul


author: Werner Meyer
body: Please atlassian.. fix your trigger screen. No point in asking for a comma delimited list of keys but not displaying the keys anywhere. STash displays the keys, why not bamboo?

It would be useful to simply add components on the trigger screen to select the plans you want instead of forcing a comma delimited plan key string. Lazy implementation that.


author: Przemek Bruski
body: I don't know which version of Bamboo you're using, but maybe you should use com.atlassian.bamboo.plan.cache.CachedPlanManager#getPlans and get the keys from the returned collection?

comments: author: Dan Ivy
body: I'm using 4.1.2, and perhaps I should mention that I'm not a programmer - I'm guessing the suggestion here might be outside of my sphere. I was looking for an answer that I could execute from the Bamboo UI, or by peeking in the database (peeking at tmp files works for now!).


author: Przemek Bruski
body: Have a look at the BUILD table then.


author: Dan Ivy
body: In the /tmp directory on the server there are a bunch of files that get created that are named \[Project Key\]-\[Plan Key\], and fortunately I've got a small instance so I could figure out from that the Plan Key I needed for the trigger condition. Also (mentioned in another question), even though it says it wants the Plan Key, the trigger condition needs the same info (\[Project Key\]-\[Plan Key\]).


author: Dan Ivy
body: I found the Project Keys in the db, in the PROJECTS table. Now for those elusive Plan Keys...
Snapshot generation before shutdown?
Asked by Christof Zellweger:

Hi all

I've been busy setting up our bamboo on demand instance to run the builds we previously ran on our local instance. As many others have already posted about or created tickets for (see for example[https://answers.atlassian.com/questions/109719/automated-ebs-snapshots-in-bamboo-ondemand](../109719/automated-ebs-snapshots-in-bamboo-ondemand),<https://jira.atlassian.com/browse/BAM-11525>, <https://jira.atlassian.com/browse/AOD-3293>), I'm facing the issue of outdated maven repositories on the attached EBS volume as the contents on those volumes are not automatically persisted when the EC2 instance is terminated/shut down.

Specifically, the post at [https://answers.atlassian.com/questions/109719/automated-ebs-snapshots-in-bamboo-ondemand](../109719/automated-ebs-snapshots-in-bamboo-ondemand) is more or less exactly what I want to achieve: automatic generation of a snapshot before shutdown so that all the build artifacts are preserved and don't need to be re-created the next time the instance starts up. However, I was unable to get it to run as suggested in the above post.

Is there anyone who has successfully tackled this issue? If so, how did you do it? If not, any ideas or pointers are greatly appreciated.

Regards, Chris


Answers:
author: LucasA
body: Hi,

Maybe you can add a script on /etc/rc0.d , so the script will run at the shutdown time. Just set customised-extras.sh to create the script or something on this way at the boot time.

Cheers,

Lucas Lima


Tags: cloud
Setting up Selenium on Bamboo OnDemand
Asked by Tony Murphy:

I followed the instructions on Confluence:

<https://confluence.atlassian.com/display/AOD/Populating+your+EBS+volume#PopulatingyourEBSvolume-SettingupSeleniumonelasticagents>

I placed the setupSelenium.sh in /mnt/bamboo-ebs

I edited /mnt/bamboo-ebs/bin/customise-extras.sh and added the following line

#!/bin/bash

/mnt/bamboo-ebs/setupSelenium.sh

I created a snapshot

I added the custom capability (e.g. selenium=true) to the agent image

-------------------- IT DIDN'T WORK --------------

Nothing is added to the bamboo users home directory

```
bamboo@ip-10-194-37-76 ~ $ ls -latotal 144drwx------ 5 bamboo bamboo 4096 Jan 4 09:05 .drwxr-xr-x 4 root root 4096 Oct 7 16:47 ..drwxr-xr-x 6 bamboo bamboo 4096 Jan 4 08:39 bamboo-agent-home-rw-rw-r-- 1 bamboo bamboo 930 Oct 7 16:47 bamboo-capabilities.properties-rw-rw-r-- 1 bamboo bamboo 89909 Jan 4 09:05 bamboo-elastic-agent.out-rw------- 1 bamboo bamboo 537 Jan 4 09:05 .bash_history-rw-r--r-- 1 bamboo bamboo 18 Jul 28 2011 .bash_logout-rw-r--r-- 1 bamboo bamboo 176 Jul 28 2011 .bash_profile-rw-r--r-- 1 bamboo bamboo 124 Jul 28 2011 .bashrc-rwxr-xr-x 1 bamboo bamboo 45 Jan 4 08:36 build.properties-rw-r--r-- 1 bamboo bamboo 121 Jul 28 2011 .kshrcdrwxr-xr-x 3 bamboo bamboo 4096 Jan 4 08:39 .m2drwxrwxr-x 2 bamboo bamboo 4096 Jan 4 08:39 .subversion-rw------- 1 bamboo bamboo 1267 Jan 4 09:05 .viminfobamboo@ip-10-194-37-76 ~ $
```

looks like firefox etc has been installed - yum.log suggest so (Jan 04 08:37:29 Installed: firefox-3.6.26-1.el5.centos.i386).

But if I do a \`which firefox\` then, it shows up as /usr/bin/firefox - which has a created date feb 2012

If I look deeper, I can see updates to /usr/lib/firefox-3.6

Any ideas on what I'm doing wrong? Where can I see logs?


Answers:
author: Tony Murphy
body: Thanks Lucas

Turns out that I had installed everything ok.. Our test code was the problem.


author: LucasA
body: Hi Tony,

The "/usr/bin/firefox" may be a symlink to the real Firefox location. You can assure whether Firefox was correctly installed or not by the following command:

```
rpm -ql $(rpm -qa | grep -i firefox)
```

This will return where Firefox was installed.

I hope it helps!

Best regards,  
Lucas Timm


Tags: selenium