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

Build parameters are not expanded for artifactId

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      When attempting to pass a parameter to artifactId an error message appears:

      No versions could be resolved for groupid.artifactid gov.nasa.msfc.dctm.${foo}

      I am attempting to obtain the version of a Nexus artifact. It works fine when I use a hard coded value.

      This is understandable since the parameter hasn't been resolved yet,however, it also fails during the build. I debated making this a new feature but parameters seems to work in other places so I suspected it was just an oversight.

      The problem is that if this can't be parameterized it breaks a job that could otherwise be reusable and forces me to build a separate job for each application.

        Attachments

          Activity

          mfaine Mark Faine created issue -
          Hide
          jgangemi Jae Gangemi added a comment -

          dup of JENKINS-38190?

          please try version 1.2.0 (soon to be released) and report back if your problem is resolved.

          Show
          jgangemi Jae Gangemi added a comment - dup of JENKINS-38190 ? please try version 1.2.0 (soon to be released) and report back if your problem is resolved.
          Hide
          jgangemi Jae Gangemi added a comment -

          fixed in 2.0.0, which will be released in the next few days. you still won't be able to verify the parameters when configuring the build step (which is expected) but they should now be properly expanded provided the other parameters are properly defined.

          please be sure to check the plugin readme before upgrading so you are aware of incompatible changes.

          Show
          jgangemi Jae Gangemi added a comment - fixed in 2.0.0 , which will be released in the next few days. you still won't be able to verify the parameters when configuring the build step (which is expected) but they should now be properly expanded provided the other parameters are properly defined. please be sure to check the plugin readme before upgrading so you are aware of incompatible changes.
          jgangemi Jae Gangemi made changes -
          Field Original Value New Value
          Assignee Jae Gangemi [ jgangemi ]
          jgangemi Jae Gangemi made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Fixed [ 1 ]

            People

            • Assignee:
              jgangemi Jae Gangemi
              Reporter:
              mfaine Mark Faine
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: