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

Invalid artifact URL when packaging is not specified

    Details

    • Similar Issues:

      Description

      When no packaging is specified, an invalid artifact URL is assigned to the *_ARTIFACT_URL env variable.

      E.g. use the following configuration:

      When starting a build, it is provided with the following environment variables:

      ANY_JAR_ARTIFACT_URL=http://repo1.maven.org/maven2/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.
      ANY_JAR_VERSION=3.4
      ANY_JAR_ARTIFACT_ID=commons-lang3
      ANY_JAR_GROUP_ID=org.apache.commons
      

      You'll notice:

      1. The artifact URL is missing the jar extension
      2. The variable ANY_JAR_PACKAGING is missing

        Attachments

          Activity

          Hide
          marcrohlfs Marc Rohlfs added a comment -

          I already implemented a fix and created Pull Request 8. Please test, merge and resolve this ticket. Many thanks!

          Show
          marcrohlfs Marc Rohlfs added a comment - I already implemented a fix and created Pull Request 8 . Please test, merge and resolve this ticket. Many thanks!
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Marc Rohlfs
          Path:
          src/main/lombok/eu/markov/jenkins/plugin/mvnmeta/MavenMetadataParameterDefinition.java
          http://jenkins-ci.org/commit/maven-metadata-plugin/e40394130fa3de1daff0858988951cac52578af9
          Log:
          Merge pull request #8 from silpion/bugfix/JENKINS-29567_default-packaging

          Bugfix JENKINS-29567: Invalid artifact URL when packaging is not specified

          Compare: https://github.com/jenkinsci/maven-metadata-plugin/compare/783b38de8ff0...e40394130fa3

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Marc Rohlfs Path: src/main/lombok/eu/markov/jenkins/plugin/mvnmeta/MavenMetadataParameterDefinition.java http://jenkins-ci.org/commit/maven-metadata-plugin/e40394130fa3de1daff0858988951cac52578af9 Log: Merge pull request #8 from silpion/bugfix/ JENKINS-29567 _default-packaging Bugfix JENKINS-29567 : Invalid artifact URL when packaging is not specified Compare: https://github.com/jenkinsci/maven-metadata-plugin/compare/783b38de8ff0...e40394130fa3
          Hide
          marcrohlfs Marc Rohlfs added a comment -

          Fixed with release 1.3.0

          Show
          marcrohlfs Marc Rohlfs added a comment - Fixed with release 1.3.0

            People

            • Assignee:
              marcrohlfs Marc Rohlfs
              Reporter:
              marcrohlfs Marc Rohlfs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: