[ http://jira.codehaus.org/browse/SCM-114?page=comments#action_53418 ] 

Neil Padgen commented on SCM-114:
---------------------------------

We wouldn't be able to use the last directory in the SCM URL, as we use that 
last directory for branches; e.g. //depot/project1/MAIN and 
//depot/project1/RELEASE.  The RELEASE branch is derived from the MAIN branch, 
so each contains its own project.xml.  Using the last directory, we'd need lots 
of clients called MAIN-${hostname}-mavenscm - obviously that wouldn't work for 
us.

If you can identify that the scm plugin is being called from Continuum, you 
could maybe adopt Wim's suggestion and call it something like

continuum-${basename_of_working_directory}-${hostname}-${user}-${project}

which would produce something like continuum-16-buildhost-user-foobar for 
Mike's example, or continuum-16-buildhost-user-MAIN for us - which would be 
fine, as the number "16" would be unique per project within Continuum.



> Clientspec naming
> -----------------
>
>          Key: SCM-114
>          URL: http://jira.codehaus.org/browse/SCM-114
>      Project: Maven SCM
>         Type: Improvement

>   Components: maven-scm-provider-perforce
>     Versions: 1.0-beta-3
>     Reporter: mike perham
>      Fix For: 1.0-beta-3

>
>
> Several people have expressed more than a passing interest in how the 
> Perforce clientspec is named by Maven SCM.  The name needs to be 
> autogenerated and unique for each Continuum project build.  Currently I am 
> thinking something like:
> ${project}-${user}-${hostname}-mavenscm
> Emmannuel, does the SCM subsystem have access to the name of the project 
> being built?  If not, I can just use the name of the last directory in the 
> SCM URL for the name of the project: //depot/projects/foobar would mean that 
> ${project} = foobar.
> And just head off the inevitable question: you cannot set P4CLIENT for this 
> because Continuum may build several different projects and they each need a 
> unique clientspec.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to