This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

      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)

            Assignee:
            Brendan Nolan
            Reporter:
            Brendan Nolan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: