Change By: Brendan Nolan (12/Jul/13 9:53 PM)
Summary: BuildStepCompatibilityLayer.perform  throw  throws  UnsupportedOperation when invoked using classes that subclass Build
Description:
The following code will throw an unsupported operation.

{code}
FreeStyleBuild mock = Mockito.mock(FreeStyleBuild.class,Mockito.CALLS_REAL_METHODS);
ArtifactArchiver artifactArchiver = new ArtifactArchiver("", "", true);
artifactArchiver.perform(mock, null, null);
{code}

I came across the issue when trying to call the ArtifactArchiver via the groovy plugin on a MatrixRun build. 

The BuildStepCompatibilityLayer should check if the implementing BuildStep provides an implementation of the {perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)}
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to