Hello all,
(This is my first question to this list. Running Jenkins 1.446.)
I'm trying to use the FS Trigger plugin (version 0.26) to monitor any changes
to a symlink (on linux) and trigger a job when the symlink target changes.
1. The symlink points to a directory. The change I want to monitor is if the
target directory changes, i.e. when the symlink starts pointing to a new
directory.
2. The path to the symlink contains two environment variables (Jenkins job
parameters), and a pathname component that must be calculated "in runtime",
i.e. by a sh script.
Triggering seems to work when the plugin monitors a simple file with changing
contents, and when the path to the monitored file contains no env-vars/params,
i.e. is "hardcoded".
When either of (1) or (2) above is true, the job isn't triggered.
As far as I can understand, support for symlink monitoring was introduced in
version 0.22 of FS Trigger.
As for environment variable support, it seems to have been introduced in version
0.18, but I may be mistaken as the message was a bit cryptic: "Environment
variables
are taken into account". (What environment variables? Used where?)
Questions:
(1) Does anyone know what I'm doing wrong?
(2) Would it be possible to add support for using a "sh box", like a Build Step,
to calculate the "File Path" to monitor?
I guess supporting (2) would mean sourcing the contents of the box and passing
the resulting path in a pre-defined shell/environment variable. It would be
very useful to me, but I have no idea how difficult it would be to implement.
Thanks in advance!
Adam Aquilon (CI Team)
--
We only send and receive email on the basis of the terms set out at
www.ericsson.com/email_disclaimer