I'm getting a crash when running a bundle task. I believe (could be totally wrong as I don't know the Bamboo API at all) the crash is due to calling a deprecated method:
recordError
@Deprecated
void recordError(@Nullable
BuildContext buildContext,
@NotNull
java.lang.String context,
@Nullable
java.lang.Throwable throwable)
Deprecated. since 5.0 use recordError(ResultKey, String, Throwable) instead.
Obviously I've also got a problem with my config as this code is logging some sort of error.
I thought that maybe the fix was trivial and was going to provide a pull request, however I'm not familiar with the bamboo api at all and cannot determine how to change from a BuildContext to a ResultKey...sorry...
Here's the call stack:
30-Apr-2014 12:33:55 Error occurred while running Task 'Bundle Dependencies(3)' of type au.id.wolfe.bamboo.rake-bamboo-plugin:task.builder.bundler.
30-Apr-2014 12:33:55 java.lang.NoSuchMethodError: com.atlassian.bamboo.logger.ErrorUpdateHandler.recordError(Lcom/atlassian/bamboo/v2/build/BuildContext;Ljava/lang/String;Ljava/lang/Throwable;)V
30-Apr-2014 12:33:55 at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.logError(AbstractRubyTask.java:107)
30-Apr-2014 12:33:55 at au.id.wolfe.bamboo.ruby.tasks.AbstractRubyTask.execute(AbstractRubyTask.java:94)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:220)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:186)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:108)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
30-Apr-2014 12:33:55 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
30-Apr-2014 12:33:55 at java.lang.Thread.run(Thread.java:695)
I'm getting a crash when running a bundle task. I believe (could be totally wrong as I don't know the Bamboo API at all) the crash is due to calling a deprecated method:
https://docs.atlassian.com/atlassian-bamboo/5.1/com/atlassian/bamboo/logger/ErrorUpdateHandler.html#recordError(com.atlassian.bamboo.v2.build.BuildContext,%20java.lang.String,%20java.lang.Throwable)
Obviously I've also got a problem with my config as this code is logging some sort of error.
I thought that maybe the fix was trivial and was going to provide a pull request, however I'm not familiar with the bamboo api at all and cannot determine how to change from a BuildContext to a ResultKey...sorry...
Here's the call stack: