In earlier versions of P4-Plugin you could get away without specifying a stream view when defining a manual workspace for a stream. For example:
Since 1.9.4 was released this will cause a java.lang.NullPointerException error during polling. For example:
Perforce Software Polling LogStarted on Nov 14, 2018 3:15:07 PM
P4: Polling on: master with:jenkins-master-BadStreamFreestyle-0
Found last change 3 on syncID jenkins-NODE_NAME-BadStreamFreestyle-EXECUTOR_NUMBER
... p4 client -o jenkins-master-BadStreamFreestyle-0 +... p4 info +... p4 info +... p4 client -i +P4: Unable to setup workspace: java.lang.NullPointerException
P4 Task: establishing connection.
... server: 10.1.3.138:1666
... node: vm-test-181-xenial
P4: Polling with range: 3,now
... p4 changes -m20 //jenkins-master-BadStreamFreestyle-0/...@3,now +... p4 repos -C +Done. Took 20 ms
No changes
If you specify the workspace view or use the 'Streams' option on 'Workspace behavior' it will work OK.
Reproduction steps:
- Install P4-Plugin 1.9.4
- Create a new Freestyle job, choose 'Manual' for 'Workspace behavior' and set it up to poll every minute ('* * * * *').
- Manually run the job.
- Wait 60 seconds.
- Check the software polling log for errors.