Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-12168

[FSTrigger] - Monitor files - Does not monitor a unix soft link

    XMLWordPrintable

Details

    Description

      [FSTrigger] - Monitor files - Does not check the date/time modified of a UNIX softlink.

      Attachments

        Activity

          jimsearle Jim Searle added a comment -

          I tested this a little more and found that if the soft link is changed then the job is not triggered, but if the file pointed to by the soft link changes the job is triggered.

          We would like it to be triggered in both cases.

          jimsearle Jim Searle added a comment - I tested this a little more and found that if the soft link is changed then the job is not triggered, but if the file pointed to by the soft link changes the job is triggered. We would like it to be triggered in both cases.
          gbois Gregory Boissinot added a comment - - edited

          Please could you tell me what do you mean about updating the soft link (executing a command, ...)?

          gbois Gregory Boissinot added a comment - - edited Please could you tell me what do you mean about updating the soft link (executing a command, ...)?
          jimsearle Jim Searle added a comment -

          If the object being monitored is a soft link:
          somefile -> file1
          then if the link is modified with:
          rm -f somefile ; ln -s file2 somefile
          then FSTrigger does not trigger a build unless file2 is newer than file1. In our case, it should trigger the job whenever the link is modified.

          jimsearle Jim Searle added a comment - If the object being monitored is a soft link: somefile -> file1 then if the link is modified with: rm -f somefile ; ln -s file2 somefile then FSTrigger does not trigger a build unless file2 is newer than file1. In our case, it should trigger the job whenever the link is modified.

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/fstrigger/triggers/FolderContentTrigger.java
          http://jenkins-ci.org/commit/fstrigger-plugin/24fae7a25974c84f33208603f8a935e197193390
          Log:
          Fix JENKINS-12168

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/fstrigger/triggers/FolderContentTrigger.java http://jenkins-ci.org/commit/fstrigger-plugin/24fae7a25974c84f33208603f8a935e197193390 Log: Fix JENKINS-12168

          I found a solution: if the slink has changed, the build is triggered.
          Please could you upgrade to FStrigger 0.22?
          Thanks

          gbois Gregory Boissinot added a comment - I found a solution: if the slink has changed, the build is triggered. Please could you upgrade to FStrigger 0.22? Thanks

          People

            gbois Gregory Boissinot
            jimsearle Jim Searle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: