I have a Bamboo Build Plan, with the following set of tasks.
- Source Code Checkout
- Artifactory Generic Resolve (To Get the zip file from Artifactory)
- Script (To Extract the contents of zip file and to set to CATALINA_HOME & PATH environment variable)
- Ant (For Build)
Task 3 has the following content in it:
<span>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="$PATH:$CATALINA_HOME/bin"</span>But when I execute 4th Task (Ant), the Build is not considering the CATALINA_HOME & 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?