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

RedeployPublisher does not really parse the global settings from Config File Provider Plugin

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • Jenkins 1.599
      Config File Provider Plugin 2.7.5

      Hello,

      I try to use the RedeployPublisher but I have trouble to provide server credentials.
      Return code is: 401, ReasonPhrase: Unauthorized.

      The RedeployPublisher uses the settings.xml located in the maven installation conf folder.

      Maven RedeployPublisher use remote com.------.slave maven settings from : D:\apps\jenkins\com.-----.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

      If I set this file with the server info :
      <server>
      <id>deploymentRepo</id>
      <username>repouser</username>
      <password>repopwd</password>
      </server>

      it works well.

      But I cannot really set up this file as it is an automatic install and I have several slaves. Besides I would need to do it for each version of maven.

      When I set up the server credentials in my global maven from the plugin Config File Provider Plugin and remove the server section in the
      D:\apps\jenkins\com.------.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

      I am not able to publish anymore.
      I guess the RedeployPublisher does not really parse the global settings from the Config File Provider Plugin event if it is written
      "using global settings config with name ..."

      regards

          [JENKINS-27161] RedeployPublisher does not really parse the global settings from Config File Provider Plugin

          Simon Devineau created issue -
          Simon Devineau made changes -
          Description Original: Hello,

          I try to use the RedeployPublisher but I have trouble to provide server credentials.
          Return code is: 401, ReasonPhrase: Unauthorized.

          The RedeployPublisher uses the settings.xml located in the maven installation conf folder.

          Maven RedeployPublisher use remote com.-------.slave maven settings from : D:\apps\jenkins\com.------.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

          If I set this file with the server info :
          <server>
                <id>deploymentRepo</id>
                <username>repouser</username>
                <password>repopwd</password>
              </server>

          it works well.

          But I cannot really set up this file as it is an automatic install and I have several slaves. Besides I would need to do it for each version of maven.

          When I set up the server credentials in my global maven from the plugin Config File Provider Plugin and remove the server section in the
          D:\apps\jenkins\com.------.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

          I am not able to publish anymore.
          I guess the RedeployPublisher does not really parse the global settings from the Config File Provider Plugin.

          regards

          New: Hello,

          I try to use the RedeployPublisher but I have trouble to provide server credentials.
          Return code is: 401, ReasonPhrase: Unauthorized.

          The RedeployPublisher uses the settings.xml located in the maven installation conf folder.

          Maven RedeployPublisher use remote com.-------.slave maven settings from : D:\apps\jenkins\com.------.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

          If I set this file with the server info :
          <server>
                <id>deploymentRepo</id>
                <username>repouser</username>
                <password>repopwd</password>
              </server>

          it works well.

          But I cannot really set up this file as it is an automatic install and I have several slaves. Besides I would need to do it for each version of maven.

          When I set up the server credentials in my global maven from the plugin Config File Provider Plugin and remove the server section in the
          D:\apps\jenkins\com.------.slave\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.2.1/conf/settings.xml

          I am not able to publish anymore.
          I guess the RedeployPublisher does not really parse the global settings from the Config File Provider Plugin event if it is written
          "using global settings config with name ..."

          regards

          Simon Devineau made changes -
          Attachment New: jenkins.png [ 28669 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161357 ] New: JNJira + In-Review [ 180669 ]
          Arnaud Héritier made changes -
          Remote Link New: This issue links to "PR#61 (Web Link)" [ 14951 ]
          Arnaud Héritier made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Arnaud Héritier made changes -
          Assignee New: Arnaud Héritier [ aheritier ]

            aheritier Arnaud Héritier
            simondevineau Simon Devineau
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: