Quantcast

[JIRA] (JENKINS-14125) The workspace parameter passed to perforce-plugin have problem with "/" at the begining

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14125) The workspace parameter passed to perforce-plugin have problem with "/" at the begining

JIRA noreply@jenkins-ci.org
Issue Type: Bug Bug
Assignee: Unassigned
Components: perforce
Created: 16/Jun/12 6:02 AM
Description:

2. The 2nd problem I guess is related to the perforce plugin itself.
It is a PATH problem when assigning PATH to p4 plugin.
I have found a workaround of the 1st problem by replacing "Z:\" into "
disk_name" like
Jenkins-Job->Configuration
\\NAS\PC12010025\workspace

After this replacement my Jenkins could mkdir correctly on PC 'B',
but still have problem when passing this parameter to perforce-plugin.
The string will be converted as "\NAS\PC12010025\workspace" which is not correct when p4.exe sync source code on windows system.
Whether you configured the string like "\\\\NAS\PC12010025\workspace" or "////NAS/PC12010025/workspace", it will finally converted as "\NAS\PC12010025\workspace.

The build log is as follows.
-----------------------------------------------------------------------
Building in workspace \\NAS\PC12010025\workspace
Using master perforce client: ws_macpaul.lin_PC12010025
[workspace] $ "C:\Program Files\Perforce\p4.exe" workspace -o ws_macpaul.lin_PC12010025
Changing P4 Client Root to: \NAS\PC12010025\workspace
Saving modified client ws_macpaul.lin_PC12010025
[workspace] $ "C:\Program Files\Perforce\p4.exe" -s client -i
Last build changeset: 869378
[workspace] $ "C:\Program Files\Perforce\p4.exe" changes -s submitted -m 1 //...
[workspace] $ "C:\Program Files\Perforce\p4.exe" -s changes -s submitted //ws_macpaul.lin_PC12010025/...@869379,@869583
Sync'ing workspace to changelist 869583.
[workspace] $ "C:\Program Files\Perforce\p4.exe" -s sync //ws_macpaul.lin_PC12010025/...@869583

The p4.exe will hang and do nothing, no source code will be checked out. I can only stop p4.exe via task manager to stop it running but didn't do any thing.
Please help to fix the Client Root from incorrect "\NAS\PC12010025\workspace" to "\\NAS\PC12020025\workspace".

Due Date: 22/Jun/12 12:00 AM
Environment: Jenkins server with perforce-plugin: Windows XP SP3
workspace: remote disk on Linux/BSD
Project: Jenkins
Labels: windows perforce path linux workspace remote-disk
Priority: Major Major
Reporter: Macpaul Lin
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14125) The workspace parameter passed to perforce-plugin have problem with "/" at the begining

JIRA noreply@jenkins-ci.org
Change By: Macpaul Lin (16/Jun/12 6:04 AM)
Assignee: Rob Petti
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14125) The workspace parameter passed to perforce-plugin have problem with "/" at the begining

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org
Change By: SCM/JIRA link daemon (23/Jul/12 6:51 PM)
Status: Open Resolved
Resolution: Fixed
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

[JIRA] (JENKINS-14125) The workspace parameter passed to perforce-plugin have problem with "/" at the begining

JIRA noreply@jenkins-ci.org
In reply to this post by JIRA noreply@jenkins-ci.org

Code changed in jenkins
User: Rob Petti
Path:
src/main/java/hudson/plugins/perforce/PerforceSCM.java
http://jenkins-ci.org/commit/perforce-plugin/e7d5a1d082335daf6056227e369969aa4c65db90
Log:
[FIXED JENKINS-14125] removed code that was messing up remote workspace paths

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Loading...