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

Duplicate Entries when updating ManagedFile via UI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins Version 2.440.2
      Plugin Version: 968.ve1ca_eb_913f8c

      When we update a managed file, e.g changing a url, via ui. instead of simply changing the value, the managed file got duplicated with only changing the new value.

      The duplicate is in the ui an in the config xml file.

       

       

      // org.jenkinsci.plugins.configfiles.GlobalConfigFiles.xml
      <jenkins.plugins.nodejs.configfiles.NPMConfig plugin="nodejs@1.6.1">
            <id>npm_settings</id>
            <name>npm_settings</name>
            <comment>npm Settings for agent</comment>
            <content>always-auth = true
            strict-ssl = false</content>
            <providerId>jenkins.plugins.nodejs.configfiles.NPMConfig</providerId>
            <registries>
              <jenkins.plugins.nodejs.configfiles.NPMRegistry>
                <url>https://test_url</url>
                <credentialsId>credid</credentialsId>
              </jenkins.plugins.nodejs.configfiles.NPMRegistry>
            </registries>
            <npm9Format>false</npm9Format>
       </jenkins.plugins.nodejs.configfiles.NPMConfig>      <jenkins.plugins.nodejs.configfiles.NPMConfig plugin="nodejs@1.6.1">
            <id>npm_settings</id>
            <name>npm_settings</name>
            <comment>npm Settings for agent</comment>
            <content>always-auth = true
      strict-ssl = false</content>
            <providerId>jenkins.plugins.nodejs.configfiles.NPMConfig</providerId>
            <registries>
              <jenkins.plugins.nodejs.configfiles.NPMRegistry>
                <url>https://test_url/test</url>
                <credentialsId>credid</credentialsId>
              </jenkins.plugins.nodejs.configfiles.NPMRegistry>
            </registries>
            <npm9Format>false</npm9Format>
          </jenkins.plugins.nodejs.configfiles.NPMConfig>
      

      We tested it for npm config file, maven settings and custom file. The behaviour is the same for all of them.

      Our workaround so far is changing the value in GlobalConfigFiles.xml and restarting the server.

            Unassigned Unassigned
            patrickk Patrick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: