Weblogic Remote deployment using ANT

I am using Teamcity 9 and i am trying to deploy a war to weblogic using ANT using WLDeploy task.To set the env variable for this task i have added  setWLSEnv.sh to the bash_profile and i can see the env variables in AGENT parameters.
When i try to run the ANT build step the deploy task is throwing an error due to uanavailable  CLASSPATH
However when i run the ANT file on the AGENT host, everything works fine.

Looks like team city is not hounring the env vabraiables set in the AGENT.
Can any one help me out on how to set the env variables using setWLSEnv.sh?


1 comment
Comment actions Permalink

Hello Ajay,

How do you access CLASSPATH parameter in the build script? Please use "env." prefix: "env.CLASSPATH"


Please sign in to leave a comment.