I still see the warning below in all of my Jenkins slave log:
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Environment:
Ubuntu 16.04
Jenkins vers: 2.138.4
EnvInject 2.1.6
EnvInject API 1.5
Jenkins slave connection log snippet:
[12/21/18 15:44:08] [SSH] Checking java version of /home/devops/jenkins_robot_slave/jdk/bin/java
Couldn't figure out the Java version of /home/devops/jenkins_robot_slave/jdk/bin/java
bash: /home/devops/jenkins_robot_slave/jdk/bin/java: No such file or directory
[12/21/18 15:44:08] [SSH] Checking java version of java
[12/21/18 15:44:08] [SSH] java -version returned 1.8.0_162.
[12/21/18 15:44:08] [SSH] Starting sftp client.
[12/21/18 15:44:08] [SSH] Copying latest remoting.jar...
[12/21/18 15:44:08] [SSH] Copied 776,265 bytes. Expanded the channel window size to 4MB
[12/21/18 15:44:08] [SSH] Starting agent process: cd "/home/devops/jenkins_robot_slave" && java -jar remoting.jar -workDir /home/devops/jenkins_robot_slave
Dec 21, 2018 3:44:09 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
INFO: Using /home/devops/jenkins_robot_slave/remoting as a remoting work directory
Both error and output logs will be printed to /home/devops/jenkins_robot_slave/remoting
<===[JENKINS REMOTING CAPACITY]===>channel started
Remoting version: 3.25
This is a Unix agent
Evacuated stdout
Dec 21, 2018 3:44:18 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see:
https://jenkins.io/redirect/serialization-of-anonymous-classes/
Agent successfully connected and online
https://github.com/jenkinsci/envinject-plugin/pull/131