The P4 Plugin does not inject the P4_ROOT environment variable. It is nice to have access to this, as often the p4 sync location can be different from the current workspace.
I have a merge request incoming for this.
EDIT: Pull request created at https://github.com/jenkinsci/p4-plugin/pull/77
- links to