You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.