From 5f01652cd50cd0023c6ee6c5288200f693e3f0b4 Mon Sep 17 00:00:00 2001
From: Neil Drumm <drumm@delocalizedham.com>
Date: Tue, 17 Dec 2024 17:14:29 +0000
Subject: [PATCH] Issue #3494567: Use the drupal_cms artifact for the cms
 project

---
 .../DrupalorgProjectPackageRelease.class.php                | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php b/drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php
index 461c46ab9..10065fde0 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);
-- 
GitLab