• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • groovy-plugin
    • None
    • Jenkins 2.1, Goovy-Plugin 2.2

      The following Groovy-Code in a Jenkins-Pipeline

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

      only prints Number 1, and not the other numbers.

          [JENKINS-34567] Groovy-Closures do not behave correctly

          Michael Krause created issue -
          Michael Krause made changes -
          Epic Link New: JENKINS-31152 [ 165808 ]
          Max Kovgan made changes -
          Link New: This issue is related to JENKINS-34633 [ JENKINS-34633 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170715 ] New: JNJira + In-Review [ 184009 ]

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

              Created:
              Updated: