-
Notifications
You must be signed in to change notification settings - Fork 105
Building Uyuni docs for the Open Build Service
-
You have uyuni-docs-helper container set up, see https://github.com/uyuni-project/uyuni-docs-helper/tree/main.
-
You have access to build.opensuse.org
-
From your local git checkout of uyuni-docs in parameters.yml verify that the default value for
site.url
is enabled for uyuni-project.org.site: - attribute: title value: "Uyuni Documentation" - attribute: start_page value: "uyuni::index" - attribute: url value: https://www.uyuni-project.org/uyuni-docs/
-
Check the Uyuni version number in the parameters.yml. This should be adjusted to the release version.
asciidoc: - attribute: productname value: "Uyuni" - attribute: productnumber value: "2024.01" - attribute: docversion value: "2024.01" - attribute: minorversion value: "2024.01"
-
Check the following attributes in the parameters.yml ensuring the file version numbers are correct. These numbers can be found in the OBS package spec files. For example:
salt.spec
:asciidoc: - attribute: opensuse-version value: 15.5 - attribute: saltversion value: 3006.0 - attribute: postgresql value: PostgreSQL - attribute: postgresql-version value: 14 // for Uyuni. For SUMA it is 16 - confirm this! - attribute: sles-version value: 15 - attribute: sp-version value: SP5 #use for normal text - attribute: sp-vert value: sp5 #use for terminal block - attribute: sp-version-l value: sp5
-
Build the OBS packages. From the local checkout directory on the command line, run:
examplemake clean make configure-uyuni make obs-packages-uyuni
-
Once packages are built, configure the correct environment variables for OBS:
exampleOBS_USER=keichwa OBS_USER=jcayouette OBS_USER=omaric
-
Add the target OBS repo. For Uyuni, use:
exampleOBS_REPO=systemsmanagement:Uyuni:Master
-
Checkout the document package from OBS:
osc -A https://api.opensuse.org bco $OBS_REPO uyuni-docs_en
If this fails with a 404, first login to your account at build.opensuse.org, then try again.
-
Copy the two new packages (uyuni-docs_en-pdf.tar.gz and uyuni-docs_en.tar.gz) located in build/packages into:
build/home:$OBS_USER:branches:$OBS_REPO/uyuni-docs_en
-
Change into the OBS checkout dir:
cd home:$OBS_USER:branches:$OBS_REPO/uyuni-docs_en
-
Update the changes file.
For Uyuni, it is named:
-
uyuni-docs_en.changes
osc vc uyuni-docs_en.changes
-
-
Copy the latest changes from CHANGELOG.md in the
uyuni-docs
repo. Paste the changes under the timestamp, and update and adjust for correct line length and spelling. Do not to use acronyms. -
The release number should be the topmost entry in this file and must be bumped for each new release. It should look something like this:
example------------------------------------------------------------------- Wed December 19 15:16:07 UTC 2023 - FirstName LastName <USER-EMAIL@suse.com> - Version 2024.12 <---- BUMP VERSION * Updated wording for prometheus section * Jeos VM update * Port 8050 for graphical console display * Content life-cycle docs are not enough for customer to understand (bsc#1137955) * Salt boot formula fails for SLES11 SP3 terminal (bsc#1136857) * Certificate verify failed when using vmware esxi virtual host gatherer (bsc#1136561) -------------------------------------------------------------------
-
The changes file must be located in the build/home:$OBS_USER:branches:$OBS_REPO/susemanager-docs_en directory, along with the package files you created earlier.
-
For Uyuni, you need to update the version release number in the .spec files. Open the following file in your text editor, and update the
Version:
entry (around L19) with the version you are preparing:-
uyuni-docs_en.spec
exampleName: uyuni-docs_en Version: 2025.05 Release: 0
Save the files.
-
-
Check in the changes. This will also start the build:
osc ci -m "update"
-
It will take about 15 minutes for all the packages to build. You can check the build results in your home project with command:
osc pr
Alternatively, you can go to the OBS site to monitor progress.
-
When you are certain that document packages are built properly on OBS, submit a service request to release engineers on Slack. Use channel #team-multi-linux-manager-docs to send message to @multi-linux-manager-releng.
osc sr -m 'update'
After a successful review, they will accept the service request (SR).
-
Proceed with the next stage, Publishing to uyuni-project.org.
-
Previous: Uyuni GitHub actions update
-
Up: For more topics on building documentation, see Building documentation
