Hi, I'm trying to archive an artifact created during a build flow run. I want to archive the artifact during the run instead of post build so:
1. I can schedule another project in the flow that needs to copy the artifact to generate a report 2. I can copy the generated report back to the build flow project to aggregate with other artifacts Currently I have: ... def archiver = new ArtifactArchiver(fileName) def launcher = new LocalLauncher(new StreamTaskListener(out)) def listener = new StreamBuildListener(out) archiver.peform(build, build.workspace, launcher, listener) ... But this causes: groovy.lang.MissingMethodException: No signature of method: hudson.tasks.ArtifactArchiver.peform() is applicable for argument types: (com.cloudbees.plugins.flow.FlowRun, hudson.FilePath, hudson.Launcher$LocalLauncher, hudson.model.StreamBuildListener) Possible solutions: perform(hudson.model.Run, hudson.FilePath, hudson.Launcher, hudson.model.TaskListener) I can't understand why this exception is being thrown since: - FlowRun is an indirect subclass of Run - LocalLauncher is a direct subclass of Launcher - TaskListener interface is indirectly implemented by StreamBuildListener Any help would be appreciated. I'm also open to other build patterns to accomplish the same goal. Thanks, Stuart -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
