Uploaded image for project: 'Jenkins Artifactory Plug-in'
  1. Jenkins Artifactory Plug-in
  2. HAP-1098

Using job parameters in deployers throws exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 2.16.2
    • Fix Version/s: 3.0.0
    • Component/s: Gradle, Maven3
    • Labels:
      None

      Description

      Currently, job's string and boolean parameters are not parsed correctly in Maven and Gradle deployers.

      For example, the follwing will fail:

      rtMaven.deployer releaseRepo: "${params.ART_RELEASE_REPO}", snapshotRepo: "${params.ART_SNAPSHOT_REPO}", server: rtServer

       

      And the exception thrown is:

      com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
       at [Source: {"releaseRepo":{"bytes":[108,105,98,115,45,114,101,108,101,97,115,101],"strings":["",""],"valueCount":1,"values":["libs-release"]},"snapshotRepo":{"bytes":[108,105,98,115,45,115,110,97,112,115,104,111,116],"strings":["",""],"valueCount":1,"values":["libs-snapshot"]}}; line: 1, column: 16] (through reference chain: org.jfrog.hudson.pipeline.types.deployers.MavenDeployer["releaseRepo"])
      

        Attachments

          Activity

            People

            • Assignee:
              yahavi Yahav Itzhak
              Reporter:
              yahavi Yahav Itzhak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: