Skip to content
Snippets Groups Projects
Commit 5f01652c authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

Issue #3494567: Use the drupal_cms artifact for the cms project

parent c272beb4
Branches
No related tags found
1 merge request!312Issue # 3494493: Documentation: Document Maintainer Widget
......@@ -181,12 +181,12 @@ class DrupalorgProjectPackageRelease implements ProjectReleasePackagerInterface
throw new Exception(format_string('%release_title does not have a VCS repository defined', ['%release_title' => $this->release_node->title]));
}
if ($this->project_short_name === 'drupal_cms') {
if ($this->project_short_name === 'cms') {
// Use the CI build instead.
try {
$gitlab_project_id = versioncontrol_project_repository_load($this->project_node->nid)->gitlab_project_id;
$client = new GuzzleHttp\Client();
$response = $client->request('GET', 'https://git.drupalcode.org/api/v4/projects/' . $gitlab_project_id . '/jobs/artifacts/' . urlencode($this->git_label) . '/raw/drupal-cms.zip', [
// 157093 is the GitLab project ID for drupal_cms.
$response = $client->request('GET', 'https://git.drupalcode.org/api/v4/projects/157093/jobs/artifacts/' . urlencode($this->git_label) . '/raw/drupal-cms.zip', [
'query' => ['job' => 'drupal.org release'],
]);
file_unmanaged_save_data((string) $response->getBody(), $this->filenames['full_dest_zip'], FILE_EXISTS_REPLACE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment