perforce - Jenkins's home directory -


my jenkins installed on default location: /var/lib/jenkins. every time builds, changes root directory of workspace (on local machine /home/john/p4) /var/lib/jenkins/..., shouldn't happen?

how specify root directory of client(workspace) build won't change location? should change $jenkins_home? if should change it, that's equavilent fact have re-install jenkins location want, because $jenkins_home supposed root directory jenkins files , builds.

what should correct behavior of jenkins , p4 client? also, have user starts builds in jenkins? jenkins user have linux user installs jenkins?

the p4-plugin jenkins requires it's own perforce workspace , set perforce workspace root match jenkins workspace root.

let jenkins create new perforce workspace (use name not exist, prefix jenkins-). if want dynamic use name like:

jenkins-${node_name}-${job_name} 

...as ${node_name} , ${job_name} expand.

next define view mapping (or streams path) specify location of files in perforce , how want them appear in workspace. e.g.:

view:

//depot/myproj/main/... //jenkins-${node_name}-${job_name}/... 

as user connects perforce, defined in perforce credentials, files sync'ed jenkins master (or slave if have build farm) use uid/gid of jenkins service.

you can find documentation p4-plugin here.


Comments