The following code will throw an unsupported operation.
FreeStyleBuild mock = Mockito.mock(FreeStyleBuild.class,Mockito.CALLS_REAL_METHODS); ArtifactArchiver artifactArchiver = new ArtifactArchiver("", "", true); artifactArchiver.perform(mock, null, null);
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)
- is related to
-
JENKINS-6670 UnsupportedOperationException when running build
- Open