I've never used the Perforce plugin and my Perforce is rusty, but I may have a 
solution.

If you only care about the certain subdirectories you are watching (i.e. you 
don't need the other files), then you can narrow the workspace view to just 
watch those subdirectories.

It sounds like your problem is a little more complex, in that you need only 
want to poll for changes on a small set of directories but need to have a 
larger directory structure in your workspace to do your actual build.  If that 
is the case, the solution is to have two separate workspaces: one for polling, 
one for building.  Set up the Perforce configuration on your job to poll the 
smaller set.  Then in your build, use a shell command to explicitly ask 
Perforce to extract the larger directory structure to a different directory, 
then do your build based on what you just extracted.

Another solution may be to have two jobs.  Job A is set up to poll SCM for the 
smaller subdirectory set.  When It triggers, it performs no build steps 
whatsoever and launches job B as a post-build task.  Job B is set to use the 
larger Perforce directory structure, but doesn't poll.  When A kicks off B, B 
(which has the larger file set because of its Perforce configuration) does the 
actual build.

--Rob

From: [email protected] 
[mailto:[email protected]] On Behalf Of Suhas Madhusudana
Sent: Wednesday, June 26, 2013 8:13 PM
To: [email protected]
Subject: Polling for changes to an arbitrary sub-directory in a perforce 
workspace


Hi - Using the Perforce plugin, my project polls for changes to trigger a

test build. Since my test is highly localized, I don't wish to trigger a

build for every change to the rather huge Perforce workspace. Is there a way

to restrict this polling mechanism only to changes to an arbitrary workspace

sub-directory?
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
[email protected]<mailto:[email protected]>.
For more options, visit https://groups.google.com/groups/opt_out.


The information in this message is for the intended recipient(s) only and may 
be the proprietary and/or confidential property of Litle & Co., LLC, and thus 
protected from disclosure. If you are not the intended recipient(s), or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any use, dissemination, distribution or 
copying of this communication is prohibited. If you have received this 
communication in error, please notify Litle & Co. immediately by replying to 
this message and then promptly deleting it and your reply permanently from your 
computer.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to