title: Unable to access environment variable in Bamboo Build Plan
body: <p>I have a Bamboo Build Plan, with the following set of tasks.</p>
  <ol>
  <li>Source Code Checkout</li>
  <li>Artifactory Generic Resolve (To Get the zip file from Artifactory)</li>
  <li>Script (To Extract the contents of zip file and to set to CATALINA_HOME &amp; PATH environment variable)</li>
  <li>Ant (For Build)</li>
  </ol>
  <p><strong>Task 3 has the following content in it:</strong></p>
  <pre><code>APP_HOME=${bamboo.build.working.directory}
  unzip $APP_HOME/tomcat/apache-tomcat-6.0.45-windows-x64.zip
  export CATALINA_HOME=$APP_HOME/tomcat/apache-tomcat-6.0.45
  export PATH=&quot;$PATH:$CATALINA_HOME/bin&quot;
  </code></pre>
  <p>But when I execute 4th Task (Ant), the Build is not considering the CATALINA_HOME &amp; PATH variable which is set as part of Task 3. What is wrong here? Why am I not able to access the environment variable that is set in Task 3?</p>