services:downstream_ci
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:downstream_ci [2026/11/08 10:12] – akraitman | services:downstream_ci [2026/11/23 16:14] (current) – akraitman | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| Once the migration to the RDU3 Jenkins instance is complete, the temporary migration branch can be retired and the normal production configuration workflow can be used. | Once the migration to the RDU3 Jenkins instance is complete, the temporary migration branch can be retired and the normal production configuration workflow can be used. | ||
| + | |||
| + | |||
| + | ===== Job Definitions ===== | ||
| + | |||
| + | Jobs are Jenkins Job Builder YAML in: | ||
| + | |||
| + | < | ||
| + | https:// | ||
| + | </ | ||
| + | |||
| + | * Definition: ''< | ||
| + | * Build script: ''< | ||
| + | |||
| + | To change a job: | ||
| + | |||
| + | - Branch from '' | ||
| + | - Merge. The '' | ||
| + | |||
| + | To test a branch before merging: | ||
| + | |||
| + | - Run '' | ||
| + | - Only that job is updated. It stays on the branch version until the next '' | ||
| + | |||
| + | Do not edit jobs in the Jenkins UI. The next '' | ||
| + | |||
| + | |||
| + | ===== Jenkins Access ===== | ||
| + | |||
| + | Login is Red Hat SSO. Permissions are roles in '' | ||
| + | |||
| + | Roles: '' | ||
| + | |||
| + | To give someone access: | ||
| + | |||
| + | - Add '' | ||
| + | - Open an MR to '' | ||
| + | - Restart the Jenkins pod to load it (repository README). | ||
| + | |||
| + | Notes: | ||
| + | |||
| + | * "< | ||
| + | * Roles assigned in the Jenkins UI are lost at the next restart. | ||
| Line 62: | Line 104: | ||
| The Jenkins build agents are RHEL 9 virtual machines running through OpenShift Virtualization. | The Jenkins build agents are RHEL 9 virtual machines running through OpenShift Virtualization. | ||
| + | |||
| + | Builders/ | ||
| Example agent types include: | Example agent types include: | ||
| Line 381: | Line 425: | ||
| <code bash> | <code bash> | ||
| - | oc project ceph-downstream-tenant--runtime-int | + | oc project ceph-downstream-tenant--pipeline |
| oc get vmi | oc get vmi | ||
| </ | </ | ||
| Line 430: | Line 474: | ||
| * Do not modify or interrupt active Jenkins builds. | * Do not modify or interrupt active Jenkins builds. | ||
| * Stop the port-forward process using '' | * Stop the port-forward process using '' | ||
| + | |||
| + | |||
| + | ===== Debugging Failed Builds and Builders ===== | ||
| + | |||
| + | ==== A build fails ==== | ||
| + | |||
| + | - Open the build console. Read the first '' | ||
| + | - Bare '' | ||
| + | - List the recent builds. Note the time the failure started or changed. | ||
| + | - Match that time against commits in '' | ||
| + | - Open ''< | ||
| + | |||
| + | Known signatures: | ||
| + | |||
| + | * '' | ||
| + | * '' | ||
| + | |||
| + | ==== A build waits for a builder ==== | ||
| + | |||
| + | - Manage Jenkins -> Nodes. Open the log of any offline agent. | ||
| + | - List the builder VMs and their disks. | ||
| + | - Read the namespace events. | ||
| + | - DataVolume in '' | ||
| + | - Read the controller log. It holds about 30 minutes. | ||
| + | |||
| + | <code bash> | ||
| + | oc -n ceph-downstream-tenant--pipeline get vm, | ||
| + | oc -n ceph-downstream-tenant--pipeline get events --sort-by=.lastTimestamp | tail -40 | ||
| + | oc -n ceph-downstream-tenant--pipeline get appliedclusterresourcequota -o yaml | ||
| + | oc -n ceph-downstream-tenant--pipeline logs deploy/ | ||
| + | </ | ||
| + | |||
| ===== Managing Jenkins Secrets with git-crypt ===== | ===== Managing Jenkins Secrets with git-crypt ===== | ||
services/downstream_ci.1794132762.txt.gz · Last modified: by akraitman
