Groovy-Closures do not behave correctly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Critical
    • Component/s: groovy-plugin
    • None
    • Environment:
      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.

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

              Created:
              Updated: