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

Groovy-Closures do not behave correctly

XMLWordPrintable

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

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

              Created:
              Updated: