Skip to content

Commit 7789ea5

Browse files
jltoblergitster
authored andcommitted
ci: pre-collapse GitLab CI sections
Sections of CI output defined by `begin_group()` and `end_group()` are expanded in GitLab pipelines by default. This can make CI job output rather noisy and harder to navigate. Update the behavior for GitLab pipelines to now collapse sections by default. Signed-off-by: Justin Tobler <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 786a3e4 commit 7789ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ci/lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ elif test true = "$GITLAB_CI"
1818
then
1919
begin_group () {
2020
need_to_end_group=t
21-
printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)\r\e[0K$1\n"
21+
printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)[collapsed=true]\r\e[0K$1\n"
2222
trap "end_group '$1'" EXIT
2323
set -x
2424
}

0 commit comments

Comments
 (0)