Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
drupalorg
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupalorg
Commits
5f01652c
Commit
5f01652c
authored
4 months ago
by
Neil Drumm
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3494567
: Use the drupal_cms artifact for the cms project
parent
c272beb4
Branches
Branches containing commit
No related tags found
1 merge request
!312
Issue # 3494493: Documentation: Document Maintainer Widget
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php
+3
-3
3 additions, 3 deletions
...release_packager/DrupalorgProjectPackageRelease.class.php
with
3 additions
and
3 deletions
drupalorg_project/plugins/release_packager/DrupalorgProjectPackageRelease.class.php
+
3
−
3
View file @
5f01652c
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment