 | New homepage The plug-in is being maintained by its owner/maintainers from a new home. The plug-in is still compatible with Hudson, however, the entry points for documentation and issue reporting have been combined in order to provide a single point of entry. |
Integrates Hudson with Perforce SCM Repositories.
Plugin Information
Comments (82)
Oct 25, 2007
Anonymous says:
Nice! Have been waiting for Perforce support.Nice! Have been waiting for Perforce support.
Feb 18, 2008
Anonymous says:
Nice plugin. Unfortunately this plugin (v1.0.10) can not check out from a label ...Nice plugin. Unfortunately this plugin (v1.0.10) can not check out from a label yet, see https://hudson.dev.java.net/servlets/BrowseList?list=dev&by=thread&from=976444
Apr 22, 2008
Mike Wille says:
Version 1.0.11 now supports this.Version 1.0.11 now supports this.
Feb 27, 2008
Felipe Leme says:
In my environment, when a file is deleted Hudson does not detect it. It might be...In my environment, when a file is deleted Hudson does not detect it. It might be a Perforce configuration issue, but thanks to Hudson's flexibility, I could provide a quick workaround by enabling the "Shell script" option and adding the following command:
p4 sync "$PWD/..."
(sure, it's a Unix-only trick, but I don't even consider running CI on Winblows
Apr 22, 2008
Mike Wille says:
The Perforce plugin for Hudson interacts directly with the P4 client so there sh...The Perforce plugin for Hudson interacts directly with the P4 client so there should be no need to run this command. I wonder if the workspace is being used in multiple projects? It might be thinking the file was already removed when executed from the other project. Though it sounds like you are fine with it, this can be fixed if you wish to pursue it.
Feb 28, 2008
Anonymous says:
Hi, Trying to use this plugin with our version of perforce (2003.2 56323), but ...Hi,
Trying to use this plugin with our version of perforce (2003.2 56323), but am getting these error:Caught Exception communicating with perforce. Error in client specification. Error detected at line 7. Null directory (//) not allowed in '///...'.
For Command: p4 -s client -i
With Data:
===================
Client:
Description:
Root: C:\Development\XP\CI\Hudson\jobs\Framework\workspace\
Options:
LineEnd:
View:
//depot/Framework/current/... ///...
Why isnt there a clientspec name in the view definition?
Thanks
Mike
Apr 22, 2008
Mike Wille says:
This looks to be the same problem described here: https://hudson.dev.java.net/i...This looks to be the same problem described here:
https://hudson.dev.java.net/issues/show_bug.cgi?id=1070
I believe that 2003.x and earlier servers do something different that the Perforce library does not support. Unfortunately, the oldest version of Perforce I can get my hands on is 2005. So I can't even reproduce the problem.
Jul 21, 2008
Danny Aden says:
I have run into a similar issue, with a different error message running P4 serve...I have run into a similar issue, with a different error message running P4 server version (Server 2006.1/109255.).
I assumed this error meant that the client needed the environment variable P4CHARSET=utf8, but I have tried setting this in the environment variables with no luck and didn't see a way to specify it through the plugin. I noticed that the client workspace appears to be null as the plugin tries to set the client view to ///... so it seems like this might be related.
Here is the error from the logs:
======
[workspace] $ p4 workspace -o bld-blbaker-a7-blaze-windows-continuous-hudson
Changing P4 Client Root to: c:\tomcat6\webapps\hudson\jobs\blaze-continuous\workspace\
Changing P4 Client View to: //blaze/trunk/... ///...
[workspace] $ p4 -s client -i
Caught Exception communicating with perforce. Unicode server permits only unicode enabled clients.
======
Any ideas of what I am doing wrong? I tried running "p4 -u bld -s client" from a comand prompt and it seems to work fine (-u bld is because I am running as a different p4 user than the user logged into the build box).
Thanks,
~D
Apr 18, 2008
Bila Nagirner says:
Hello, When building on a slave machine our code is being checked out on ...Hello,
When building on a slave machine our code is being checked out on the master machine. Is there anyway to get it to checkout to the slave machine?
Thanks,
Bila
Apr 22, 2008
Mike Wille says:
Not yet, unfortunately. See this issue for updates: https://hudson.dev.java.ne...Not yet, unfortunately. See this issue for updates:
https://hudson.dev.java.net/issues/show_bug.cgi?id=1163
Nov 06, 2008
LeoT says:
Hi, Is it possible to name a build by latest change list number ? Is it possib...Hi,
Is it possible to name a build by latest change list number ?
Is it possible to add change list number to notification emails ?
Jan 16, 2009
mm says:
Hi. hudson : ver1.270 p4.exe P4/NTX86/2007.3/143793 (2008/01/21). perforc...Hi.
hudson : ver1.270
p4.exe P4/NTX86/2007.3/143793 (2008/01/21).
perforce_plugin :1.0.12
When I tried to label a build , I get the following exception:
--
java.io.IOException: Failed to issue perforce label. Error in label specification. Error detected at line 5. Unknown field name 'Revision'.
For Command: p4 -s label -i
With Data:
===================
Label: hoge-Build-57
Owner:
Description:
Changelist: 106
Revision: 106
Options:
View:
//depot/...
Feb 04, 2011
Rajesh Kumar says:
Hi, I am facing same issues. Do we have any work around for this??? _Labelling...Hi,
I am facing same issues. Do we have any work around for this???
_Labelling Build in Perforce using $
-$
_
[workspace] $ /opt/perforce/bin/p4 -s label -i
Failed to issue perforce label. Error in label specification. Error detected at line 5. Unknown field name 'Revision'.
For Command: /opt/perforce/bin/p4 -s label -i
With Data:
===================
Label: Hddddddddd-dd
Owner:
Description:
Label automatically generated by Hudson Perforce Plugin.
Revision: @164885
Options:
View:
//edddddd/XXXXXXX/...
Feb 23, 2009
Christian Presslmayr says:
Hi! I was looking for a fix of an issue in Perforce plugin, and I found out...Hi!
I was looking for a fix of an issue in Perforce plugin, and I found out, that it has already been fixed in the source code, but it has NOT yet been published in a stable build. Please see my comment in issue #1100 (https://hudson.dev.java.net/issues/show_bug.cgi?id=1100). Further, I'm interested in getting the fix for issue #1745 (https://hudson.dev.java.net/issues/show_bug.cgi?id=1745), because I encountered the same problem.
I am looking very much forward to a new stable build of the Perforce plugin - when will it be released?
Or how can I access a snapshot-version (talking in Maven dialect) of the Perforce plugin?
Thanks for your help,
Chris
Apr 08, 2009
Brett Cashman says:
The 1.0.13 release no longer appears to honor the Let Hudson Manage Workspace Vi...The 1.0.13 release no longer appears to honor the Let Hudson Manage Workspace View flag; Hudson always tries to manage the workspace view, even when the flag is deliberately unset, and as a result it can't cope with the Depot Path set to //... . Had to revert to 1.0.12 of the plugin after this generated a series of build failures.
May 12, 2009
David Saff says:
I'm having the same problem, Brett. Did you log a bug I can vote on? &nbs...I'm having the same problem, Brett. Did you log a bug I can vote on?
David Saff
May 21, 2009
Brett Cashman says:
David, didn't, sorry. But if you log one, I'll vote for it.David, didn't, sorry. But if you log one, I'll vote for it.
Jun 04, 2009
Dietmar Steinberger says:
I installed the Trac Plugin and wanted to set "Trac" for the "Repository browser...I installed the Trac Plugin and wanted to set "Trac" for the "Repository browser" setting in the Source Code Management section for Perforce but it is not available (it is available for the SVN SCM)
How can Trac be added there (P4Web and FishEye are available) or has it to be implemented which would be nice if you could do
Jul 23, 2009
chirag dave says:
Hi! All, I'm trying to use perforce plugin for setting up my contineous bui...Hi! All,
I'm trying to use perforce plugin for setting up my contineous build environment.
The worst part here is i am not getting any error from perforce plugin so that i can debug that where am i going wrong in configuring environment.
I am following steps described in this tutorial.
whenever it invokes perforce plugin logs shows up onlyStarted on Jul 23, 2009 2:23:37 PM
Looking for changes...
Using master perforce client: chirag.dave_hudson
[workspace] $ p4 workspace -o chirag.dave_hudson
and hangs up.
I am using hudson 1.314
and perforce :- 1.0.14
Perforce client version - 2008.1/158777
Here is the configuration data that i have been trying.
[perforce_plugin_err.bmp]
Any help will be appreciated.
Thanks,
Dave.
Aug 06, 2009
Chris Hilton says:
It looks like your view specification is incomplete. Click on the question mark ...It looks like your view specification is incomplete. Click on the question mark to the right and you'll see that your view should include depot and workspace file specs.
Aug 06, 2009
Chris Hilton says:
On another note, I'm just getting started on Hudson and wonder how is the FishEy...On another note, I'm just getting started on Hudson and wonder how is the FishEye integration supposed to work? My project has a view like this:
And I've defined the FishEye URL as "http://devtools2-v.austx.zilliant.com/browse/Zilliant_Perforce/", the top of the Perforce depot which may or may not be correct (I'm mostly interested in being able to see files under the userbranch above). I do end up with hyperlinked files in the changes area, but a file like this:
ends up with a link like this:
Which doesn't work nor any URL that begins with depot after the server. The URL I might have expected Hudson to make that does work is:
So is this something wrong with my configuration or with the plugin?
Feb 01, 2011
Simon Cox says:
Did you ever resolve this? We're seeing a similar issue.Did you ever resolve this? We're seeing a similar issue.
Sep 16, 2009
adrian says:
Hi, Perforce is strongly being used in our build processes @ EA. I was able to c...Hi, Perforce is strongly being used in our build processes @ EA. I was able to configure the Perforce plugin in hudson but really need to be able to just sync a certain directory of the current workspace like in the Perforce front end. So multiple Hudson jobs would share a workspace but "filtering"it to just get a single unique directory.
Could that be handled by adding some options to the p4.exe called by the client? (wrapping the call with another script for instance). If not where I could place this request?
thanks
Oct 02, 2009
Nicholas Folts says:
I recently updated to Hudson 1.326 from 1.299... I also update to the latest per...I recently updated to Hudson 1.326 from 1.299... I also update to the latest perforce plugin, and now, although some projects work, others do not... In my catalina log I get the following error (over and over again):
com.thoughtworks.xstream.converters.reflection.NonExistentFieldException: No such field hudson.plugins.perforce.PerforceSCM.nodeSuffix
at com.thoughtworks.xstream.converters.reflection.FieldDictionary.field(FieldDictionary.java:106)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.getFieldType(PureJavaReflectionProvider.java:152)
at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:327)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:218)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at hudson.util.RobustReflectionConverter.unmarshallField(RobustReflectionConverter.java:262)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:222)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:173)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at hudson.util.XStream2.unmarshal(XStream2.java:67)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at hudson.XmlFile.read(XmlFile.java:126)
at hudson.model.Items.load(Items.java:106)
at hudson.model.Hudson$9.call(Hudson.java:1995)
at hudson.model.Hudson$9.call(Hudson.java:1988)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Oct 2, 2009 12:03:00 PM hudson.util.RobustReflectionConverter doUnmarshal
What do I need to do to make this work? Is there a newer version in the works?
Oct 05, 2009
Sri Bolle says:
Information is showing lot of success stories of Perforce integration with Hudso...Information is showing lot of success stories of Perforce integration with Hudson but I have issues while setting up as Master/Slave configuration. I am getting following exception:
[workspace] $ p4 workspace -o
Caught Exception communicating with perforce. Connect to server failed; check $P4PORTcom.tek42.perforce.PerforceException: Connect to server failed; check $P4PORT
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:324)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:699)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:295)
at hudson.model.AbstractProject.checkout(AbstractProject.java:973)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:400)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:349)
at hudson.model.Run.run(Run.java:1120)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
Oct 12, 2009
hanjun.ryu says:
I'd find critical defect using linux master with linux slave ( Ubuntu 9.04 64bit...I'd find critical defect using linux master with linux slave ( Ubuntu 9.04 64bit ).
Both of perforce version 1.0.13 & 1.0.14 has this problem when using perforce.hpi.
===========================================================================================================================
Using shared perforce client: (my_client_workspace_name)
Caught Exception communicating with perforce. No output for: p4 workspace -o (my_client_workspace_name) com.tek42.perforce.PerforceException: No output for: p4 workspace -o SE_SCM_TEST_USER_1
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:326)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:1417)
at hudson.plugins.perforce.PerforceSCM.getWorkspaceFull(PerforceSCM.java:397)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:343)
at hudson.model.AbstractProject.checkout(AbstractProject.java:978)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:421)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:370)
at hudson.model.Run.run(Run.java:1120)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
=========================
Oct 12, 2009
hanjun.ryu says:
....
Nov 10, 2009
Julian Haslinger says:
Hi! First of all, let me thank you for this nice plugin. However, there is...Hi!
First of all, let me thank you for this nice plugin.
However, there is one thing that doesn't work as expected: From time to time the plugin won't check out (e.g. get latest version) all the changed files in a directory.
There are, for example, two files that have been changed in the latest submitted changelist:
- file1.build
- file2.vbs
The perforce plugin, however, only detects the .build-file as being changed - the other file won't be checked out by the plugin at all!
What can I do? Can you give me some advice or maybe some hints?
Best Regards,
Julian
Feb 01, 2010
Bobbi Newman says:
Hi, We are seeing the same issue. In our case the file that won't update ...Hi,
We are seeing the same issue. In our case the file that won't update is pom.xml. A one-time force sync resolved the issue, but we are wondering about why it appears to be happening and what we can do to avoid it in the future.
Any information would be greatly appreciated!
Thanks,
Bobbi
Feb 16, 2010
Judith Bürgstein says:
In Mr. Haslinger's case the problem was wrong configuration. They used the same ...In Mr. Haslinger's case the problem was wrong configuration. They used the same clientspec for several jobs/hudson slaves. Maybe that's your problem too?
Regards,
Judith
Nov 20, 2009
Ben Tomasini says:
Hi, Thanks for this plugin. When I try to congiure it, I get this below t...Hi,
Thanks for this plugin. When I try to congiure it, I get this below the workspace name:
"Unable to check workspace against depot"
When I run the job, this repeats over and over. I have the depot working fine from my command line.
Using master perforce client: btomasini-ws-hudson
[workspace] $ p4 workspace -o btomasini-ws-hudson
Caught Exception communicating with perforce. Connect to server failed; check $P4PORTcom.tek42.perforce.PerforceException: Connect to server failed; check $P4PORT
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:324)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:649)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:260)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1005)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:431)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:378)
at hudson.model.Run.run(Run.java:1176)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:304)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:123)
Nov 24, 2009
Pip says:
I had the same issue, which was resolved by ensuring that perforce was in the sy...I had the same issue, which was resolved by ensuring that perforce was in the system path (ie you could run p4 from any command window - for some reason the P4 installer hadn't set this on my system) and ensuring that perforce had also set the P4PORT and P4CLIENT environment variables (ie ensure you have a default clientspec). Don't know which one it was. But Hudson no longer sits in an infinite p4 workspace -o loop for me.
Jan 11, 2010
Joris Geuens says:
I've installed the latest version of Hudson in combination with the latest versi...I've installed the latest version of Hudson in combination with the latest version of the Perforce Plugin, but I can't getting it to work. This is my output :
Started by user anonymous
Using master perforce client: HUDSON-BUILD
[workspace] $ p4 workspace -o HUDSON-BUILD
Caught exception communicating with perforce. No output for: p4 workspace -o HUDSON-BUILD com.tek42.perforce.PerforceException: No output for: p4 workspace -o HUDSON-BUILD
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:322)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:670)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:293)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1013)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:486)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
at hudson.model.Run.run(Run.java:1179)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)
Finished: FAILURE
My environment is : Ubuntu Linux 8.04.3 - 64 bit / Hudson 1.3339 / Perforce plugin 1.0.16
Also the configuration of a project gives problems : I always get the message "Unable to check workspace against depot", but my "p4" executable is available for all users on the system.
Jan 13, 2010
Peter Yamamoto says:
try running the command that is failing yourself. You may see a perforce error m...try running the command that is failing yourself. You may see a perforce error message that indicate the problem. That's what happened to me the first time I setup a workspace/job (I can't remember what my error was but I know I figured it out from the p4 error message).
Jan 14, 2010
Levon Stepanian says:
Where can I file a request for the Perforce plugin to provide a way to consume a...Where can I file a request for the Perforce plugin to provide a way to consume a Hudson property when specifying the View in the plugin GUI. In the current version (1.0.16), the Perforce View requires you to specify both the depot-location and local-workspace as such:
//depot-location/... //local-workspace-view-of-depot
I'd like to be able to define my own Hudson properties some.property and some.other.property, and have them consumed by the Perforce plugin:
//some.property //some.other.property
A colleague of mine mentioned there are other Hudson plugins which consume Hudson properties as I've described, and makes the Perforce plug-in a lot more robust.
Jan 14, 2010
oeuftete says:
The Hudson JIRA (perforce component) would be where to raise this.The Hudson JIRA (perforce component) would be where to raise this.
Jan 27, 2010
Peter Yamamoto says:
I used this on one mac without any issues. But when I tried on a second mac, set...I used this on one mac without any issues. But when I tried on a second mac, set up identically (afaict), when a build starts it just hangs. when I abort the build I see this call stack (interrupted by my abort):
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:474)
at hudson.slaves.WorkspaceList.acquire(WorkspaceList.java:173)
at hudson.slaves.WorkspaceList.acquire(WorkspaceList.java:161)
at hudson.slaves.WorkspaceList.allocate(WorkspaceList.java:129)
at hudson.model.AbstractBuild$AbstractRunner.decideWorkspace(AbstractBuild.java:391)
at hudson.model.FreeStyleBuild$RunnerImpl.decideWorkspace(FreeStyleBuild.java:56)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:405)
at hudson.model.Run.run(Run.java:1198)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)
I don't know how to start to debug this!? The perforce info was accepted (eg no red message about not being able to view/read the workspace).
How can I get more info to debug? Is this a perforce plugin issue or a hudson issue (or combination?).
Any help/suggestions appreciated.
Peter
Jan 28, 2010
Peter Yamamoto says:
I deleted the project, and afaik entered the same info/setup, but this time it w...I deleted the project, and afaik entered the same info/setup, but this time it worked!-P
Jan 28, 2010
Peter Yamamoto says:
Feature request for Perforce plugin (where is the best place to post this?): "Ch...Feature request for Perforce plugin (where is the best place to post this?): "Changelist to sync to"
I may take a stab at looking at the source, but for now, I'll request somebody else do this for me!-)
Rather than a label (which some have reported doesn't work), I'd like to be able to manually specify a changelist number to be used for the sync and build. Seems like it would be close to the label option, hopefully somebody else would find this useful?
Peter
Jul 27, 2010
Sean Houghton says:
This would be extremely useful. Now that this plugin supports parameter substit...This would be extremely useful.
Now that this plugin supports parameter substitution in the view I expected I could just append the following to the view spec
//depot/MyProject/...@${CHANGELIST_TO_SYNC_TO}... but the plugin tries to be smart about it and moves the option into the "Sync to label" field automatically.
In the meantime you have to disable automatic syncing add the following shell command task
This works, but unfortunately prevents the changelist view from working.
Jan 28, 2010
Peter Yamamoto says:
I used copy project to start a new project (workspace). It's a complete branch o...I used copy project to start a new project (workspace). It's a complete branch of an existing project so the only thing to change was the perforce workspace name. Everything seems to work but the perforce plugin section says that the workspace does not exist (even though it does). I'm wondering if this is because of creating the project via copy project or something?
Feb 09, 2010
Haggai Philip Zagury says:
Considering the fact Hudson can manage the workspace for you and you didn't have...Considering the fact Hudson can manage the workspace for you and you didn't have a pre-configured workspace for the protect during job configuration hudson displays an error.
If it's the first time don't worry about it just make sure to have the "One Time Force Sync" chekcbox selected and you are good to go.
Another option which seems the wrong way to go - is to use your P4 desktop client create a workspace and add it to hudson this will prevent the error message.
Feb 05, 2010
Clint Wong says:
I am using Hudson 1.343 with the Perforce plugin 1.0.18, and the value for "Path...I am using Hudson 1.343 with the Perforce plugin 1.0.18, and the value for "Path to p4 executable" now requires "p4.exe" to be appended to the path. Was this change intended?
Feb 05, 2010
Clint Wong says:
Is there a way to make the plugin perform a force sync every time a build is sta...Is there a way to make the plugin perform a force sync every time a build is started?
Mar 24, 2010
John Bolton says:
The latest version of the plug-in allows you to configure each job to perform a ...The latest version of the plug-in allows you to configure each job to perform a full sync for each build. The option name is "always force sync".
Feb 07, 2010
Haggai Philip Zagury says:
Enhancement wish / request I am using Perforce with multiple views whilst a cer...Enhancement wish / request
I am using Perforce with multiple views whilst a certain area of the view has build related tools for example:
//depot/Common/Infra/JEE/ver1.0/... //Infra-JEE-ver1.0-site/...
//depot/Configuration/cm/... //Infra-JEE-ver1.0-site/cm/...
If I change something in path: //depot/Configuration/cm/ all SCM triggered builds are queued for build is there a way to exclude changes by path e.g like in subversion plugin see example screenshot:
Feb 11, 2010
Peter Yamamoto says:
I don't know if this is a plugin question or hudson api question but I noticed t...I don't know if this is a plugin question or hudson api question but I noticed that the email extension has some replace macros/variables one of which is CHANGES so that you can embed the changelists. It would be nice if similar things could be exposed to the batch scripts eg the changelist it is syncing to, list of changes, etc
Feb 25, 2011
Dan Boger says:
Yeah, that would be very useful.Yeah, that would be very useful.
Feb 15, 2010
Rory says:
After updating to 1.0.19, it seems to have lost the ability to poll the perforce...After updating to 1.0.19, it seems to have lost the ability to poll the perforce server. Is there a way to get at the previous version again?
Oh, it syncs fine if I schedule the build manually by the way. I see this in the log:
Feb 15, 2010 7:52:22 PM hudson.triggers.SCMTrigger$Runner runPolling
SEVERE: Failed to record SCM polling
java.lang.NullPointerException
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:739)
at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:538)
at hudson.scm.SCM.poll(SCM.java:344)
at hudson.model.AbstractProject.poll(AbstractProject.java:1150)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:319)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:346)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Mar 24, 2010
John Bolton says:
I ran into a problem where the latest Perforce plug-in doesn't work for me. I di...I ran into a problem where the latest Perforce plug-in doesn't work for me. I discovered that each time a Hudson plug-in is upgraded, the previous one is renamed to *.bak. The plug-ins are stored in %HUDSON_HOME%\plugins.You can simply stop the Tomcat server, go into that directory, delete perforce.hpi and it's directory, rename perforce.bak to perforce.hpi, and finally restart Tomcat, or whatever your Java server is.
Feb 15, 2010
Alexey N. Solofnenko says:
It looks like the plugin uses master's P4 path on a slave (master is 64 bit Wind...It looks like the plugin uses master's P4 path on a slave (master is 64 bit Windows, but slaves are 32 bit). This is what I get after few recent updates:
[XXX] $ "C:\Program Files (x86)\Perforce\p4.exe" workspace -o YYY
Caught exception communicating with perforce. No output for: C:\Program Files (x86)\Perforce\p4.exe workspace -o YYY
com.tek42.perforce.PerforceException: No output for: C:\Program Files (x86)\Perforce\p4.exe workspace -o YYY
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:336)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:723)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:330)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1024)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1198)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:122)
Archiving artifacts
Sending e-mails to: ZZZ
Finished: FAILURE
Feb 21, 2010
Rory says:
Thanks for fixing that previous issue so quickly. I have another problem though ...Thanks for fixing that previous issue so quickly. I have another problem though now. I'm using just one perforce workspace and allowing Hudson to change the view according to the current job. The problem is that it doesn't force the sync to the changelist for each job. This means that one job will sync correctly to the changelist number, but the next one won't get any files since perforce thinks that the workspace is up to date.
How do I work around this? I'm using the free perforce, so I only have 5 workspaces to use.
Mar 24, 2010
John Bolton says:
The latest Perforce plugin (1.0.25) has an option to "always force sync" for eac...The latest Perforce plugin (1.0.25) has an option to "always force sync" for each project. This should workaround your issue problem.
Mar 08, 2010
amit pugalia says:
Hi, I upgraded Hudson as well as Perforce to 1.349 and 1.023 respectively. Hud...Hi,
I upgraded Hudson as well as Perforce to 1.349 and 1.023 respectively.
Hudson syncs in a maven project from Perforce server and my build process depends on the pom.xml which was synced recently.
But to my surprise, the pom.xml gets deleted every time I trigger a build, to sync latest from Perforce. This makes my build fail due to unavailability of the pom.xml.
Please help as this crucial for my project needs.
Mar 08, 2010
amit pugalia says:
I tried with the older versions till 1.011 but I still face the same issue.I tried with the older versions till 1.011 but I still face the same issue.
Mar 16, 2010
Clint Wong says:
I have Hudson 1.351 and the Perforce plugin 1.0.24 installed. Is there a l...I have Hudson 1.351 and the Perforce plugin 1.0.24 installed. Is there a limit to the length of the string used for the client name? I had a client named "TEST-CI-cmo-app-main-master", and when the system attempted to poll perforce for changes (in a master slave environment), I got the following error:
[TEST-CI-cmo-app-main] $ c:\\perforce
p4.exe changes -m 2 //TEST-CI-cmo-app-main-master-854888031/...
ERROR: Failed to record SCM polling
java.lang.NumberFormatException: For input string: "-"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
at java.lang.Integer.parseInt(Integer.java:474)
at java.lang.Integer.<init>(Integer.java:620)
at com.tek42.perforce.parse.Changes.getChangeNumbers(Changes.java:144)
at hudson.plugins.perforce.PerforceSCM.needToBuild(PerforceSCM.java:663)
at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:570)
at hudson.scm.SCM.poll(SCM.java:370)
at hudson.model.AbstractProject.poll(AbstractProject.java:1153)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
I changed the client name in the job configuration to "T-CI-cmo-app-main", and the polling error went away.
Mar 16, 2010
Haggai Philip Zagury says:
Are you building on a Hudson master or a Hudson slave. If it's on a slave I not...Are you building on a Hudson master or a Hudson slave.
If it's on a slave I noticed the same issue until I updated the salve.jar which solved the issue.
Mar 24, 2010
John Bolton says:
I have been unable to upgrade to the latest version of the P4 Hudson plugin.Perf...I have been unable to upgrade to the latest version of the P4 Hudson plugin.Perforce plug-in version 1.0.15 is the last version that seems to work. As soon as I upgrade (everything works fine beforehand), I see the following error in the job configuration view: "Unable to check workspace against depot"
Tomcat log shows:
hudson home directory: c:\src\hudson
Green Balls!
93 [Handling GET /hudson/scm/PerforceSCM/validatePerforceLogin : http-8080-2] INFO perforce - Executing: C:\Program Files\Perforce counter change
109 [Handling GET /hudson/scm/PerforceSCM/validateP4Client : http-8080-2] INFO perforce - Executing: C:\Program Files\Perforce counter change
156 [Handling GET /hudson/scm/PerforceSCM/checkChangeList : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
10186 [Handling GET /hudson/scm/PerforceSCM/validateP4Client : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
Problem: Could not run perforce command.
com.tek42.perforce.PerforceException: Could not run perforce command.
at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:83)
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:289)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:835)
at hudson.plugins.perforce.PerforceSCM.pollChanges(PerforceSCM.java:632)
at hudson.scm.SCM.poll(SCM.java:370)
at hudson.model.AbstractProject.poll(AbstractProject.java:1153)
at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:330)
at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:359)
at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Cannot run program "C:\Program Files\Perforce" (in directory "c:\src\hudson\jobs\PA_for_UC_9.0.0_Windows_Incremental\workspace"): CreateProcess error=5, Access is denied
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:149)
at hudson.Proc$LocalProc.<init>(Proc.java:121)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:633)
at hudson.Launcher$ProcStarter.start(Launcher.java:268)
at hudson.plugins.perforce.HudsonP4Executor.exec(HudsonP4Executor.java:74)
... 15 more
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 21 more
42057 [Handling GET /hudson/scm/PerforceSCM/validatePerforceLogin : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
43102 [Handling GET /hudson/scm/PerforceSCM/validatePerforceLogin : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
48328 [Handling GET /hudson/scm/PerforceSCM/validatePerforceLogin : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
48344 [Handling GET /hudson/scm/PerforceSCM/validatePerforceLogin : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
52603 [Handling GET /hudson/scm/PerforceSCM/checkChangeList : http-8080-3] INFO perforce - Executing: C:\Program Files\Perforce counter change
Could not get effective client name: null
Exception in thread "Executor #0 for Linux Build Machine" java.lang.NullPointerException
at hudson.model.Computer.getNode(Computer.java:385)
at hudson.slaves.SlaveComputer.getNode(SlaveComputer.java:138)
at hudson.slaves.SlaveComputer.getRetentionStrategy(SlaveComputer.java:436)
at hudson.slaves.SlaveComputer.taskCompletedWithProblems(SlaveComputer.java:238)
at hudson.model.Executor.run(Executor.java:138)
The Perforce client works just fine when I revert the plug-in back to its previous version. Nothing has changed on the system during the upgrade other than the Perforce plug-in.
I am using Hudson version 1.352 on Windows 2008 R2, Tomcat 6.0.20, Perforce client is 2009.2, Perforce server is 2009.2.
Ideas?
Thanks,
John
Mar 24, 2010
John Bolton says:
One note, JDK is 1.6U16, 64-bit. We're also using the 64-bit platform Tomcat bin...One note, JDK is 1.6U16, 64-bit. We're also using the 64-bit platform Tomcat binary files, and of course Windows 2008 R2 is 64-bit only.
Apr 06, 2010
Steven Nemetz says:
Version 1.0.27 - (Apr 5, 2010) Adding the LineEnd field broke all my builds It ...Version 1.0.27 - (Apr 5, 2010) Adding the LineEnd field broke all my builds
It appears that it is now sending the LineEnd option whether it has been set or not. When it sends it without a valid value perforce returns an error and the build fails.
Please update to only send the LineEnd field if it has been set in hudson.
Also, it would be nice to set this globally, instead of having to define it in every job.
Thanks,
Steven
Apr 06, 2010
Chris Pasillas says:
Yes, I find that a release of this plugin breaks all of our builds about every 3...Yes, I find that a release of this plugin breaks all of our builds about every 3 months. I recommend upgrading with extreme caution.
A couple examples:
-Perforce user's password is now encrypted (issue #2499, issue #3302)
*The change didn't encrypt current passwords, it just assumed they were all now incorrect since they don't decrypt correctly.
-Added automatic workspace path inference for the most common 1:1 depot:workspace paths.
*The maven pom.xml I was referencing was no longer in the root of the workspace, so all maven builds failed
May 06, 2010
Todd Zarnes says:
Anybody having any problems with this latest release on Hudson 1.355? I li...Anybody having any problems with this latest release on Hudson 1.355? I like to upgrade to the Hudson pre release and the latest P4Plugin. Running on Linux with no nodes.
Jun 13, 2010
Haggai Philip Zagury says:
A great addition would be to be able and name the workspace with a variable, for...A great addition would be to be able and name the workspace with a variable, for exmaple "hudson_$JOB_NAME"
What happens today is I am managing over 80 different perforce workspaces for our hudson instance, and when copying a job I need to "remember" to change the client name and unless I do so I corrupt two builds the new one and the old one with the same workspace name.
This also means I never have to configure the workspace name once I set this param - my build is good to go ...
I tried the following - which I presume isn't supported
Jul 09, 2010
Lemuel Typhair says:
I am creating a matrix project to compile on windows and ubuntu. How do I speci...I am creating a matrix project to compile on windows and ubuntu. How do I specify the p4 binary location?
Jul 09, 2010
John Bolton says:
Specify the full path including the binary. For example, /usr/bin/p4 or C:\Pro...Specify the full path including the binary.
For example, /usr/bin/p4 or C:\Program Files\Perforce\p4.exe.
Jul 09, 2010
Lemuel Typhair says:
Right that's how you would do it on a single os build. In a matrix project I ca...Right that's how you would do it on a single os build. In a matrix project I can tie the build to two slaves, one unix and the other windows. The perforce section asks for a p4 path. The p4 path is different on each os. So is it possible to enter two locations, leaving "Path to p4 executable" blank will not pick it up from the path. It seems to use a environment variable at execute time. Maybe a environment variable can be set per node, so if you leave it blank it picks up the environment variable...
Jul 09, 2010
John Bolton says:
Sorry I somehow missed that. I don't know the answer.Sorry I somehow missed that.
I don't know the answer.
Sep 06, 2010
Haggai Philip Zagury says:
If p4 exec is in the path of both windows and linux machines all you have to spe...If p4 exec is in the path of both windows and linux machines all you have to specify is p4 which will work for you.
Dec 30, 2010
Judith Bürgstein says:
That doesn't work for me. We have windows slaves with perforce installed in diff...That doesn't work for me. We have windows slaves with perforce installed in different locations (e.g. c:/program files/p4.exe and e:/program files/p4.exe). The Perforce directory is already in the PATH but it still says "No output for: C:\Program Files\\Perforce
p4.exe workspace -o xxxx-1970421364 " when executed on the machine with perforce installed on E drive.
Is there any other chance as to install perforce in the same location on every slave?
Aug 26, 2010
Krzysztof Oblucki says:
I am developing a plugin that needs changelist number and the changelist owner b...I am developing a plugin that needs changelist number and the changelist owner but can't quite figure out how to get the last PerforceChangeLogEntry. Could anyone help?
Nevermind. I must have been blind.
Sep 21, 2010
S Ash says:
Is there a way to get an email (or other alert trigger) when the Perforce Pollin...Is there a way to get an email (or other alert trigger) when the Perforce Polling has failed? When someone changes the password, but forgets to update the P4PASSWD in Hudson, everything looks good on the surface, but no new builds are made since Hudson can't sync new source but it doesn't notify anyone that there is a problem.
---
[workspace] $ /usr/bin/p4 workspace -o hudson
[workspace] $ /usr/bin/p4 login -p
[workspace] $ /usr/bin/p4 login -p
Caught exception communicating with perforce. Login attempt failed: Password invalid.com.tek42.perforce.PerforceException: Login attempt failed: Password invalid.
at com.tek42.perforce.parse.AbstractPerforceTemplate.p4Login(AbstractPerforceTemplate.java:488)
at com.tek42.perforce.parse.AbstractPerforceTemplate.login(AbstractPerforceTemplate.java:430)
at com.tek42.perforce.parse.AbstractPerforceTemplate.getPerforceResponse(AbstractPerforceTemplate.java:329)
at com.tek42.perforce.parse.Workspaces.getWorkspace(Workspaces.java:53)
at hudson.plugins.perforce.PerforceSCM.getPerforceWorkspace(PerforceSCM.java:951)
at hudson.plugins.perforce.PerforceSCM.checkout(PerforceSCM.java:499)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1061)
at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:479)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:411)
at hudson.model.Run.run(Run.java:1272)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:129)
---
Sep 24, 2010
Bobbi Newman says:
Has anyone seen the following behavior: If I navigate into a job and click...Has anyone seen the following behavior: If I navigate into a job and click on "Recent Changes", some comments that were supplied in Perforce do not show up. The changelist, author, date all show up fine. I have checked the comments from the p4 command line to make sure the whitespace is correct; I have compared them to other comments that do show up and cannot find any kind of whitespace difference. This particular project also generates a maven site, and in the maven site, the comments show up. It appears to be isolated to one user, but does not always happen to that user. I also tried a completely different browser after re-doing the whitespace to be sure that it wasn't a whitespace issue and that it wasn't cached in the browser...no change. The comments were submitted via P4V, but so were the ones that show up for this user. Most other users in our environment use either Eclipse or the command line client. The comments are definitely there, as shown by running p4 changes from the command line as well as p4 change -o <specific changelist number> (and looking at them from P4V, too).
Any ideas?
Thanks.
Oct 07, 2010
Rob Petti says:
They're probably inserting something into their comments that the perforce plugi...They're probably inserting something into their comments that the perforce plugin doesn't like. I recently fixed a problem where using reserved phrases (Such as "Job fixed" and "Affected files) will cause the changeset parsing to fail. If you are still having this issue with 1.1.10, please file a bug.
I'll also note that the wiki page is a bad place to ask for help. Either ask the newsgroup, irc, or failing both of those you can email me directly.
Oct 20, 2010
David Kuo says:
Are there any plans in future releases to allow the plugin to get the changes wi...Are there any plans in future releases to allow the plugin to get the changes without having to sync?
Oct 21, 2010
Rob Petti says:
What use would that have? If you really want to do it, you might be able to pull...What use would that have? If you really want to do it, you might be able to pull it off by having an empty client view, with the view mask set to the changes you want to pull into the changelog. Keep in mind that polling might not work if you do this.
Oct 26, 2010
David Kuo says:
I just prefer to have the management and syncing of clientspecs handled through ...I just prefer to have the management and syncing of clientspecs handled through scripts instead of the "Poll SCM" feature in multiple-configuration projects. I like the change history that the plugin generates in Hudson so I would really like to get this to work without having to sync files.
Oct 29, 2010
Rob Petti says:
Fair enough.Fair enough.
Nov 01, 2010
Paul Marquardt says:
We're starting to link change submissions to Perforce Jobs. I see the Job listed...We're starting to link change submissions to Perforce Jobs. I see the Job listed under "View Details" for the Hudson job. But if a change is linked to more than one Job, which Perforce allows, only one Job is displayed in the Hudson Job details. Some questions:
Has anyone seen this behavior?
Is there something I can do in our Hudson config to correct it?
Does anyone know if it's fixed in a specific version of the Perforce plugin?
Thanks!
Paul M.
Dec 03, 2010
Lester Pimentel says:
I'd like to be able to use the Perforce label generated from this plugin as a pa...I'd like to be able to use the Perforce label generated from this plugin as a parameter for a downstream job. Is this accessible as an environment variable I can pass to the downstream job?
Thanks,
Lester
Dec 08, 2010
Peter Yamamoto says:
I added a comment to http://issues.hudson-ci.org/browse/HUDSON-2678 which doesn'...I added a comment to http://issues.hudson-ci.org/browse/HUDSON-2678 which doesn't seem fixed.
I also added a description of how I'd like to use the poll/sync behavior. Is it so strange?
I would think a lot of people moving current build scripts to hudson would be starting in a similar situation (where the scripts are already perforce and changelist aware and base actions on their own results of doing these operations) and it's not that easy to extricate this from a pre-synced workspace. So I just want the plugin to track last successful CL and new CL and tell my script and a successbuild would update the last successful CL. But otherwise let the scripts do the syncing. It seems the options are there to do that (view mask with polling/syncing options) but it doesn't seem like the actual functionality matches what is described by these options.
Dec 08, 2010
Rob Petti says:
Please don't use the wiki comments for technical advice. Nobody checks it (See t...Please don't use the wiki comments for technical advice. Nobody checks it (See the disclaimer above). Either ask the mailing lists, irc, email the developers, or file an issue.
I'll look into implementing a disable sync option, since the View Mask workaround doesn't seem to work well enough for your purposes.
May 24, 2011
Paul Marquardt says:
I'm unable to use the labeling feature to create labels with underscores, ala my...I'm unable to use the labeling feature to create labels with underscores, ala mycode-mainline_LAST_SUCCESSFUL_BUILD:Failed to issue perforce label. Error in label specification. The Revision field can only be added to empty labels.
For Command: /tools/products/perforce/p4 -P XXXXXXXXXX -s label -i
With Data:
===================
Label: mycode-mainline_LAST_SUCCESSFUL_BUILD
Owner:
Description:
Label automatically generated by Hudson Perforce Plugin.
Revision: @855628
Options:
View:
//mydepot/mycode/mainline/...
===================
though I can create this same label from the P4V client and the Hudson Perforce plugin will create the label if I use the name mycode-mainline-LAST-SUCCESSFUL-BUILD (changing underscores to dashes). I've also noticed that the Perforce plguin will not accept dots either. Has anyone else seen this behavior?
Thanks!