Page MenuHomePhorge

Mark artifacts latest on configured branches
ClosedPublic

Authored by tusooa on Dec 29 2025, 5:10 PM.
Tags
None
Referenced Files
F85636969: D259.1786725379.diff
Thu, Aug 13, 9:36 AM
F85636820: D259.1786714802.diff
Thu, Aug 13, 6:40 AM
F85636759: D259.1786709233.diff
Thu, Aug 13, 5:07 AM
F85636407: D259.1786675997.diff
Wed, Aug 12, 7:53 PM
Subscribers
None

Details

Summary

This provides a way to mark artifacts as latest. In LilyBuildConfig.add_repo, there is a new argument artifact_latest_branch_map, which is a mapping from branch name to a ref name. <STORAGE_DIR>/repos/<REPO_ID>/latest{,-good}/<REF_NAME> will point to the build dir of the latest or latest good build.

Type: add

Test Plan

Configure a repo with such a mapping {'servant': 'serv'}. Run a pipeline on servant that passes. Verify both latest and latest-good link are updated. Run a pipeline on servant that fails. Verify only latest link is updated. Run a pipeline on another branch. Verify no link is updated.

Diff Detail

Repository
rB lilybuild
Lint
Lint Not Applicable
Unit
Tests Not Applicable