groovy variable multiassigment

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor
    • Component/s: groovy-plugin
    • None

      Code like:

      Boolean A = true
      Boolean B = true
      Boolean C = true
      
      A = B = C = false
      
      println( A )
      println( B )
      println ( C )
      

      gives following results when executed in jenkins
      null
      null
      false

      but in script console or if function is marked as @NonCPS
      false
      false
      false

      which is expected behavior.

            Assignee:
            vjuranek
            Reporter:
            Pawel Xj
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: