Cannot add Ruby as a capability type in Bamboo 6.1
Asked by junfang li:

I just upgraded bamboo from 5.6 to 6.1 and I need to reconfigure ruby. When i try to add ruby as a capability type, the Type dropdown doesn't give me the option.

Looks like the old ruby plugin is not working on Bamboo 6.1 (<https://marketplace.atlassian.com/archive/au.id.wolfe.bamboo.rake-bamboo-plugin>)

Or should I use this one <https://marketplace.atlassian.com/plugins/com.alienfast.bamboozled.ruby.bamboozled-ruby-plugin/server/overview> ? If I use this one as a plugin can I just download it, put it under bamboo-home/plugins folder and restart bamboo?

![Capture.JPG](/t5/image/serverpage/image-id/6199iE5A2568EDA81AD82/image-size/large?v=v2&px=999 "Capture.JPG")

Logs:
> simple 14-Sep-2017 01:58:39 Finished task 'Checkout Default Repository' with result: Success  
> simple 14-Sep-2017 01:58:39 Running pre-build action: VCS Version Collector  
> command 14-Sep-2017 01:58:39 Substituting variable: ${bamboo.env} with dev  
> simple 14-Sep-2017 01:58:39 Starting task 'Capistrano' of type 'au.id.wolfe.bamboo.rake-bamboo-plugin:task.builder.capistrano'  
> error 14-Sep-2017 01:58:39 Could not run ruby task: Unable to locate Runtime Manager installation.  
> error 14-Sep-2017 01:58:39 au.id.wolfe.bamboo.ruby.locator.RuntimeLocatorException: Unable to locate Runtime Manager installation.  
> error 14-Sep-2017 01:58:39 at au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory.acquireRubyLocator(RubyLocatorServiceFactory.java:63)  
> error 14-Sep-2017 01:58:39 at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.getRubyLocator(AbstractRubyTask.java:119)  
> error 14-Sep-2017 01:58:39 at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.buildEnvironment(AbstractRubyTask.java:157)  
> error 14-Sep-2017 01:58:39 at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.execute(AbstractRubyTask.java:73)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:284)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:223)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:284)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:111)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:71)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:185)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:120)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:113)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:113)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:126)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:47)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)  
> error 14-Sep-2017 01:58:39 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)  
> error 14-Sep-2017 01:58:39 at java.lang.Thread.run(Thread.java:748)  
> simple 14-Sep-2017 01:58:39 Finished task 'Capistrano' with result: Failed


Answers:
author: somethingblue
body: Hi Jungfan,

According to [Defining a new executable capability](https://confluence.atlassian.com/bamboo/defining-a-new-executable-capability-289277164.html), these are the supported types of executables:

* Ant
* Maven
* Grails
* NAnt
* devenv.com
* msbuild.exe
* PHPUnit
* Custom command (e.g. 'make')
* Script

If you chose to download Bamboozled Ruby Plugin you can add it to the `<INSTALL_DIR>/atlassian-jira/WEB-INF/lib` directory as I believe this is a Plugins 1 type add-on:

**Installing Plugins 1 type add-ons in JIRA and Bamboo**

A few considerations apply to installing or uninstalling add-ons created with the SDK version 1 framework. These types of add-ons are identified in their Marketplace listing as 'Plugins 1' add-ons.

* You cannot install Plugins 1 add-ons into JIRA or Bamboo using the Universal Plugin Manager. You must download the add-on distribution and follow its specific installation instructions. Such add-ons have a **Download** button rather than an **Install** button in their listing. In most cases you will need to move or download the file to the `<INSTALL_DIR>/atlassian-jira/WEB-INF/lib` directory.
* Similarly, Plugins 1 JIRA and Bamboo add-ons do not have an **Uninstall** button. You must remove the add-on from the file system manually.
* In Confluence, you can install and uninstall Plugins 1 add-ons using the Universal Plugin Manager. You should see an **Install** or an **Uninstall** button with the add-on entry.

Once you have downloaded or created your add-on JAR file, follow these steps to install it to JIRA:

1. Shut down JIRA.
2. Copy your JAR file (e.g., example_plugin.jar) into the directory:  
   * If you are installing a Plugins 1 add-on, copy the JAR file into your [JIRA installation directory](https://confluence.atlassian.com/jira/jira-installation-directory-189891102.html) under `atlassian-jira/WEB-INF/lib/`.
   * If you are installing a Plugins 2 (OSGi) add-on, copy the JAR file into your [JIRA home directory](https://confluence.atlassian.com/jira/jira-home-directory-189891162.html) under `plugins/installed-plugins/`.
3. Start JIRA.
4. Confirm the installation by going to **Administration** \>**Manage Add-ons**. Your add-on (e.g., example_plugin) should appear in the list as enabled.

Hopefully this helps!

Cheers,

Branden


Tags: ruby