[JIRA] (JENKINS-59132) Perforce Workspace spec file root skipped

5 views
Skip to first unread message

alena.volarevic@rockstargames.com (JIRA)

unread,
Aug 28, 2019, 4:32:02 PM8/28/19
to jenkinsc...@googlegroups.com
Alena Volarevic created an issue
 
Jenkins / Bug JENKINS-59132
Perforce Workspace spec file root skipped
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 2019-08-28 20:31
Labels: p4plugin p4 workspace workspace-root
Priority: Minor Minor
Reporter: Alena Volarevic

I have a drive letter (lets say D) that is being used as a root for all the perforce workspaces that we have on our system. 

I am trying to use the p4 plugin in Jenkins to sync the code before running the unittest or running any script, and no matter what kind of workspace behavior I use (besides the Static one), It is always syncing the code to the {Jenkins workspace}/{JOB_NAME} and I would like to keep it on the D drive as all the perforce workspaces we have are set right now like that.

I managed to get this with the Static workspace behavior, but in that case I have to remote to the slave machines to create the workspace by hand and then use it, which then defeats the purpose of Jenkins... 
I tried using the Spec workspace behavior, cause I though if I specify the root in that file, the perforce workspace should use that folder as a root, but whenever it starts the sync part, it again syncs to the jenkins workspace location and sets the workspace root to use that location for root... 

It woudl be really nice if we can control where do we want the root to be, if we want to copy the files to the new jenkins workspace or use the root folder that we already had setup before implementing Jenkins.

If I'm missing something I apologize for creating this ticket.

I am using

Jenkins ver 2.190

P4 Plugin 1.10.3

Thanks.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

j.f.brown@sbcglobal.net (JIRA)

unread,
Aug 28, 2019, 8:14:02 PM8/28/19
to jenkinsc...@googlegroups.com
Joel Brown commented on Bug JENKINS-59132
 
Re: Perforce Workspace spec file root skipped

Check out jenkins.model.Jenkins.workspacesDir - e.g., start your jenkins (including slaves) with -Djenkins.model.Jenkins.workspacesDir=d:\${ITEM_FULL_NAME}

Note the comments for this property:   https://wiki.jenkins.io/display/JENKINS/Features+controlled+by+system+properties

If you do a plain "d:\" then make sure all the workspace View field, right-hand sides, don't overlap.

Otherwise you can use a Perforce form-in client trigger to alter the root.  Just make sure you only change the root for jenkins clients.

kwirth@perforce.com (JIRA)

unread,
Aug 29, 2019, 3:39:02 AM8/29/19
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
 
Change By: Karl Wirth
Labels: P4_SUPPORT p4 p4plugin workspace workspace-root
Reply all
Reply to author
Forward
0 new messages