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

IvyTrigger not triggering when new snapshot is posted in same version

    Details

    • Similar Issues:

      Description

      The trigger is polling artifacts from Artifactory. When a new snapshot is posted for the same version (e.g. 1.0.0-SNAPSHOT), the trigger is not detecting it.
      Looking in the trigger log I get :
      ...

      Resolved dependency org.slf4j#slf4j-api;1.7.7 ...
      Resolved dependency my.company.app#meta.model;1.0.0-SNAPSHOT ...
      Resolved dependency org.apache.commons#commons-lang3;3.3.2 ...
      
      Checking comparison to previous recorded dependencies.
      Checking previous recording dependency org.slf4j#slf4j-api;1.7.7
      ...Checking comparison to previous recorded artifacts.
      Checking previous recording dependency my.company.app#meta.model;1.0.0-SNAPSHOT
      ...Checking comparison to previous recorded artifacts.
      Checking previous recording dependency org.apache.commons#commons-lang3;3.3.2
      ...Checking comparison to previous recorded artifacts.
      

      Looking at the code of the plugin, it seems to never enter in the isArtifactChanged function at the end of IvyTrigger.isDependencyChanged function.
      The log message "....Checking previous recording artifact %s" is never shown ...

        Attachments

          Activity

          Hide
          ajanuary Andrew January added a comment -

          Looking through the code, it seems like checking artifact changes relies on the repository being local so it can look at the file's last modified date.

          I think it should fallback to artifact.getPublicationDate(), which should be available even when not downloading the artefacts.

          Show
          ajanuary Andrew January added a comment - Looking through the code, it seems like checking artifact changes relies on the repository being local so it can look at the file's last modified date. I think it should fallback to artifact.getPublicationDate() , which should be available even when not downloading the artefacts.

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              imartinbe Ignace Martin
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: