jenkinsci / java-client-api

A Jenkins API client for Java
MIT License
901 stars 469 forks source link

Enhancement: Artifact should offer a way to get the a URL and/or download the file #338

Open mivola opened 6 years ago

mivola commented 6 years ago

The Artifact class does not offer a #getUrl() method (just as JobWithDetails/BuildWithDetails). IMHO it would be a valuable feature to get the URL of the artifact to for further processing or allow a direct download. I know there is "buildWithDetails#downloadArtifact(Artifact a)" but that offers only an InputStream and furthermore the build(WithDetails) is not always available (and there is no artifact.getBuild() - see #339)

mivola commented 6 years ago

after some investigation, this should be easily possible after fixing #337 & #339

wzlee commented 5 years ago

How to download MavenArtifact?

DomiRusz24 commented 1 year ago

How to download MavenArtifact?

I am also looking for this...