Skip to content

Commit c6b43f6

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d2ca120 commit c6b43f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ci/lib.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ group () {
5757
return $res
5858
}
5959

60-
begin_group "CI setup"
60+
begin_group "CI setup via $(basename $0)"
6161

6262
# Set 'exit on error' for all CI scripts to let the caller know that
6363
# something went wrong.
@@ -388,5 +388,5 @@ esac
388388

389389
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
390390

391-
end_group "CI setup"
391+
end_group "CI setup via $(basename $0)"
392392
set -x

0 commit comments

Comments
 (0)