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

Version Number comparisons are not timestamped -SNAPSHOT aware

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core

      Version Number comparison is not aware of -20170207.105042-1 style timestamp snapshots.

      As a result, if you install a plugin with timestamp snapshot based dependencies, you cannot start Jenkins because the timestamp of a deployment is generated after the artifact has been built and as such the version will report as -SNAPSHOT which currently reporting as older than the timestamp snapshot.

          [JENKINS-41899] Version Number comparisons are not timestamped -SNAPSHOT aware

          Stephen Connolly created issue -
          Stephen Connolly made changes -
          Labels New: lts-candidate

          Marking as an LTS candidate so that when the common plugin baseline is above 2.19.x (when plugin dependency checks got strict) we can at least use timestamped snapshots for testing linked changes

          Stephen Connolly added a comment - Marking as an LTS candidate so that when the common plugin baseline is above 2.19.x (when plugin dependency checks got strict) we can at least use timestamped snapshots for testing linked changes
          Stephen Connolly made changes -
          Remote Link New: This issue links to "PR#2 (Web Link)" [ 15418 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-40899 [ JENKINS-40899 ]

          Jesse Glick added a comment -

          Have you tried using the latest maven-hpi-plugin to build the downstream plugin? Or what exactly is the case you encountered—a way to reproduce?

          Jesse Glick added a comment - Have you tried using the latest maven-hpi-plugin to build the downstream plugin? Or what exactly is the case you encountered—a way to reproduce?
          Stephen Connolly made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Stephen Connolly made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Code changed in jenkins
          User: Stephen Connolly
          Path:
          src/main/java/hudson/util/VersionNumber.java
          src/test/java/hudson/util/VersionNumberTest.java
          http://jenkins-ci.org/commit/lib-version-number/d773321cad7be4618e95db82a1b7f28edf4979c5
          Log:
          [FIXED JENKINS-41899] Make VersionNumber timestamped snapshot aware

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/hudson/util/VersionNumber.java src/test/java/hudson/util/VersionNumberTest.java http://jenkins-ci.org/commit/lib-version-number/d773321cad7be4618e95db82a1b7f28edf4979c5 Log: [FIXED JENKINS-41899] Make VersionNumber timestamped snapshot aware
          Stephen Connolly made changes -
          Remote Link New: This issue links to "core#2750 (Web Link)" [ 15445 ]

            stephenconnolly Stephen Connolly
            stephenconnolly Stephen Connolly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: