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
-
[JENKINS-18734] BuildStepCompatibilityLayer.perform throws UnsupportedOperation when invoked using classes that subclass Build
Link | New: This issue is related to JENKINS-6670 [ JENKINS-6670 ] |
Description |
Original:
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)} |
New:
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)} |
Summary | Original: BuildStepCompatibilityLayer.perform throw UnsupportedOperation when invoked using classes that subclass Build | New: BuildStepCompatibilityLayer.perform throws UnsupportedOperation when invoked using classes that subclass Build |
Description |
Original:
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)} |
New:
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)}} |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Assignee | New: Brendan Nolan [ bstick12 ] |
Workflow | Original: JNJira [ 150082 ] | New: JNJira + In-Review [ 185463 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |