public function runRelease()
 {
     try {
         $buddy = new Buddy(['accessToken' => 'yourAccessToken']);
         $release = new Release();
         $release->setRevision('new revision on server');
         $release->setComment('deploying new version of webpage');
         $resp = $buddy->getApiReleases()->runRelease($release, 'domain', 'projectName', 1);
         var_dump($resp);
         exit;
     } catch (BuddyResponseException $e) {
         echo $e->getMessage();
         exit;
     } catch (BuddySDKException $e) {
         echo $e->getMessage();
         exit;
     }
 }
 /**
  * @codeCoverageIgnore
  * @param Release $release
  * @param string $domain
  * @param string $projectName
  * @param int $scenarioId
  * @param null|string $accessToken
  * @return Release
  */
 public function runRelease(Release $release, $domain, $projectName, $scenarioId, $accessToken = null)
 {
     return $this->postJson($accessToken, ['revision' => $release->getRevision(), 'comment' => $release->getComment()], '/workspaces/:domain/projects/:project_name/release_scenarios/:release_scenario_id/releases', ['domain' => $domain, 'project_name' => $projectName, 'release_scenario_id' => $scenarioId])->getAsRelease();
 }