jenkinsci / fstrigger-plugin

https://plugins.jenkins.io/fstrigger/
10 stars 18 forks source link

[FSTrigger] - Monitor folder: when i use "%JENKINS_HOME%\<workspaceLoc>\<projectName>\target" is not working but working when i use direct path like "D:\Jenkins\<workspaceLoc>\<projectName>\targe"t #18

Open pjonnlagadda opened 2 years ago

pjonnlagadda commented 2 years ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

MS Windows 11

Reproduction steps

Use FSTrigger folder path as "%JENKINS_HOME%\\\target" to trigger a build on poll base

But working if we give full path like D:\Jenkins\\\target

D:\Jenkins is the jenkins location

Expected Results

it should work for "%JENKINS_HOME%\\\target"

Actual Results

Not working when i ues FSTrigger folder path as "%JENKINS_HOME%\\\target"

Anything else?

No response

TonyNoble commented 2 years ago

Hi @pjonnlagadda - can I just clarify - your issue is that Windows environment variables aren't being correctly resolved?

When you say 'not working', is there an error, or is it simply that the job is never triggered? If so, could you look at the trigger log and paste the output from it?

pjonnlagadda commented 2 years ago

Hi Tony,

It's good to hear from you, i mean the jog is not triggered. when i use the <%JENKINS_HOME%>. Bur its working if i use "D:\xyz\blablanla"

Regards, Praveen

On Wed, Mar 16, 2022 at 10:46 AM Tony Noble @.***> wrote:

Hi @pjonnlagadda https://github.com/pjonnlagadda - can I just clarify - your issue is that Windows environment variables aren't being correctly resolved?

When you say 'not working', is there an error, or is it simply that the job is never triggered? If so, could you look at the trigger log and paste the output from it?

— Reply to this email directly, view it on GitHub https://github.com/jenkinsci/fstrigger-plugin/issues/18#issuecomment-1069206782, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVC7ESIZ2C7BD2PMFWNFMSTVAHX5DANCNFSM5QQHCATA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

TonyNoble commented 2 years ago

@pjonnlagadda - it sounds like an environment variable expansion issue then. Can you provide the following?