]> git.ipfire.org Git - thirdparty/git.git/commit
ci/lib: fix "CI setup" sections with GitLab CI
authorPatrick Steinhardt <ps@pks.im>
Thu, 12 Dec 2024 06:47:17 +0000 (07:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Dec 2024 07:57:21 +0000 (16:57 +0900)
commitc6b43f663eb252deb28cfff79e1ccdefed87c971
tree0a1c233e31f85e4f8a83ecd0b813a8e58be8a211
parentd2ca12020ffb7ee7f0ee1154f394a994f045b5a9
ci/lib: fix "CI setup" sections with GitLab CI

Whenever we source "ci/lib.sh" we wrap the directives in a separate
group so that they can easily be collapsed in the web UI. And as we
source the script multiple times during a single CI run we thus end up
with the same section name reused multiple times, as well.

This is broken on GitLab CI though, where reusing the same group name is
not supported. The consequence is that only the last of these sections
can be collapsed.

Fix this issue by including the name of the sourcing script in the
group's name.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ci/lib.sh