Jenkins Setup: Unable to setup workspace: java.lang.NullPointerException





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I'm trying to setup jenkins in my local machine where perforce is also installed. I wanted to build my UE4 project in jenkins.



I created a user called Jenkins in perforce and gave jenkins the username following this



https://patricevignola.com/post/automation-jenkins-unreal



But when i try to build I'm getting this console output and it says "Unable to setup workspace" but the build shows success.




19:31:52 Started by user Jenkins
19:31:52 Building in workspace C:Program Files (x86)JenkinsworkspaceAbhimanyu
19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
19:31:52 p4 client -o jenkins-master-Abhimanyu-1
19:31:52

19:31:52 (p4):stop:3
19:31:52 (p4):cmd:... p4 info
19:31:52 p4 info
19:31:52

19:31:52 (p4):stop:4
19:31:52 (p4):cmd:... p4 info
19:31:52 p4 info
19:31:52

19:31:52 (p4):stop:5
19:31:52 (p4):cmd:... p4 client -i
19:31:52 p4 client -i
19:31:52

19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
19:31:52

19:31:52 (p4):stop:6
19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
19:31:52 (p4):cmd:... p4 counter change
19:31:52 p4 counter change
19:31:52

19:31:52 (p4):stop:7
19:31:52 (p4):cmd:... p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
19:31:52 p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
19:31:52

19:31:52 (p4):stop:8
19:31:52 P4: no revisions under //jenkins-master-Abhimanyu-1/... using latest change: 21
19:31:52 (p4):cmd:... p4 repos -C
19:31:52 p4 repos -C
19:31:52

19:31:52 (p4):stop:9
19:31:52 Building on Node: master
19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
19:31:52 p4 client -o jenkins-master-Abhimanyu-1
19:31:52

19:31:52 (p4):stop:3
19:31:52 (p4):cmd:... p4 info
19:31:52 p4 info
19:31:52

19:31:52 (p4):stop:4
19:31:52 (p4):cmd:... p4 info
19:31:52 p4 info
19:31:52

19:31:52 (p4):stop:5
19:31:52 (p4):cmd:... p4 client -i
19:31:52 p4 client -i
19:31:52

19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
19:31:52

19:31:52 (p4):stop:6
19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
19:31:52

19:31:52 P4 Task: establishing connection.
19:31:52 ... server: localhost:1666
19:31:52 ... node: DESKTOP-DP775O3
19:31:52

19:31:52 P4 Task: reverting all pending and shelved revisions.
19:31:52 (p4):cmd:... p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
19:31:52 p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
19:31:52

19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - file(s) not opened on this client.
19:31:53

19:31:53 (p4):stop:7
19:31:53 ... rm [abandoned files]
19:31:53 duration: (12ms)
19:31:53

19:31:53 P4 Task: cleaning workspace to match have list.
19:31:53 (p4):cmd:... p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
19:31:53 p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
19:31:53

19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - no file(s) to reconcile.
19:31:53

19:31:53 (p4):stop:8
19:31:53 duration: (12ms)
19:31:53

19:31:53 P4 Task: syncing files at change: 21
19:31:53 (p4):cmd:... p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
19:31:53 p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
19:31:53

19:31:53 (p4):stop:9
19:31:53 duration: (11ms)
19:31:53

19:31:53 P4 Task: saving built changes.
19:31:53 Found last change 21 on syncID jenkins-NODE_NAME-Abhimanyu-EXECUTOR_NUMBER
19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
19:31:53 p4 client -o jenkins-master-Abhimanyu-1
19:31:53

19:31:53 (p4):stop:3
19:31:53 (p4):cmd:... p4 info
19:31:53 p4 info
19:31:53

19:31:53 (p4):stop:4
19:31:53 (p4):cmd:... p4 info
19:31:53 p4 info
19:31:53

19:31:53 (p4):stop:5
19:31:53 (p4):cmd:... p4 client -i
19:31:53 p4 client -i
19:31:53

19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
19:31:53

19:31:53 (p4):stop:6
19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
19:31:53 p4 client -o jenkins-master-Abhimanyu-1
19:31:53

19:31:53 (p4):stop:3
19:31:53 (p4):cmd:... p4 info
19:31:53 p4 info
19:31:53

19:31:53 (p4):stop:4
19:31:53 (p4):cmd:... p4 info
19:31:53 p4 info
19:31:53

