Does anyone know if there is a way to manually upl...
# develocity
a
Does anyone know if there is a way to manually upload scans to an instance? I have some retrieved from another computer that failed to upload, but I would really like to get them in. I looked at the API docs but I couldn't find any POST /api/builds or any other endpoint that would say this is possible. Is there any undocumented way to do this? I suppose one could look at how the plugin uploads it?
g
If there is one, it's probably internal. There's nothing in the REST API. Maybe support can help you upload it.
j
@Antal János Monori we will give you an answer via the support ticket you opened. There is no publicly available API for this issue, but there is a workaround that we would like to share with our customers under guidance only.
j
Hi @Antal János Monori, as @Gabriel Feo mentioned (thanks for the assist 😅), there is no public API for this ,you would need to copy the unpublished build scans to the new computer. Ideally, if you kept the folder structure just copy them as is in Gradle user home, otherwise the files should be copied to (replace
DEVELOCITY_PLUGIN_VERSION
with the one used to capture the scan and
UUID
with the one found in the machine where the upload failed):
Copy code
~/.gradle/build-scan-data/<DEVELOCITY_PLUGIN_VERSION>/previous/<UUID>/
I have this
UUID
you can use as an example if needed: 1701072690532-8bd27ef1-40cd-4394-9a03-29ff8b5a5e69 You can then run
Copy code
./gradlew buildScanPublishPrevious
Let me know how this goes
👀 1
🆒 1
j
Thanks for this alternative approach @Jerome Prinet I had another solution in mind that would have required some Develocity configuration change.
a
@Jerome Prinet Thanks, that worked like a charm! 🙇
👌 1