If you are talking about the tasks provided by Artifactory for Bamboo | Atlassian Marketplace, you will only be able to use them in JAVA specs. YAML specs do not have the ability to configure those tasks.
As you mentioned (...or we need to use curl?), you will need to run your calls using a script task to make it work in a plan configured by YAML specs.
I hope that answers your question.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events