19:31:53 (p4):stop:5
19:31:53 (p4):cmd:... p4 client -i
19:31:53 p4 client -i
19:31:53

19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
19:31:53

19:31:53 (p4):stop:6
19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
19:31:53 ... done
19:31:53

19:31:53 Finished: SUCCESS











share|improve this question





























    0















    I'm trying to setup jenkins in my local machine where perforce is also installed. I wanted to build my UE4 project in jenkins.



    I created a user called Jenkins in perforce and gave jenkins the username following this



    https://patricevignola.com/post/automation-jenkins-unreal



    But when i try to build I'm getting this console output and it says "Unable to setup workspace" but the build shows success.




    19:31:52 Started by user Jenkins
    19:31:52 Building in workspace C:Program Files (x86)JenkinsworkspaceAbhimanyu
    19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
    19:31:52 p4 client -o jenkins-master-Abhimanyu-1
    19:31:52

    19:31:52 (p4):stop:3
    19:31:52 (p4):cmd:... p4 info
    19:31:52 p4 info
    19:31:52

    19:31:52 (p4):stop:4
    19:31:52 (p4):cmd:... p4 info
    19:31:52 p4 info
    19:31:52

    19:31:52 (p4):stop:5
    19:31:52 (p4):cmd:... p4 client -i
    19:31:52 p4 client -i
    19:31:52

    19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
    19:31:52

    19:31:52 (p4):stop:6
    19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
    19:31:52 (p4):cmd:... p4 counter change
    19:31:52 p4 counter change
    19:31:52

    19:31:52 (p4):stop:7
    19:31:52 (p4):cmd:... p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
    19:31:52 p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
    19:31:52

    19:31:52 (p4):stop:8
    19:31:52 P4: no revisions under //jenkins-master-Abhimanyu-1/... using latest change: 21
    19:31:52 (p4):cmd:... p4 repos -C
    19:31:52 p4 repos -C
    19:31:52

    19:31:52 (p4):stop:9
    19:31:52 Building on Node: master
    19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
    19:31:52 p4 client -o jenkins-master-Abhimanyu-1
    19:31:52

    19:31:52 (p4):stop:3
    19:31:52 (p4):cmd:... p4 info
    19:31:52 p4 info
    19:31:52

    19:31:52 (p4):stop:4
    19:31:52 (p4):cmd:... p4 info
    19:31:52 p4 info
    19:31:52

    19:31:52 (p4):stop:5
    19:31:52 (p4):cmd:... p4 client -i
    19:31:52 p4 client -i
    19:31:52

    19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
    19:31:52

    19:31:52 (p4):stop:6
    19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
    19:31:52

    19:31:52 P4 Task: establishing connection.
    19:31:52 ... server: localhost:1666
    19:31:52 ... node: DESKTOP-DP775O3
    19:31:52

    19:31:52 P4 Task: reverting all pending and shelved revisions.
    19:31:52 (p4):cmd:... p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
    19:31:52 p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
    19:31:52

    19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - file(s) not opened on this client.
    19:31:53

    19:31:53 (p4):stop:7
    19:31:53 ... rm [abandoned files]
    19:31:53 duration: (12ms)
    19:31:53

    19:31:53 P4 Task: cleaning workspace to match have list.
    19:31:53 (p4):cmd:... p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
    19:31:53 p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
    19:31:53

    19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - no file(s) to reconcile.
    19:31:53

    19:31:53 (p4):stop:8
    19:31:53 duration: (12ms)
    19:31:53

    19:31:53 P4 Task: syncing files at change: 21
    19:31:53 (p4):cmd:... p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
    19:31:53 p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
    19:31:53

    19:31:53 (p4):stop:9
    19:31:53 duration: (11ms)
    19:31:53

    19:31:53 P4 Task: saving built changes.
    19:31:53 Found last change 21 on syncID jenkins-NODE_NAME-Abhimanyu-EXECUTOR_NUMBER
    19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
    19:31:53 p4 client -o jenkins-master-Abhimanyu-1
    19:31:53

    19:31:53 (p4):stop:3
    19:31:53 (p4):cmd:... p4 info
    19:31:53 p4 info
    19:31:53

    19:31:53 (p4):stop:4
    19:31:53 (p4):cmd:... p4 info
    19:31:53 p4 info
    19:31:53

    19:31:53 (p4):stop:5
    19:31:53 (p4):cmd:... p4 client -i
    19:31:53 p4 client -i
    19:31:53

    19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
    19:31:53

    19:31:53 (p4):stop:6
    19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
    19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
    19:31:53 p4 client -o jenkins-master-Abhimanyu-1
    19:31:53

    19:31:53 (p4):stop:3
    19:31:53 (p4):cmd:... p4 info
    19:31:53 p4 info
    19:31:53

    19:31:53 (p4):stop:4
    19:31:53 (p4):cmd:... p4 info
    19:31:53 p4 info
    19:31:53

    19:31:53 (p4):stop:5
    19:31:53 (p4):cmd:... p4 client -i
    19:31:53 p4 client -i
    19:31:53

    19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
    19:31:53

    19:31:53 (p4):stop:6
    19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
    19:31:53 ... done
    19:31:53

    19:31:53 Finished: SUCCESS











    share|improve this question

























      0












      0








      0








      I'm trying to setup jenkins in my local machine where perforce is also installed. I wanted to build my UE4 project in jenkins.



      I created a user called Jenkins in perforce and gave jenkins the username following this



      https://patricevignola.com/post/automation-jenkins-unreal



      But when i try to build I'm getting this console output and it says "Unable to setup workspace" but the build shows success.




      19:31:52 Started by user Jenkins
      19:31:52 Building in workspace C:Program Files (x86)JenkinsworkspaceAbhimanyu
      19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:52 p4 client -o jenkins-master-Abhimanyu-1
      19:31:52

      19:31:52 (p4):stop:3
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:4
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:5
      19:31:52 (p4):cmd:... p4 client -i
      19:31:52 p4 client -i
      19:31:52

      19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:52

      19:31:52 (p4):stop:6
      19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:52 (p4):cmd:... p4 counter change
      19:31:52 p4 counter change
      19:31:52

      19:31:52 (p4):stop:7
      19:31:52 (p4):cmd:... p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
      19:31:52 p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
      19:31:52

      19:31:52 (p4):stop:8
      19:31:52 P4: no revisions under //jenkins-master-Abhimanyu-1/... using latest change: 21
      19:31:52 (p4):cmd:... p4 repos -C
      19:31:52 p4 repos -C
      19:31:52

      19:31:52 (p4):stop:9
      19:31:52 Building on Node: master
      19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:52 p4 client -o jenkins-master-Abhimanyu-1
      19:31:52

      19:31:52 (p4):stop:3
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:4
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:5
      19:31:52 (p4):cmd:... p4 client -i
      19:31:52 p4 client -i
      19:31:52

      19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:52

      19:31:52 (p4):stop:6
      19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:52

      19:31:52 P4 Task: establishing connection.
      19:31:52 ... server: localhost:1666
      19:31:52 ... node: DESKTOP-DP775O3
      19:31:52

      19:31:52 P4 Task: reverting all pending and shelved revisions.
      19:31:52 (p4):cmd:... p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:52 p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:52

      19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - file(s) not opened on this client.
      19:31:53

      19:31:53 (p4):stop:7
      19:31:53 ... rm [abandoned files]
      19:31:53 duration: (12ms)
      19:31:53

      19:31:53 P4 Task: cleaning workspace to match have list.
      19:31:53 (p4):cmd:... p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:53 p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:53

      19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - no file(s) to reconcile.
      19:31:53

      19:31:53 (p4):stop:8
      19:31:53 duration: (12ms)
      19:31:53

      19:31:53 P4 Task: syncing files at change: 21
      19:31:53 (p4):cmd:... p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
      19:31:53 p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
      19:31:53

      19:31:53 (p4):stop:9
      19:31:53 duration: (11ms)
      19:31:53

      19:31:53 P4 Task: saving built changes.
      19:31:53 Found last change 21 on syncID jenkins-NODE_NAME-Abhimanyu-EXECUTOR_NUMBER
      19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:53 p4 client -o jenkins-master-Abhimanyu-1
      19:31:53

      19:31:53 (p4):stop:3
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:4
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:5
      19:31:53 (p4):cmd:... p4 client -i
      19:31:53 p4 client -i
      19:31:53

      19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:53

      19:31:53 (p4):stop:6
      19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:53 p4 client -o jenkins-master-Abhimanyu-1
      19:31:53

      19:31:53 (p4):stop:3
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:4
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:5
      19:31:53 (p4):cmd:... p4 client -i
      19:31:53 p4 client -i
      19:31:53

      19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:53

      19:31:53 (p4):stop:6
      19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:53 ... done
      19:31:53

      19:31:53 Finished: SUCCESS











      share|improve this question














      I'm trying to setup jenkins in my local machine where perforce is also installed. I wanted to build my UE4 project in jenkins.



      I created a user called Jenkins in perforce and gave jenkins the username following this



      https://patricevignola.com/post/automation-jenkins-unreal



      But when i try to build I'm getting this console output and it says "Unable to setup workspace" but the build shows success.




      19:31:52 Started by user Jenkins
      19:31:52 Building in workspace C:Program Files (x86)JenkinsworkspaceAbhimanyu
      19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:52 p4 client -o jenkins-master-Abhimanyu-1
      19:31:52

      19:31:52 (p4):stop:3
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:4
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:5
      19:31:52 (p4):cmd:... p4 client -i
      19:31:52 p4 client -i
      19:31:52

      19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:52

      19:31:52 (p4):stop:6
      19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:52 (p4):cmd:... p4 counter change
      19:31:52 p4 counter change
      19:31:52

      19:31:52 (p4):stop:7
      19:31:52 (p4):cmd:... p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
      19:31:52 p4 changes -m1 -ssubmitted //jenkins-master-Abhimanyu-1/...
      19:31:52

      19:31:52 (p4):stop:8
      19:31:52 P4: no revisions under //jenkins-master-Abhimanyu-1/... using latest change: 21
      19:31:52 (p4):cmd:... p4 repos -C
      19:31:52 p4 repos -C
      19:31:52

      19:31:52 (p4):stop:9
      19:31:52 Building on Node: master
      19:31:52 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:52 p4 client -o jenkins-master-Abhimanyu-1
      19:31:52

      19:31:52 (p4):stop:3
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:4
      19:31:52 (p4):cmd:... p4 info
      19:31:52 p4 info
      19:31:52

      19:31:52 (p4):stop:5
      19:31:52 (p4):cmd:... p4 client -i
      19:31:52 p4 client -i
      19:31:52

      19:31:52 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:52

      19:31:52 (p4):stop:6
      19:31:52 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:52

      19:31:52 P4 Task: establishing connection.
      19:31:52 ... server: localhost:1666
      19:31:52 ... node: DESKTOP-DP775O3
      19:31:52

      19:31:52 P4 Task: reverting all pending and shelved revisions.
      19:31:52 (p4):cmd:... p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:52 p4 revert C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:52

      19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - file(s) not opened on this client.
      19:31:53

      19:31:53 (p4):stop:7
      19:31:53 ... rm [abandoned files]
      19:31:53 duration: (12ms)
      19:31:53

      19:31:53 P4 Task: cleaning workspace to match have list.
      19:31:53 (p4):cmd:... p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:53 p4 reconcile -w -f C:Program Files (x86)JenkinsworkspaceAbhimanyu/...
      19:31:53

      19:31:53 C:Program Files (x86)JenkinsworkspaceAbhimanyu/... - no file(s) to reconcile.
      19:31:53

      19:31:53 (p4):stop:8
      19:31:53 duration: (12ms)
      19:31:53

      19:31:53 P4 Task: syncing files at change: 21
      19:31:53 (p4):cmd:... p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
      19:31:53 p4 sync -q C:Program Files (x86)JenkinsworkspaceAbhimanyu/...@21
      19:31:53

      19:31:53 (p4):stop:9
      19:31:53 duration: (11ms)
      19:31:53

      19:31:53 P4 Task: saving built changes.
      19:31:53 Found last change 21 on syncID jenkins-NODE_NAME-Abhimanyu-EXECUTOR_NUMBER
      19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:53 p4 client -o jenkins-master-Abhimanyu-1
      19:31:53

      19:31:53 (p4):stop:3
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:4
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:5
      19:31:53 (p4):cmd:... p4 client -i
      19:31:53 p4 client -i
      19:31:53

      19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:53

      19:31:53 (p4):stop:6
      19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:53 (p4):cmd:... p4 client -o jenkins-master-Abhimanyu-1
      19:31:53 p4 client -o jenkins-master-Abhimanyu-1
      19:31:53

      19:31:53 (p4):stop:3
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:4
      19:31:53 (p4):cmd:... p4 info
      19:31:53 p4 info
      19:31:53

      19:31:53 (p4):stop:5
      19:31:53 (p4):cmd:... p4 client -i
      19:31:53 p4 client -i
      19:31:53

      19:31:53 Client jenkins-master-Abhimanyu-1 not changed.
      19:31:53

      19:31:53 (p4):stop:6
      19:31:53 P4: Unable to setup workspace: java.lang.NullPointerException
      19:31:53 ... done
      19:31:53

      19:31:53 Finished: SUCCESS








      jenkins build perforce unreal-engine4






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '18 at 17:38









      Plato ManchiPlato Manchi

      195




      195
























          1 Answer
          1






          active

          oldest

          votes


















          3














          I got the same issue. The NPE itself seems to be fixed with this: https://swarm.workshop.perforce.com/changes/24968 -> client/ClientHelper.java#121 line: 170



          NPE happens when no "View Mappings" are defined, so you need to have at least one entry for "View Mappings" - example:




          1. Go to "Configure" of your Jenkins project


          2. Go to




            Source Code Management -> Perforce Software -> Workspace behaviour -> View Mappings





          3. Enter your perforce clients' view mapping like:



            //org/my/project/... //MyPerforceWorkspaceName_123/org/my/project



          Have fun!






          share|improve this answer


























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53486351%2fjenkins-setup-unable-to-setup-workspace-java-lang-nullpointerexception%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














            I got the same issue. The NPE itself seems to be fixed with this: https://swarm.workshop.perforce.com/changes/24968 -> client/ClientHelper.java#121 line: 170



            NPE happens when no "View Mappings" are defined, so you need to have at least one entry for "View Mappings" - example:




            1. Go to "Configure" of your Jenkins project


            2. Go to




              Source Code Management -> Perforce Software -> Workspace behaviour -> View Mappings





            3. Enter your perforce clients' view mapping like:



              //org/my/project/... //MyPerforceWorkspaceName_123/org/my/project



            Have fun!






            share|improve this answer






























              3














              I got the same issue. The NPE itself seems to be fixed with this: https://swarm.workshop.perforce.com/changes/24968 -> client/ClientHelper.java#121 line: 170



              NPE happens when no "View Mappings" are defined, so you need to have at least one entry for "View Mappings" - example:




              1. Go to "Configure" of your Jenkins project


              2. Go to




                Source Code Management -> Perforce Software -> Workspace behaviour -> View Mappings





              3. Enter your perforce clients' view mapping like:



                //org/my/project/... //MyPerforceWorkspaceName_123/org/my/project



              Have fun!






              share|improve this answer




























                3












                3








                3







                I got the same issue. The NPE itself seems to be fixed with this: https://swarm.workshop.perforce.com/changes/24968 -> client/ClientHelper.java#121 line: 170



                NPE happens when no "View Mappings" are defined, so you need to have at least one entry for "View Mappings" - example:




                1. Go to "Configure" of your Jenkins project


                2. Go to




                  Source Code Management -> Perforce Software -> Workspace behaviour -> View Mappings





                3. Enter your perforce clients' view mapping like:



                  //org/my/project/... //MyPerforceWorkspaceName_123/org/my/project



                Have fun!






                share|improve this answer















                I got the same issue. The NPE itself seems to be fixed with this: https://swarm.workshop.perforce.com/changes/24968 -> client/ClientHelper.java#121 line: 170



                NPE happens when no "View Mappings" are defined, so you need to have at least one entry for "View Mappings" - example:




                1. Go to "Configure" of your Jenkins project


                2. Go to




                  Source Code Management -> Perforce Software -> Workspace behaviour -> View Mappings





                3. Enter your perforce clients' view mapping like:



                  //org/my/project/... //MyPerforceWorkspaceName_123/org/my/project



                Have fun!







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 27 '18 at 16:12









                zx485

                15.3k133248




                15.3k133248










                answered Dec 27 '18 at 15:54









                Dimitar TenevDimitar Tenev

                462




                462
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53486351%2fjenkins-setup-unable-to-setup-workspace-java-lang-nullpointerexception%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wiesbaden

                    Marschland

                    Dieringhausen