Post Artifacts with Agentless Builds
We started to use agentless builds and I love that it is possible to push the logs back to the build.
In some cases it would be really useful if I could also post Artifacts, but I do not see any reference to this in the documentation.
https://www.jetbrains.com/help/teamcity/detaching-build-from-agent.html#Agentless+builds%27+licensing
To post into the log I use a command similar to this:
curl -v --request POST "https://tcbuild.opswat.com/app/rest/builds/id:<ID>/log" \
--data-binary "@<my/file>" \
--header "Content-Type: text/plain" --header "Authorization: Bearer <my_token>"
Is it possible to publish an Artifact?
I tried it in a lot of ways but was not successful so far…
Please sign in to leave a comment.
Currently, artifacts can only be uploaded from the build agent when the build is running, be it via the service messages or when the build has finished all the steps on the agent. Unfortunately, there is no way to upload artifacts from the external process yet.
There is a related feature request in our issue tracker, please vote for it and subscribe to receive updates: https://youtrack.jetbrains.com/issue/TW-69294
You may also find comments in the feature request useful as they describe a possible workaround.
Best regards,
Anton
Thank you, I voted for the feature request, I hope it will be added in the future.