You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I'm trying to use Ant along with Ivy, and am trying to use Ant to do a user-install of ivy. This command works locally (and on the default Ubuntu elastic bamboo image when run as a Script task):
ant -f ${ANT_HOME}/fetch.xml -Ddest=user ivy
But when I try using the Ant build task configured like so:
I keep getting this error in my logs:
Buildfile: ${ANT_HOME}/fetch.xml does not exist!
But I see in the blue log box for the Ant task that ANT_HOME is defined:
I've verified that the fetch.xml file does exist in /opt/apache-ant-1.10.5, so what am I doing wrong?
Hi @Dov Frankel
Usually, the task body does not resolve variables from the terminal. The variable ANT_HOME does not exist in the Bamboo application variable context. You should be able to find a variable called bamboo_capability_system_builder_ant_<name> where <name>is the label you gave to your ANT capability when creating it. You can find the right variable in your build logs.
Your test works on a script task because the variable you add there is evaluated on the terminal and therefore the variable is available.
Please let me know if that makes sense to you.
Thanks! I was able to use:
${bamboo.capability.system.builder.ant.Ant 1.10}/fetch.xml
It took a little tinkering to get the naming right, but that worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You are welcome!
I'm glad to see that you can now move forward.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.