Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to get artifacts from ContextProvider in web-panel?

Could you help me to get an artifact from ContextProvider in web-panel? I tried the following code but I can't find any method with URL or some path to get it.


public Map<String, Object> getContextMap(Map<String, Object> context) {
final ImmutableJobImpl plan = (ImmutableJobImpl) context.get("plan");
final BuildResultsSummaryImpl results = (BuildResultsSummaryImpl) context.get("resultSummary");

List<ArtifactLink> artifacts = results.getProducedArtifactLinks();
if (!artifacts.isEmpty()) {
for (ArtifactLink item: artifacts) {
/// TODO: Get artifact contents (item.getArtifact()??)

return context;

Please help.

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

311 views 0 7
Read article

Atlassian Community Events