Potential bug with Config File Management plugin and Credentials plugin dropping anything other than id, username, password

1 view
Skip to first unread message

Charlie Evans

unread,
Sep 12, 2016, 8:23:01 AM9/12/16
to Jenkins Users
Hello,

I'm using Config File Management to create a settings.xml file with the Oracle maven repository as a <server>. The repository requires login so I'm using a username, password credential and the Replace All functionality. Unfortunately this does not work because the server requires additional configuration parameters: 

    <server>
      <id>maven.oracle.com</id>
      <username>username</username>
      <password>password</password>
      <configuration>
        <basicAuthScope>
          <host>ANY</host>
          <port>ANY</port>
          <realm>OAM 11g</realm>
        </basicAuthScope>
        <httpConfiguration>
          <all>
            <params>
              <property>
                <name>http.protocol.allow-circular-redirects</name>
                <value>%b,true</value>
              </property>
            </params>
          </all>
        </httpConfiguration>
      </configuration>
    </server>

When I run mvn clean install with this pom, the effective pom drops the <configuration> part and only has the id, username and password. This then causes the build to fail.

Is this a known bug or am I doing something wrong?

Thanks
Reply all
Reply to author
Forward
0 new messages