Hi everyone, 

I am fairly new to FSTrigger plugin and I wonder if you could point me in 
the right direction regarding the following issue. 

I am using the Jenkins Filesystem Trigger 
Plug-in<http://wiki.jenkins-ci.org/display/JENKINS/FSTrigger+Plugin> on 
Jenkins 1.535 to monitor a samba share. This share is used as target for 
generation of one file, which takes up to 10 minutes per run. While 
generating, the file is locked and cannot be accessed by any other parties. 

The polling interval is set to every minute: H * * * * so that we pick up 
the new generation result asap.

In particular, the FS Trigger Folder Log shows the following information: 

Polling remotely on <myslave-node>

Trying to monitor the folder '\\myhost\share'
[ERROR] - Polling error...
[ERROR] - Error message: org.jenkinsci.lib.xtrigger.XTriggerException: 
java.io.FileNotFoundException: \\myhost\share\myfile (The process cannot 
access the file because it is being used by another process)
[ERROR] - Error cause: java.io.FileNotFoundException: \\myhost\share\myfile 
(The process cannot access the file because it is being used by another 
process)

Of course, this is somehow expected as the polling interval elapses several 
times while the file is being generated. However, the plugin seems to quit 
the polling and is not picking up the folder change after the generation 
process has finished and the file is released again. I had to reset 
scheduling and apply it again to force a restart of the polling.


The trigger works as expected whenever I manually touch a file to simulate 
a folder change. Copying the file to a dedicated monitoring subfolder after 
generation might be workaround but requires changes to the generation side 
which is off limits.


Therefore, I'd be very grateful to hear if I am missing something when 
polling on files that are locked for a fairly long duration.

Thanks, 
henrik

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to