Issue Type: Bug Bug
Assignee: Unassigned
Components: maven
Created: 14/Jun/13 7:17 PM
Description:

When attempting to set the Settings file or Global Settings file for a Invoke top-level Maven target pre or post-build step, the selected value is never persisted to the job config.xml.

Regardless of what setting I select, I always end up with the following stanza in my config.xml:

<prebuilders>
    <hudson.tasks.Maven>
      <targets>clean package antrun:run</targets>
      <mavenName>sys-mvn-3.0.4</mavenName>
      <pom>../db-conf/pom.xml</pom>
      <usePrivateRepository>true</usePrivateRepository>
      <settings class="jenkins.mvn.DefaultSettingsProvider"/>
      <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
    </hudson.tasks.Maven>
  </prebuilders>

If I modify it to the correct configuration as follows

<prebuilders>
    <hudson.tasks.Maven>
      <targets>clean package antrun:run</targets>
      <mavenName>sys-mvn-3.0.4</mavenName>
      <pom>../db-conf/pom.xml</pom>
      <usePrivateRepository>true</usePrivateRepository>
      <settings class="org.jenkinsci.plugins.configfiles.maven.job.MvnSettingsProvider" plugin="config-file-provider@2.5.1">
        <settingsConfigId>org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig1371233015754</settingsConfigId>
      </settings>
      <globalSettings class="jenkins.mvn.DefaultGlobalSettingsProvider"/>
    </hudson.tasks.Maven>
  </prebuilders>

The job works as expected but will revert to the default provider if I resave the configuration (in the event I need to make additional changes).

Project: Jenkins
Priority: Major Major
Reporter: Phil Davies
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to