Tayko Fox
Tayko Fox

Reputation: 1

Alter an already published build

Is there a way to alter a build using the CLI after having published it?

UseCase: A deployer (be it automated or manual) wants to add additional files (e.g. Testresult-logs) to an already published build (because they need very long to be created but the artifacts of the fresh build should be published asap).

When I redo a jfrog rt bp over and over again I get "new" builds with the same description (same buildnumer etc.) instead of overwriting/extending existing build.

Appreciating any hint :-)

Upvotes: 0

Views: 103

Answers (1)

Ariel Kabov
Ariel Kabov

Reputation: 866

The main idea of the buildinfo in Artifactory is that they are immutable, which means they cannot be modified post publish. This is to make sure the integrity of them.

In your case, a possible way to achieve this may be: When publishing the artifacts themselves, you might want to not publish the buildinfo. You can collect buildinfo through your build cycle, and publish everything as a single buildinfo object after all the tests.

Upvotes: 2

Related Questions