title: how to access folder variables across pipeline stages?
body: <p>I am trying to create multiple pipeline jobs under a folder. Under this folder I have created some folder properties. I am having a hard time to use this folder properties across multiple stages in a job.</p>
  
  <p>plugin used : <a href="https://wiki.jenkins.io/display/JENKINS/Folder+Properties+Plugin" rel="nofollow noreferrer">https://wiki.jenkins.io/display/JENKINS/Folder+Properties+Plugin</a></p>
  
  <pre><code>def region
  pipeline {
      agent any
      stages {
          stage('Assign values to global properties') {
              steps {
                  withFolderProperties{
                      region = "${env.appRegion}"
                  }       
              }
          }
          stage('Print') {
              steps {
                  print(region)      
              }
          }
      }
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Expected a step @ line 8, column 21.
                         region = "${env.appRegion}"
  </code></pre>
  
  <p>Thanks in Advance</p>