Thats what I did but ran into trouble with public abstract class BuilderAdapter extends Builder {
@Override public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) { //pretty tanky due to parameterized type problems in scala... try { return scala_perform((FreeStyleBuild) build, launcher, listener); } catch (ClassCastException e) { try { return scala_perform((MatrixRun)build, launcher, listener); } catch (ClassCastException e2) { return false; } } } public abstract boolean scala_perform(FreeStyleBuild build, Launcher launcher, BuildListener listener); public abstract boolean scala_perform(MatrixRun build, Launcher launcher, BuildListener listener); } as I couldn't persuade scala to take it, hence the nasty hack and duplication. It does build and run now but you have to compile java and scala together in the scala compile phase -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/c633d6f4-0e9a-4666-ba43-4bd7f4ba3275%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.