I have "Let Jenkins Create Workspace" enabled, but "Let Jenkins Manage Workspace View" disabled.
Our script is updating the viewspec through directly executing the p4 command line calls to update the viewspec on the Perforce server.
We've been using the plugin for some time now, and I was always manually creating the workspaces in Perforce to get things started. I just recently enabled "Let Jenkins Create Workspace" to not have to do that part by hand, but I still wanted to be able to manage the viewspec from our script, so I left the "Let Jenkins Manage Workspace View" configuration disabled.
I know that the underlying "p4 client" command to create a workspace depends on a view spec, so I see the problem here.
I am planning to work around this, by having the initial value of the viewspec be some simple valid viewspec that will work initially, but immediately be over written when our script edits the workspace.