When attempting to p4 sync a workspace on a slave, the following error is displayed in the job's console log:
Started by user anonymous
Building remotely on chuck-sles10x64 in workspace /space/jenkins/workspace/test-project
P4: Unable to connect: com.perforce.p4java.exception.ConnectionException: Error occurred during the SSL handshake: invalid SSL session
P4: Unable to use Workspace: java.lang.NullPointerException
P4: Unable to close Perforce connection: java.lang.NullPointerException
ERROR: Unable to update workspace: java.lang.NullPointerException
Finished: FAILURE
The same project works fine when executed on the master.
Environment:
master and slave are Linux with NIS
Jenkins is running as NIS user with shared home directory containing valid .p4trust file
Reproduce:
1) fresh Jenkins setup on master
2) add P4 plugin
3) add P4 user/pass cred
4) add SSH user/pass cred
5) add slave node
6) create a maven project to P4 sync a workspace and build it, limit it to the master
7) start a build and confirm it passes
8) update project and limit it to the slave
9) start another build and confirm it fails
I have also tried this with local accounts and $HOME/.p4trust files on the master and slave, but get the same results.
Not a bug. JRE on slave was missing the unlimited strength JCE policy files.