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

Groovy-Closures do not behave correctly

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: groovy-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.1, Goovy-Plugin 2.2
    • Similar Issues:

      Description

      The following Groovy-Code in a Jenkins-Pipeline

      1.upto(40, {
      println "Number ${it}"
      })

      only prints Number 1, and not the other numbers.

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                vjuranek vjuranek
                Reporter:
                m_k Michael Krause
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: