Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82373937
HarbormasterBuildWorker.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Sep 11, 01:29
Size
606 B
Mime Type
text/x-php
Expires
Fri, Sep 13, 01:29 (2 d)
Engine
blob
Format
Raw Data
Handle
20688780
Attached To
rPH Phabricator
HarbormasterBuildWorker.php
View Options
<?php
/**
* Start a build.
*/
final
class
HarbormasterBuildWorker
extends
HarbormasterWorker
{
public
function
doWork
()
{
$data
=
$this
->
getTaskData
();
$id
=
idx
(
$data
,
'buildID'
);
$viewer
=
$this
->
getViewer
();
$build
=
id
(
new
HarbormasterBuildQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
))
->
executeOne
();
if
(!
$build
)
{
throw
new
PhabricatorWorkerPermanentFailureException
(
pht
(
'Invalid build ID "%s".'
,
$id
));
}
id
(
new
HarbormasterBuildEngine
())
->
setViewer
(
$viewer
)
->
setBuild
(
$build
)
->
continueBuild
();
}
}
Event Timeline
Log In to Comment