SBT task fails after successful build ends
Asked by Guy Jarvis:

builder.sbt.target is "clean package-war"

This is my log:

```
22-Jul-2013 11:52:46	[info] Done packaging.22-Jul-2013 11:52:46	[success] Total time: 108 s, completed 22-Jul-2013 11:52:4622-Jul-2013 11:52:46	Error occurred while running Task 'package(2)' of type com.atlassian.bamboo.plugins.sbt:sbt.22-Jul-2013 11:52:46	com.atlassian.bamboo.task.TaskException: Failed to execute task22-Jul-2013 11:52:46	        at com.atlassian.bamboo.plugins.sbt.task.SbtBuildTask.execute(SbtBuildTask.java:102)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:208)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:107)22-Jul-2013 11:52:46	        at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)22-Jul-2013 11:52:46	        at java.lang.Thread.run(Thread.java:724)22-Jul-2013 11:52:46	Caused by: java.lang.IncompatibleClassChangeError: Found interface com.atlassian.utils.process.ExternalProcess, but class was expected22-Jul-2013 11:52:46	        at com.atlassian.bamboo.plugins.sbt.task.SbtBuildTask.execute(SbtBuildTask.java:80)22-Jul-2013 11:52:46	        ... 8 more22-Jul-2013 11:52:46	Running post build plugin 'NCover Results Collector'22-Jul-2013 11:52:46	Running post build plugin 'Clover Results Collector'22-Jul-2013 11:52:46	Running post build plugin 'Artifact Copier'22-Jul-2013 11:52:46	Publishing an artifact: war22-Jul-2013 11:52:46	Finished publishing of artifact Job artifact: [war], pattern: [2.10-0.1.war] anchored at: [target/scala-2.10] in 0s
```


Answers:
author: Inavero Purchasing
body: Running into the same issue. Versions are same as yours but on CentOS 6.4.

Target is: clean compile stage

```
build	08-Aug-2013 10:10:29	[0m[[0minfo[0m] [0mYour application is ready to be run in place: target/start[0mbuild	08-Aug-2013 10:10:29	[0m[[0minfo[0m] [0m[0mbuild	08-Aug-2013 10:10:29	[0m[[32msuccess[0m] [0mTotal time: 18 s, completed Aug 8, 2013 10:10:29 AM[0merror	08-Aug-2013 10:10:29	Error occurred while running Task 'Build Play! app(2)' of type com.atlassian.bamboo.plugins.sbt:sbt.error	08-Aug-2013 10:10:29	com.atlassian.bamboo.task.TaskException: Failed to execute taskerror	08-Aug-2013 10:10:29		at com.atlassian.bamboo.plugins.sbt.task.SbtBuildTask.execute(SbtBuildTask.java:102)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:216)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:98)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:102)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:107)error	08-Aug-2013 10:10:29		at com.atlassian.bamboo.build.pipeline.concurrent.NamedThreadFactory$2.run(NamedThreadFactory.java:52)error	08-Aug-2013 10:10:29		at java.lang.Thread.run(Thread.java:722)error	08-Aug-2013 10:10:29	Caused by: java.lang.IncompatibleClassChangeError: Found interface com.atlassian.utils.process.ExternalProcess, but class was expectederror	08-Aug-2013 10:10:29		at com.atlassian.bamboo.plugins.sbt.task.SbtBuildTask.execute(SbtBuildTask.java:80)error	08-Aug-2013 10:10:29		... 8 moresimple	08-Aug-2013 10:10:29	Running post build plugin 'NCover Results Collector'simple	08-Aug-2013 10:10:29	Running post build plugin 'Clover Results Collector'simple	08-Aug-2013 10:10:29	Running post build plugin 'Artifact Copier'simple	08-Aug-2013 10:10:29	Finalising the build...simple	08-Aug-2013 10:10:29	Stopping timer.simple	08-Aug-2013 10:10:29	Build TRAN-DEV-JOB1-13 completed.simple	08-Aug-2013 10:10:29	Running on server: post build plugin 'NCover Results Collector'simple	08-Aug-2013 10:10:29	Running on server: post build plugin 'Clover Delta Calculator'simple	08-Aug-2013 10:10:29	Running on server: post build plugin 'Build Hanging Detection Configuration'simple	08-Aug-2013 10:10:29	Running on server: post build plugin 'Maven Dependencies Postprocessor'simple	08-Aug-2013 10:10:29	All post build plugins have finishedsimple	08-Aug-2013 10:10:29	Generating build results summary...simple	08-Aug-2013 10:10:29	Saving build results to disk...simple	08-Aug-2013 10:10:29	Indexing build results...simple	08-Aug-2013 10:10:29	Finished building TRAN-DEV-JOB1-13.
```

comments: author: Guy Jarvis
body: Thanks to Justin Montgomery for pointing that issue out.

"The SBT plugin apparently broke after the Bamboo 4.4.3 release. Atlassian has created a ticket to track it: <https://jira.atlassian.com/browse/BAM-13592>"

If you are suffering from this please go vote.

Luckily I can install sbt on the bamboo box and use a command task to do this.


author: Inavero Purchasing
body: The SBT plugin apparently broke after the Bamboo 4.4.3 release. Atlassian has created a ticket to track it: <https://jira.atlassian.com/browse/BAM-13592>


author: Inavero Purchasing
body: The SBT plugin apparently broke after the Bamboo 4.4.3 release. Atlassian has created a ticket to track it: <https://jira.atlassian.com/browse/BAM-13592>


author: Guy Jarvis
body: There is an error in the bamboo result summary:

No failed tests found, a possible compilation error occurred.

I have the "The build will produce test results." checkbox unchecked in the sbt task and the plan is showing as testless.


author: Guy Jarvis
body: Bamboo 5.0 \& Atlassian Bamboo SBT Task Plugin 4.0  
SBT 0.12.4  
Ubuntu 13.04