wolfeidau / rake-bamboo-plugin

Plugin for bamboo which enables building of ruby projects using rake
Other
34 stars 16 forks source link

Plugin does not work Bamboo version 5.7.x #86

Closed OliverPereira closed 9 years ago

OliverPereira commented 9 years ago

We are planning to use this plugin with our instance of Bamboo but it doesn't seem to be working.

The Ruby runtime drop down select list is not available and throws the following exception when I try to configure the task.

2014-12-05 13:34:47,039 INFO [http-bio-8080-exec-17] [AccessLogFilter] oliver.pereira POST https://testbamboo.gamesys.corp/build/admin/edit/createTask.action 634096kb 2014-12-05 13:34:47,051 ERROR [http-bio-8080-exec-17] [runtime] Expression invalidRuntime is undefined on line 4, column 6 in bundler/install/editBundlerInstallTask.ftl.

Expression invalidRuntime is undefined on line 4, column 6 in bundler/install/editBundlerInstallTask.ftl.

The problematic instruction:

==> if-else [on line 4, column 1 in bundler/install/editBundlerInstallTask.ftl]

Java backtrace for programmers:

freemarker.core.InvalidReferenceException: Expression invalidRuntime is undefined on line 4, column 6 in bundler/install/editBundlerInstallTask.ftl. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)

OliverPereira commented 9 years ago

I compiled it against Bamboo 5.7.2 libraries and it fixed the drop down issue but I am getting the following exception.

I am running the build on remote agents. The error is not thrown when using local agents.

Error occurred while running Task 'Bundler Install(3)' of type au.id.wolfe.bamboo.rake-bamboo-plugin:task.builder.bundler. java.lang.NullPointerException: Capability at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.getRubyExecutablePath(AbstractRubyTask.java:140) at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.buildEnvironment(AbstractRubyTask.java:159) at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.execute(AbstractRubyTask.java:73) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:744)

dgolja commented 9 years ago

:+1:

swistaczek commented 9 years ago

Hey, same issue with NullPointerException occuring on 5.6.2 build 4411.

wolfeidau commented 9 years ago

Heya, at the moment I don't use bamboo so hence me not being very responsive with upgrades.

Has anyone diagnosed the issue? I would love a pull request for this.

felder commented 9 years ago

Bamboo 5.6.3 also indicates that the plugin is incompatible.

jrdaniels commented 9 years ago

I would be happy with the recompile that @olisun did, as I'm not using any remote agents.

Also, @wolfeidau have you moved on to a different CI server platform for your projects?

wolfeidau commented 9 years ago

Yeah I use https://buildkite.com/ now, fantastic service and way simpler to operate.

Just a note I am closing this issue as i am not maintaining this plugin anymore.

dgolja commented 9 years ago

buildkite looks nice ! tnx for all your hard work in the past. Hopefully bamboo will finally ship an official support for ruby.

wolfeidau commented 9 years ago

Thanks much appreciated, I will also mention it on twitter to nudge them :)

OliverPereira commented 9 years ago

@n1tr0g - I doubt Atlassian is going to bother about it.

dgolja commented 9 years ago

Probably true, but sadly as far as I know they don't support ruby testing by default. I had to build a custom elastic client and define the capabilities/commands manually.

https://confluence.atlassian.com/display/BAMBOO/Getting+started+with+Ruby+and+Bamboo https://jira.atlassian.com/browse/BAM-10948