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

[Maven settings] "Replace All" does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 1.609.3 LTS
      Config File Provider Plugin 2.9.3
      Maven 3.0.5
    • Similar Issues:

      Description

      The help text to the "Replace All" checkbox says

      Replace all servers in the Maven settings.xml file, even ones not found in the provided list of credentials

      .

      In the Config File Provider Plugin version 2.9.3 this does not seem to work. Artifacts can not be resolved from a server if its credentials have not been specified explicitly trough a credential setting.

      After adding a credential for each server id everything works as expected.

      Either the mechanism is broken or the help text is wrong.

        Attachments

          Activity

          Hide
          sbreitbach Steffen Breitbach added a comment -

          It seems that 2.10.0 is affected as well.

          Show
          sbreitbach Steffen Breitbach added a comment - It seems that 2.10.0 is affected as well.
          Hide
          imod Dominik Bartholdi added a comment -

          hmm, not sure I understand what you say...

          The feature works like this: if you check "Replace All", then all server credentials in the settings.xml are in fact removed and only the ones which you have configured will be added again.
          There is no magic where we ably the same credentials to all the serverIds irespective of the serverid.

          Maybe you can explain a bit more what you expect...

          Show
          imod Dominik Bartholdi added a comment - hmm, not sure I understand what you say... The feature works like this: if you check "Replace All", then all server credentials in the settings.xml are in fact removed and only the ones which you have configured will be added again. There is no magic where we ably the same credentials to all the serverIds irespective of the serverid. Maybe you can explain a bit more what you expect...
          Hide
          sbreitbach Steffen Breitbach added a comment -

          Well, that seems to be what I meant by saying:

          Either the mechanism is broken or the help text is wrong.

          So. This particular setting will not replace "even ones not found in the provided list of credentials" but rather remove all server credentials and then replace those stated explicitly.

          The help text in the corresponding help-isReplaceAll.html should be replaced, maybe to something like:

          Replace all servers in the Maven settings.xml file. If a server is not in the provided list of credentials, this servers credentials will be empty.

          Cheers
          Steffen

          Show
          sbreitbach Steffen Breitbach added a comment - Well, that seems to be what I meant by saying: Either the mechanism is broken or the help text is wrong. So. This particular setting will not replace "even ones not found in the provided list of credentials" but rather remove all server credentials and then replace those stated explicitly. The help text in the corresponding help-isReplaceAll.html should be replaced, maybe to something like: Replace all servers in the Maven settings.xml file. If a server is not in the provided list of credentials, this servers credentials will be empty. Cheers Steffen
          Hide
          imod Dominik Bartholdi added a comment -

          help changed and released with version 2.11

          Show
          imod Dominik Bartholdi added a comment - help changed and released with version 2.11

            People

            • Assignee:
              domi Dominik Bartholdi
              Reporter:
              sbreitbach Steffen Breitbach
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: