Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54628

Poll error when no view in Manual workspace for stream

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • p4-plugin
    • Jenkins 2.107.3
      P4Plugin 1.9.4

      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:

      1. Install P4-Plugin 1.9.4
      2. Create a new Freestyle job, choose 'Manual' for 'Workspace behavior' and set it up to poll every minute ('* * * * *').
      3. Manually run the job.
      4. Wait 60 seconds.
      5. Check the software polling log for errors.

       

       

       

            cbopardikar Charusheela Bopardikar
            p4karl Karl Wirth
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: