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

ARTIFACT_URL is not correctly resolved for SNAPSHOT artifacts

    Details

    • Similar Issues:

      Description

      If I specify an artifact that is located in a SNAPSHOT repository, I get back a URL that is in the form:
      http://<repoAddress>/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-SNAPSHOT-<classifier>.<ext>

      However SNAPSHOT artifacts are stored in the version folder using timestamps.
      So the actual URL should look something like the following:
      http://<repoAddress>/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-<timestamp>-<artifactCount>-<classifier>.<ext>

        Attachments

          Activity

          mdobrindt Michael Dobrindt created issue -
          mdobrindt Michael Dobrindt made changes -
          Field Original Value New Value
          Description If I specify an artifact that is located in a SNAPSHOT repository, I get back a URL that is in the form:
          http://&lt;repoAddress&gt;/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-SNAPSHOT-&lt;classifier&gt;.&lt;ext>

          However SNAPSHOT artifacts are stored in the version folder using timestamps.
          So the actual URL should look something like the following:
          http://&lt;repoAddress&gt;/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-&lt;timestamp&gt;-&lt;artifactCount&gt;-&lt;classifier&gt;.&lt;ext>
          If I specify an artifact that is located in a SNAPSHOT repository, I get back a URL that is in the form:
          http://&lt;repoAddress&gt;/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-SNAPSHOT-&lt;classifier&gt;.&lt;ext>

          However SNAPSHOT artifacts are stored in the version folder using timestamps.
          So the actual URL should look something like the following:
          http://&lt;repoAddress&gt;/some/group/id/some.artifact.id/1.0.0-SNAPSHOT/some.artifact.id-1.0.0-&lt;timestamp>\-<artifactCount>\-<classifier>.<ext>
          Hide
          poussma Mathieu POUSSE added a comment -

          I did it, added some unit tests, tested on my jenkins ci

          see my pull request #5

          HIH

          Show
          poussma Mathieu POUSSE added a comment - I did it, added some unit tests, tested on my jenkins ci see my pull request #5 HIH
          gesh Gesh Markov made changes -
          Assignee Gesh Markov [ gesh ] Mathieu POUSSE [ poussma ]
          gesh Gesh Markov made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          gesh Gesh Markov added a comment -

          Fixed and released in version 1.2.0 of the plugin.

          Show
          gesh Gesh Markov added a comment - Fixed and released in version 1.2.0 of the plugin.
          gesh Gesh Markov made changes -
          Status In Progress [ 3 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          marcrohlfs Marc Rohlfs made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          rtyler R. Tyler Croy made changes -
          Workflow JNJira [ 155759 ] JNJira + In-Review [ 207744 ]

            People

            • Assignee:
              poussma Mathieu POUSSE
              Reporter:
              mdobrindt Michael Dobrindt
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: