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

Git plugin writing out incorrect settings


    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • Jenkins: 1.653
      git-client: 1.19.6
      git: 2.4.3

      Consider the following excerpt from a job's config.xml:

      <scm class="hudson.plugins.git.GitSCM" plugin="git@2.4.3">
      <url>[URL GOES HERE]</url>
      <submoduleCfg class="list"/>
      <buildChooser class="hudson.plugins.git.util.InverseBuildChooser"/>
      <buildChooser class="hudson.plugins.git.util.AncestryBuildChooser">
      <excludedMessage>[REGEX HERE]</excludedMessage>

      After reloading configurations from disk, the appropriate settings are displayed in the Additional Behvaiors area of the job's git configuration. However, if I change any of the settings and save the job, the <extensions> element is removed from the XML entirely, and the related configurations are annihilated.

      Additionally, and this may require a new issue, out of these behaviors, only the first one is used: if I move the AncestryBuildChooser to the top of the element, only the commits younger than 14 days are built, but the InverseBuildChooser setting is ignored. If left in the current configuration, only the InverseBuildChooser setting is used, but Jenkins starts builds rapidly to catch up with the untested old commits, the majority of which will fail the build due to various changes over the years.

            markewaite Mark Waite
            zmeggyesi Zalan Meggyesi
            4 Vote for this issue
            8 Start watching this issue