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

Snippet generator sometimes produces incorrect snippets

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Component/s: pipeline
    • Labels:
      None
    • Similar Issues:

      Description

      Snippet generator sometimes produces incorrect snippets like:

      checkout scm: [$class: 'GitSCM', branches: [[name: '*/master']], extensions: [<object of type hudson.plugins.git.extensions.impl.CleanCheckout>], userRemoteConfigs: [[credentialsId: '4db1f14a-c479-48af-a3ea-da676bc2b051', url: 'https://github.com/XXXXXX/XXXXXXXXXX.git']]]
      

      Here the extensions: [<object of type hudson.plugins.git.extensions.impl.CleanCheckout>] doesn't look like a valid Groovy syntax.
      I think if the object reference can't be generated (probably it can be) it should be made more explicit that this construct does not work.

        Attachments

          Issue Links

            Activity

            erthad Timur Batyrshin created issue -
            jglick Jesse Glick made changes -
            Field Original Value New Value
            Link This issue duplicates JENKINS-26619 [ JENKINS-26619 ]
            jglick Jesse Glick made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 160920 ] JNJira + In-Review [ 196581 ]
            abayer Andrew Bayer made changes -
            Component/s pipeline-general [ 21692 ]
            abayer Andrew Bayer made changes -
            Component/s workflow-plugin [ 18820 ]

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              erthad Timur Batyrshin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: