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

0 votes

try ${bamboo.capabilityname}

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 11 hours ago in Jira Service Desk

Looking for anyone who has switched from Zendesk to Jira Service Desk

Hi Community! The Jira Service Desk marketing team is looking for customers who have successfully switched from Zendesk to Jira Service Desk!   We’d love to hear your thoughts on the pros and ...

16 views 0 1
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