Fixing Github postbacks.
This commit is contained in:
parent
5213a00a3a
commit
13dbcc4260
|
@ -67,19 +67,16 @@ class GithubBuild extends RemoteGitBuild
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$url = \b8\Config::getInstance()->get('phpci.url');
|
$phpciUrl = \b8\Config::getInstance()->get('phpci.url');
|
||||||
$params = array( 'state' => $status,
|
$params = array( 'state' => $status,
|
||||||
'target_url' => $url . '/build/view/' . $this->getId());
|
'target_url' => $phpciUrl . '/build/view/' . $this->getId());
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'Authorization: token ' . $project->getToken(),
|
'Authorization: token ' . $project->getToken(),
|
||||||
'Content-Type: application/x-www-form-urlencoded'
|
'Content-Type: application/x-www-form-urlencoded'
|
||||||
);
|
);
|
||||||
|
|
||||||
$http->setHeaders($headers);
|
$http->setHeaders($headers);
|
||||||
$res = $http->request('POST', $url, json_encode($params));
|
$http->request('POST', $url, json_encode($params));
|
||||||
|
|
||||||
var_dump($res);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue