Is there a way to include a capability's location in an Inline Script task?

I have a Script task for creating a JAR file that looks like this:

$BAMBOO_CAPABILITY_JAR -cvf ../target/static.war *

As far as I could tell, this is the way to access the value of the jar capability of the agent running my task (it is set as a requirement on the job.

However, $BAMBOO_CAPABILITY_JAR is evaluating to nothing, so my Script task is failing.

So... if I want to include the location of a capability in my in an inline script, how should I do it?

1 answer

This widget could not be displayed.

try ${bamboo.capabilityname}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

182 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you