private function CircleCiManager::buildCircleCiApiRetrieveBuildsUrl in Build Hooks 8.2
Same name and namespace in other branches
- 3.x modules/build_hooks_circleci/src/CircleCiManager.php \Drupal\build_hooks_circleci\CircleCiManager::buildCircleCiApiRetrieveBuildsUrl()
Build the url to retrieve latest builds from circle ci for an environment.
Parameters
array $config: The configuration array from the plugin.
int $limit: Number of desired builds to retrieve.
Return value
string The url to call to get the builds.
1 call to CircleCiManager::buildCircleCiApiRetrieveBuildsUrl()
- CircleCiManager::retrieveLatestBuildsFromCircleciForEnvironment in modules/
build_hooks_circleci/ src/ CircleCiManager.php - Get the latest builds from Circle CI for and environment.
File
- modules/
build_hooks_circleci/ src/ CircleCiManager.php, line 137
Class
- CircleCiManager
- Class CircleCiManager.
Namespace
Drupal\build_hooks_circleciCode
private function buildCircleCiApiRetrieveBuildsUrl(array $config, $limit) {
$circleCiConf = $this->configFactory
->get('build_hooks_circleci.settings');
$apiKey = $circleCiConf
->get('circleci_api_key');
$branch = $config['branch'];
return $this
->buildCircleCiApiBasePathForEnvironment($config) . "tree/{$branch}?circle-token={$apiKey}&limit={$limit}";
}