[JIRA] (JENKINS-62123) P4 Plugin should allow checkout to subdirectory

12 views
Skip to first unread message

ddawson@perforce.com (JIRA)

unread,
Apr 30, 2020, 9:27:02 AM4/30/20
to jenkinsc...@googlegroups.com
Dan Dawson created an issue
 
Jenkins / New Feature JENKINS-62123
P4 Plugin should allow checkout to subdirectory
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: p4-plugin
Created: 2020-04-30 13:26
Labels: P4_VERIFY P4_SUPPORT
Priority: Minor Minor
Reporter: Dan Dawson

In the P4Jenkins plugin, please add the functionality to "checkout to subdirectory" when defining either "Stream" or "View Mappings". 

Customer would like to have the functionality to define a stream, and also have this stream checkout into a sub directory in the Jenkins workspace without having to fill in the "View Mappings" from a client spec by hand, with the directory present. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

kwirth@perforce.com (JIRA)

unread,
Apr 30, 2020, 10:09:03 AM4/30/20
to jenkinsc...@googlegroups.com
Karl Wirth commented on New Feature JENKINS-62123
 
Re: P4 Plugin should allow checkout to subdirectory

Hi Dan Dawson

I think I'm going to link this request to JENKINS-47005 if that's acceptable.

Are you using Freestyle or pipeline jobs? In pipeline you can use the 'ws' directive as  workaround. For example the following sets the root directory for the command in brackets to '/var/lib/jenkins/XXXXX/KarlTest':

pipeline {
  agent { label 'master' }
  stages {
    stage("SyncMyWorkspace") {
      steps {
         ws('/var/lib/jenkins/XXXXX/KarlTest/') {
    p4sync charset: 'none', credential: 'JenkinsMasterAdminUser', format: 'jenkins-${NODE_NAME}-${JOB_NAME}', populate: autoClean(delete: true, modtime: false, parallel: [enable: false, minbytes: '1024', minfiles: '1', threads: '4'], pin: '', quiet: true, replace: true, tidy: false), source: depotSource('//depot/test/...')
           }
      }
    }
  }
}

 

 

ddawson@perforce.com (JIRA)

unread,
Apr 30, 2020, 11:03:05 AM4/30/20
to jenkinsc...@googlegroups.com

Hi Karl,

This ticket was tested with a 'Freestyle' job, as with the customer's setup. 

Linking it to that ticket sounds good to me. 

Thanks!

ddawson@perforce.com (JIRA)

unread,
Apr 30, 2020, 11:04:05 AM4/30/20
to jenkinsc...@googlegroups.com
Dan Dawson edited a comment on New Feature JENKINS-62123
Hi Karl [~p4karl] ,


This ticket was tested with a 'Freestyle' job, as with the customer's setup. 

Linking it to that ticket sounds good to me. 

Thanks!

kwirth@perforce.com (JIRA)

unread,
Apr 30, 2020, 12:20:02 PM4/30/20
to jenkinsc...@googlegroups.com

kwirth@perforce.com (JIRA)

unread,
Apr 30, 2020, 12:20:03 PM4/30/20
to jenkinsc...@googlegroups.com
Karl Wirth updated an issue
 
Change By: Karl Wirth
Labels: P4_SUPPORT P4_VERIFY
Reply all
Reply to author
Forward
0 new messages