jfrog / jenkins-jfrog-plugin

Easy integration between Jenkins and the JFrog Platform.
https://github.com/jfrog/jenkins-jfrog-plugin
Apache License 2.0
39 stars 17 forks source link

Jenkins complains about serialization of an anonymous inner class #76

Closed enaess closed 10 months ago

enaess commented 11 months ago

Describe the bug

When using the toolkit { jfrog "jfrog-cli" } on stage that are executed on a different host acting as a jenkins-agent (a Linux host using remoting.jar via SSH), we are seeing the following warning in the for that node on Jenkins (2.401.3).

WARNING: Attempt to (de-)serialize anonymous class io.jenkins.plugins.jfrog.BinaryInstaller$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

Current behavior

Logs a warning about use of an anonymous inner class. Not sure what that actually means and if it breaks anything. But one should have a look and figure of if this will cause a problem. Shouldn't be too hard refactoring the code such that it will function properly.

Reproduction steps

Setup Jenkins, create a new pipeline that executes the stage on a different host.

Expected behavior

Should not see this message.

JFrog plugin version

1.4.0

JFrog CLI version

2.44.0

Operating system type and version

Linux

JFrog Artifactory version

-

JFrog Xray version

-

yahavi commented 10 months ago

@enaess Thanks for reporting this issue. We fixed it by https://github.com/jfrog/jenkins-jfrog-plugin/pull/81 in the latest release - 1.5.0. Feel free to upgrade - we'd appreciate your feedback on that.