When a build is run, artifacts containing statistics are produced by the test suite. However when the REST api is queried it claims that there are no artifacts present. This is not the case - I can browse to them from the Bamboo Dashboard, or fetch them using Curl or Apache-HTTP.
Does anyone have any idea what might be causing this?
The most common pitfall when querying for artifacts or issues is switching Plan key (PROJECT-PLAN-67) with a Job key (PROJECT-PLAN-JOB-67) in your REST query.
Or mark your artifact as shared.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm seeing the same problem and it is because this call only works for shared artifacts in 5.8.1 at least. Verified by experimentation.
Prior to sharing
http://builder:8085/rest/api/latest/plan/UTILS-SVNPERM/artifact?expand=artifacts
should result in a list of 1 artifact definition but I see the following. I'm baffled.
This XML file does not appear to have any style information associated with it. The document tree is shown below. <artifacts expand="artifacts"><link href="http://builder:8085/rest/api/latest/plan/UTILS-SVNPERM/artifact" rel="self"/><artifacts start-index="0" max-result="0" size="0"/></artifacts>
after Sharing
<artifacts expand="artifacts"><link href="http://builder:8085/rest/api/latest/plan/UTILS-SVNPERM/artifact" rel="self"/><artifacts start-index="0" max-result="1" size="1"><artifact><id>82575483</id><name>Reports</name><location>.</location><copyPattern>svnAcc*.*</copyPattern><shared>true</shared></artifact></artifacts></artifacts>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.