public function closeBuild(Build\Build $build)
    {
        $uuid = $build->getUuid();

        $content = json_encode(['closed' => true]);
        $this->sendHttpRequest($this->config->getEndpoint().'/api/v2/builds/'.$uuid, 'PUT', array('content' => $content), array('Content-Type: application/json'));

        return $this->getBuildReport($uuid);
    }
public function closeBuild(Build\Build $build)
    {
        $uuid = $build->getUuid();

        $content = json_encode(['closed' => true]);
        $this->sendHttpRequest($this->config->getEndpoint().'/api/v2/builds/'.$uuid, 'PUT', array('content' => $content), array('Content-Type: application/json'));

        return $this->getBuildReport($uuid);
    }
public function closeBuild ( Build \ Build $ build ) { $ uuid = $ build -> getUuid ( ) ; $ content = json_encode ( [ 'closed' => true ] ) ; $ this -> sendHttpRequest ( $ this -> config -> getEndpoint ( ) . '/api/v2/builds/' . $ uuid , 'PUT' , array ( 'content' => $ content ) , array ( 'Content-Type: application/json' ) ) ; return $ this -> getBuildReport ( $ uuid ) ; }
Closes a build.

@return Report
Closes a build .