wolfeidau / rake-bamboo-plugin

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

Builds 'silently' failing after v2.2 update #56

Closed kennyyork closed 10 years ago

kennyyork commented 10 years ago

I updated our Bamboo Rake Plugin from v2.0 to v2.2 last night and all our builds started failing this morning. There wasn't anything visible in the build logs, but when I looked at Bamboo's log I found info below. It looks like the plugin is attempting to to locate JRuby and fails, which causes the whole task to bomb out.

You can see it recognizes my configured runtime '2.0.0-p247@default' and even looks at the path for it 'c:\Ruby200\bin\ruby.exe', but then it tries to invoke JRuby which I don't have installed.

I've manually rolled the plugin back to v2.0, so we are able to build again for now.

2013-09-27 08:46:30,628 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [VcsCheckoutTask] NPT-BLD0-JOB1-22: Updated source code to revision: f87c8a58fada7ebe30211a8087d933b4104b58b0 2013-09-27 08:46:30,675 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [PrepareBuildTask] NPT-BLD0-JOB1-22: Running pre-build action: Clover Grails PreBuild Action 2013-09-27 08:46:30,722 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [PrepareBuildTask] NPT-BLD0-JOB1-22: Running pre-build action: VCS Version Collector 2013-09-27 08:46:30,722 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [DefaultBuildAgent] Running build phase: com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask 2013-09-27 08:46:30,769 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecuteBuildTask] Starting execution: NPT-BLD0-JOB1-22, logger: 853875806 2013-09-27 08:46:30,769 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecutionPhaseServiceImpl] Newport - Build and Test - v1.0.0 - Default Job #22 (NPT-BLD0-JOB1-22) execution started 2013-09-27 08:46:30,769 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ChainExecutionManagerImpl] onExecutionStartedTimingPoint for NPT-BLD0-JOB1-22 2013-09-27 08:46:30,769 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [DefaultBuildExecutionManager] onExecutionStartedTimingPoint for NPT-BLD0-JOB1-22 2013-09-27 08:46:30,800 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [TaskExecutorImpl] NPT-BLD0-JOB1-22: Starting task 'Run centralite-common Tests' of type 'au.id.wolfe.bamboo.rake-bamboo-plugin:task.builder.rake' 2013-09-27 08:46:30,800 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [AbstractRubyTask] Using manager WINDOWS runtime 2.0.0-p247@default 2013-09-27 08:46:30,816 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [RubyLocatorServiceFactory] Loaded ruby runtime managers [au.id.wolfe.bamboo.ruby.system.SystemRubyRuntimeLocatorService@2a674c40, au.id.wolfe.bamboo.ruby.rbenv.> RbenvRubyRuntimeLocatorService@63bf137f, au.id.wolfe.bamboo.ruby.rvm.RvmRubyRuntimeLocatorService@15992a02, au.id.wolfe.bamboo.ruby.windows.WindowsRubyRuntimeLocatorService@7a94f461] 2013-09-27 08:46:30,862 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecHelper] where exit code = 0 2013-09-27 08:46:30,862 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecHelper] where exec result = c:\Ruby200\bin\ruby.exe

2013-09-27 08:46:30,878 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecHelper] where exit code = 0 2013-09-27 08:46:30,878 INFO [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [ExecHelper] where exec result =

2013-09-27 08:46:30,878 ERROR [9-BAM::Local Agent 3::Agent:pool-23-thread-1] [AbstractRubyTask] Unable to locate executable - jruby.exe au.id.wolfe.bamboo.ruby.common.PathNotFoundException: Unable to locate executable - jruby.exe at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.detectExecutablesOnPath(WindowsRubyLocator.java:209) at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.listRubyRuntimes(WindowsRubyLocator.java:98) at au.id.wolfe.bamboo.ruby.windows.WindowsRubyLocator.getRubyRuntime(WindowsRubyLocator.java:76) at au.id.wolfe.bamboo.ruby.tasks.rake.RakeTask.buildCommandList(RakeTask.java:44) at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.execute(AbstractRubyTask.java:71) 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:102) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:107) at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52) at java.lang.Thread.run(Unknown Source)

wolfeidau commented 10 years ago

I will have a look at this tonight BTW had some issues with my windows test machine so just going to use an ec2 box.

It seems the way I am raising exceptions is not triggering the same behaviour in Bamboo 5 I need to fix this for all the commands.