• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins 1.609.3 LTS
      Config File Provider Plugin 2.9.3
      Maven 3.0.5

      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.

          [JENKINS-30458] [Maven settings] "Replace All" does not work

          It seems that 2.10.0 is affected as well.

          Steffen Breitbach added a comment - It seems that 2.10.0 is affected as well.

          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...

          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...

          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

          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

          help changed and released with version 2.11

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

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

              Created:
              Updated:
              Resolved: