It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Download latest successful artifact

How can I get the latest successful artifact from bamboo?

The following is provided:

https://*.jira.com/builds/browse/TC-TESTS/latestSuccessful

and i can get:

https://*.jira.com/builds/browse/TC-TESTS/latest/artifact/SVNREVISION/SVN-Revision/svn_revision

but not

https://*.jira.com/builds/browse/TC-TESTS/latestSuccessful/artifact/SVNREVISION/SVN-Revision/svn_revision

Is this supported or do I have to scrape the REST API?

3 answers

1 accepted

2 votes
Answer accepted

Just scraped the REST API results:

https://*.jira.com/builds/rest/api/latest/result/PLAN-JOB?max-results=1&buildstate=Successful

You can now just do:

https://*.jira.com/builds/rest/api/latestSuccessful/artifact/SVNREVISON/SVN-Revision/svn_revision

But with the newer Bamboo REST API you can get the revision number directly from the API.

Nice share. thank u Matt

As at 6.5 I used, from this example YML plan spec

---

project:
  key: DS
  plan:
  key: DSCM
  name: Configuration Management

<snip>
      artifacts:
      - name: cm
      path: '*.cm'

used the following command, note the combination of project and plan key.

curl '<url>/browse/DS-DSCM/latestSuccessful/artifact/shared/cm/example.cm'

Suggest an answer

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

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

321 views 0 6
Read article

Community Events

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

Events near you