AnsweredAssumed Answered

Getting LogMon to monitor log file with changing Folder Name

Question asked by Hayes on Jan 12, 2018
Latest reply on Feb 9, 2018 by MelissaPotvin

I need to monitor a file with Logmon.  The file directory changes for every instance.  The file being monitored in in Jenkins Software.  The directory structure is as follows


c:\Software\Jenkins\home\Jobs\Project Name\builds\buildnumber\log







For each build run, a new Build folder is created.


How can I get the logmon monitor to view the next build number log file after the build is successful.


There is a file called nextBuildNumber in the following folder

c:\Software\Jenkins\home\Jobs\MyProject\nextBuildNumber -  This will tell us what the next build number is. 

Is there a way to get the logmon or another probe to change the file path, after it detects the NextBuildNumber?