Monitoring network folder using FSTrigger plugin

825 views
Skip to first unread message

Ram D

unread,
Oct 14, 2016, 9:36:39 AM10/14/16
to jenkins...@googlegroups.com
Hi All,

Greetings!
Use case: I have to monitor (polling folder) a network folder for build artifacts (.zip files). When ever there is new .zip file I have to copy it and trigger downstream builds.

Solution: FSTrigger plugin - seems to do the work of polling folder and and if changes present in target, build is triggered.

Question: How do I provide a network path for polling which requires username and password to access it. e.g. \\100.1.1.1\abc\pqr\xyz\pqr\*.zip 

If I open this in file system explorer it asks for username (with domain) and password in order to open it. How to pass such parameters in FSTrigger plugin. 


Any help or suggestions appreciated.

Regards,
Ramesh

Ram D

unread,
Oct 15, 2016, 6:32:35 AM10/15/16
to jenkins...@googlegroups.com
Anyone !!!!
Is it at-least possible???

Mark Waite

unread,
Oct 15, 2016, 7:49:10 AM10/15/16
to jenkins...@googlegroups.com
http://superuser.com/questions/344775/passing-unc-username-and-password-within-a-unc-path suggests that there is no syntax which will allow you to embed the username and password in the network path.  You might need to assure that network path is already mounted on your Windows agents.  You could attach a label to Windows agents which have it mounted, then restrict the job to only run on those labels.

Mark Waite

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAAyu-G66gDG6QwjwXbMaTfO9OV5d0PibDeUbhtWZYWaktEgEXQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ram D

unread,
Oct 18, 2016, 12:41:44 AM10/18/16
to jenkins...@googlegroups.com
Hi Mark,

Thanks, I realized it soon enough. But thought mounting is was just a workaround for this query.
Your answer showed me that is just the only solution available.

Regards,
Ramesh


On Sat, Oct 15, 2016 at 5:18 PM, Mark Waite <mark.ea...@gmail.com> wrote:
http://superuser.com/questions/344775/passing-unc-username-and-password-within-a-unc-path suggests that there is no syntax which will allow you to embed the username and password in the network path.  You might need to assure that network path is already mounted on your Windows agents.  You could attach a label to Windows agents which have it mounted, then restrict the job to only run on those labels.

Mark Waite

On Sat, Oct 15, 2016 at 4:32 AM Ram D <dndi...@gmail.com> wrote:
Anyone !!!!
Is it at-least possible???

On Fri, Oct 14, 2016 at 7:06 PM, Ram D <dndi...@gmail.com> wrote:
Hi All,

Greetings!
Use case: I have to monitor (polling folder) a network folder for build artifacts (.zip files). When ever there is new .zip file I have to copy it and trigger downstream builds.

Solution: FSTrigger plugin - seems to do the work of polling folder and and if changes present in target, build is triggered.

Question: How do I provide a network path for polling which requires username and password to access it. e.g. \\100.1.1.1\abc\pqr\xyz\pqr\*.zip 

If I open this in file system explorer it asks for username (with domain) and password in order to open it. How to pass such parameters in FSTrigger plugin. 


Any help or suggestions appreciated.

Regards,
Ramesh

--
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+unsubscribe@googlegroups.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGQvUDLrgs8PnwWXXs-oy0Tjp%3DEqNTUoPwNcQDc7i7kGA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages