getting build artifacts (using REST?)

Hi,

I'm looking for a mechinsm to retrieve information about artifacts that were produced by particular build. My two questions are:

1/ does the REST plugin support build artifact listing?

2/ if I wanted to provide the functionality in my own plugin, what is the support from the OpenAPI? I only found the jetbrains.buildServer.serverSide.artifacts.ArtifactsInfo class, but it is marked as deprecated.

Thanks for any info.

1 comment
Comment actions Permalink

Vojtech,

So far there is ability to list artifacts via REST API. It will hopefully appear in one of the next releases.

In open API you can use SBuild.getArtifactsDirectory to get access to the artifacts on disk.
Since 6.5, there is also SBuild.getArtifacts which is aware of hidden artifacts and provides a bit higher level of abstraction.

0

Please sign in to leave a comment.