diff --git a/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php b/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php index 461c46ab9dada341531c624441f38fc24a7878c0..10065fde084ba15c016c3199a0beb2d2284e891f 100644 --- a/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php +++ b/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php @@ -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);