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

Prune tags during fetch shown incorrectly in pipeline syntax generator

    Details

    • Similar Issues:
    • Released As:
      Git plugin 4.3.0 - June 19, 2020

      Description

      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 ...>'

        Attachments

          Issue Links

            Activity

            Hide
            nfalco Nikolas Falco added a comment -

            A getter method is missing to make the pipeline sysntax works correctly.

            Show
            nfalco Nikolas Falco added a comment - A getter method is missing to make the pipeline sysntax works correctly.
            Hide
            markewaite Mark Waite added a comment -

            Thanks for investigating Nikolas Falco!

            Show
            markewaite Mark Waite added a comment - Thanks for investigating Nikolas Falco !

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: