-
Notifications
You must be signed in to change notification settings - Fork 160
Can ArtifactoryBuildInfoClient expose response from Artifactory? #31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hey guys, Any plans for exposing Artifactory responses to the clients? |
Hi Tushar, a. There are two methods in the ArtifactoryBuildInfoClient class for which you'd like us to expose JSon response - deployArtifact() and sendBuildInfo(). [0] = "repo" -> "libs-snapshot-local" b. For sendBuildInfo() however, Artifactory does not return a JSon response. It only returns an HTTP code that is used by the client as an indication for the success or failure of the build info deployment. |
Yes, that seems logical. Thanks! |
The following Jira issue has been opened to track this request: |
The code has been committed to GitHub.
|
Hi, I just verified that the response contains metadata sent back by Artifactory REST API. Thanks for the change! I have a comment though. The metadata is being exposed in an un-typed Map. Since the metadata has a nested structure, a Map is not a convenient and type-safe structure to deal with. It would be great if the ArtifactoryResponse itself has fields (possibly nested) corresponding to properties in the JSON response. This will give the client the flexibility to easily use the response object as they need. Thx |
Thanks for the feedback Tushar. |
Hello, I tried out the new response object - it works perfect! Thx |
Hi Tushar, |
Hi, Is it possible to read the ArtifactoryUploadResponse after executing the gradle artifactoryPublish task? We are looking to capture the path of the deployed artefact for later consumption in the gradle script. Many thanks |
Hello,
I am using the build-info-client module to upload content to Artifactory. I noticed that the ArtifactoryBuildInfoClient.deployArtifact() or sendBuildInfo() methods do not expose the response returned by Artifactory API.
This response has some interesting metadata that I'd like to use. Is this something that can be picked up?
The text was updated successfully, but these errors were encountered: