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

groovy variable multiassigment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 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.

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

              Created:
              Updated: