Skip to content

Commit 596c7af

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 a6fefa6 commit 596c7af

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
@@ -55,7 +55,7 @@ group () {
5555
return $res
5656
}
5757

58-
begin_group "CI setup"
58+
begin_group "CI setup via $(basename $0)"
5959

6060
# Set 'exit on error' for all CI scripts to let the caller know that
6161
# something went wrong.
@@ -386,5 +386,5 @@ esac
386386

387387
MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
388388

389-
end_group "CI setup"
389+
end_group "CI setup via $(basename $0)"
390390
set -x

0 commit comments

Comments
 (0)