Page MenuHomePhorge

Mark artifacts latest on configured branches
Needs ReviewPublic

Authored by tusooa on Mon, Dec 29, 5:10 PM.

Details

Reviewers
None
Group Reviewers
O2: lilybuild
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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 507
Build 996: Invoke BuildbotBuildbot build #708
Build 995: arc lint + arc unit