Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Problem/Motivation
Adding MkDocs files to a project triggers the 'pages' job which builds the documentation site. But there is very little information shown in the log on what has actually been done.
The pages job log has
Building documentation to directory: /builds/project/{project name}/public
but nothing else useful.
The pages:deploy log is not viewable.
Proposed resolution
Give some information on what has been built and where the new documentation exists, and provide a url
Issue fork gitlab_templates-3485285
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedHere is an example pipeline
https://git.drupalcode.org/project/scheduler/-/pipelines/328214
Is the pages:deploy job log viewable by a user with higher authority than the project maintainer?
The documentation site is https://project.pages.drupalcode.org/scheduler but this is not shown in any job log or help page. Maybe we can at minimum add this to the pages log?
Comment #3
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedThe only place where we can add some useful logs is here: https://git.drupalcode.org/project/gitlab_templates/-/blob/main/includes...
pages:deploy
is a GitLab specific job, so we have no control, but we can definitely add things to thepages
job. There is an CI variable with the URL to the generated site, so we can echo that.Comment #5
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedTested here
https://git.drupalcode.org/project/scheduler/-/pipelines/330500
Is there anything else we can add?
Comment #6
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedI suggested a small change in the MR.
Comment #7
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commented@fjgarlin,
How about adding a line of dashes as a divider?
Comment #8
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedThat's almost exactly the comment that I made in the MR.
DIVIDER
is just a bunch of*
characters.Comment #9
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commentedWorking on it.
Comment #10
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedPerfect. Look at other examples of how it is used within the file for reference.
Comment #11
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commented@fjgarlin ,
Added the divider as desired.
Kindly check and merge :)
Comment #12
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedI gave feedback in the MR.
Comment #13
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commented@fjgarlin, done with the changes
Please have a look.
Comment #14
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedFeedback in the MR.
Comment #15
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commented@fjgarlin, please check.
Comment #16
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedI left a further comment in the MR
Comment #17
lavanyatalwar CreditAttribution: lavanyatalwar as a volunteer and at Innoraft for Drupal India Association commented@fjgarlin @jonathan1055,
Removed the extra '\n' character and '\' before $CI_PAGES_URL.
Kindly review :)
Comment #18
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThanks for fixing the message. Here is the test before
https://git.drupalcode.org/project/scheduler/-/jobs/3272612
and after
https://git.drupalcode.org/project/scheduler/-/jobs/3279263
All looks good now, but I will make an adjustment for that extra $divider variable in the 'check environment' job
Comment #19
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedWith this MR and $DIVIDER removed - 'environment check' ended green because the pipe syntax was removed and the 'exit 1' was therefore not executed
https://git.drupalcode.org/project/scheduler/-/jobs/3279475
With latest commit to this MR, 'environment check' has the correct message box and ends red as required.
https://git.drupalcode.org/project/scheduler/-/jobs/3280383
I have resolved the various MR comment threads where the code has been fixed, and also reverted the temporoary change that allowed the 'pages' job to be tested.
Unrelated pipeline fail, due to 'check versions' showing that 11.0.6 and 10.3.7 have been released. This is RTBC from me, but will let @fjgarlin do the final review.
Comment #20
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedOh wow, I didn't catch the
exit 1
being ignored, thanks for testing it!Did a final check, agree it's good to RTBC and merge.
Comment #21
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commentedDownstream with keycdn running pages: https://git.drupalcode.org/issue/gitlab_templates-3485285/-/pipelines/33...
Comment #23
fjgarlin CreditAttribution: fjgarlin as a volunteer and at Drupal Association commented