]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add commit link and diff to RPM build job logs 11828/head
authorMichał Kępień <michal@isc.org>
Mon, 11 May 2026 15:41:50 +0000 (17:41 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 11 May 2026 15:41:50 +0000 (17:41 +0200)
The output of update_rpms.py is terse, making it difficult to verify its
actions.  Add a commit link and "git show" output to the log of every CI
job running the update_rpms.py script in "build" mode to facilitate
double-checking its actions.

.gitlab-ci.yml

index afaffcb647c0c2de5b766195bb0e583967e512c9..fe0f469105607e55905c78093669a0a4d62eba38 100644 (file)
@@ -2061,8 +2061,14 @@ assign-milestones:
 
 # Jobs to update RPMs
 
-.rpm-build-job: &rpm_build_job
+.rpm-build-job-common: &rpm_build_job_common
   <<: *manual_release_job_qa
+  after_script:
+    - git -C bind/ remote get-url origin | sed "s|\.git$|/-/commit/$(cat commit.txt)|"
+    - git -C bind/ show --color "$(cat commit.txt)" | sed "s|^$| |"
+
+.rpm-build-job: &rpm_build_job
+  <<: *rpm_build_job_common
   needs:
     - job: publish
       artifacts: false
@@ -2071,7 +2077,7 @@ assign-milestones:
       "${CI_PROJECT_DIR}"/bind9-qa/releng/update_rpms.py build --service "${SERVICE}" --version "${CI_COMMIT_TAG}"
 
 .rpm-build-job-private: &rpm_build_job_private
-  <<: *manual_release_job_qa
+  <<: *rpm_build_job_common
   needs:
     - job: publish-private
       artifacts: true