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

Prune tags during fetch shown incorrectly in pipeline syntax generator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-plugin
    • None
    • Git plugin 4.3.0 - June 19, 2020

      JENKINS-40529 added support to optionally prune tags during the fetch operation. Unfortunately, the trait that has been added does not render correctly in the pipeline syntax generator.

      It is shown as:

      checkout([$class: 'GitSCM', branches: [[name: '*/master']], 
      extensions: [<object of type hudson.plugins.git.extensions.impl.PruneStaleTag>], 
      gitTool: 'Default', 
      submoduleCfg: [], 
      userRemoteConfigs: [[]]])
      

      Other extensions are correctly rendered like this:

      checkout([$class: 'GitSCM', branches: [[name: '*/master']], 
      extensions: [[$class: 'PruneStaleBranch']], 
      gitTool: 'Default', submoduleCfg: [], 
      userRemoteConfigs: [[]]])
      

      Note that the $class: PruneStaleBranch is shown as an extension instead of '<object of type ...>'

            nfalco Nikolas Falco
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: