public function execute()
    {

        $message = $this->phpci->interpolate($this->message);
        $successfulBuild = $this->build->isSuccessful() ? 'Success' : 'Failed';
        $push = new Push($this->api_key);
        $flowMessage = TeamInboxMessage::create()
            ->setSource("PHPCI")
            ->setFromAddress($this->email)
            ->setFromName($this->build->getProject()->getTitle())
            ->setSubject($successfulBuild)
            ->setTags(['#ci'])
            ->setLink($this->build->getBranchLink())
            ->setContent($message);

        if (!$push->sendTeamInboxMessage($flowMessage, array('connect_timeout' => 5000, 'timeout' => 5000))) {
            throw new \Exception(sprintf('Flowdock Failed: %s', $flowMessage->getResponseErrors()));
        }
        return true;
    }
public function execute()
    {

        $message = $this->phpci->interpolate($this->message);
        $successfulBuild = $this->build->isSuccessful() ? 'Success' : 'Failed';
        $push = new Push($this->api_key);
        $flowMessage = TeamInboxMessage::create()
            ->setSource("PHPCI")
            ->setFromAddress($this->email)
            ->setFromName($this->build->getProject()->getTitle())
            ->setSubject($successfulBuild)
            ->setTags(['#ci'])
            ->setLink($this->build->getBranchLink())
            ->setContent($message);

        if (!$push->sendTeamInboxMessage($flowMessage, array('connect_timeout' => 5000, 'timeout' => 5000))) {
            throw new \Exception(sprintf('Flowdock Failed: %s', $flowMessage->getResponseErrors()));
        }
        return true;
    }
public function execute ( ) { $ message = $ this -> phpci -> interpolate ( $ this -> message ) ; $ successfulBuild = $ this -> build -> isSuccessful ( ) ? 'Success' : 'Failed' ; $ push = new Push ( $ this -> api_key ) ; $ flowMessage = TeamInboxMessage :: create ( ) -> setSource ( "PHPCI" ) -> setFromAddress ( $ this -> email ) -> setFromName ( $ this -> build -> getProject ( ) -> getTitle ( ) ) -> setSubject ( $ successfulBuild ) -> setTags ( [ '#ci' ] ) -> setLink ( $ this -> build -> getBranchLink ( ) ) -> setContent ( $ message ) ; if ( ! $ push -> sendTeamInboxMessage ( $ flowMessage , array ( 'connect_timeout' => 5000 , 'timeout' => 5000 ) ) ) { throw new \ Exception ( sprintf ( 'Flowdock Failed: %s' , $ flowMessage -> getResponseErrors ( ) ) ) ; } return true ; }
Run the Flowdock plugin.
@return bool
@throws \Exception
Run the Flowdock plugin .