mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Associate Harbormaster build target with leases
Summary: Ref T1049. This ensures the Harbormaster build target is associated with leases, so in the future we can query things and find out whether builds are still running with associated leases. Test Plan: Leased a host, checked the DB and saw the field populated. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: joshuaspence, Korvin, epriestley Maniphest Tasks: T1049 Differential Revision: https://secure.phabricator.com/D10870
This commit is contained in:
parent
c69d465891
commit
254b394f2c
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ final class HarbormasterLeaseHostBuildStepImplementation
|
|||
// Create the lease.
|
||||
$lease = id(new DrydockLease())
|
||||
->setResourceType('host')
|
||||
->setOwnerPHID($build_target->getPHID())
|
||||
->setAttributes(
|
||||
array(
|
||||
'platform' => $settings['platform'],
|
||||
|
|
Loading…
Reference in a new issue