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

groovy variable multiassigment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • groovy-plugin
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: