public function BitbucketFrontendEnvironment::deploymentWasTriggered in Build Hooks 3.x
Determine if the deployment was triggered successfully.
Parameters
\Psr\Http\Message\ResponseInterface $response: Response for the trigger request.
Return value
bool TRUE if the deployment succeeded.
Overrides FrontendEnvironmentBase::deploymentWasTriggered
File
- modules/
build_hooks_bitbucket/ src/ Plugin/ FrontendEnvironment/ BitbucketFrontendEnvironment.php, line 267
Class
- BitbucketFrontendEnvironment
- Provides a 'Bitbucket pipelines' frontend environment type.
Namespace
Drupal\build_hooks_bitbucket\Plugin\FrontendEnvironmentCode
public function deploymentWasTriggered(ResponseInterface $response) : bool {
return $response
->getStatusCode() === 201;
}