mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
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 <jltobler@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
786a3e4b8d
commit
7789ea5842
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ elif test true = "$GITLAB_CI"
|
|||
then
|
||||
begin_group () {
|
||||
need_to_end_group=t
|
||||
printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)\r\e[0K$1\n"
|
||||
printf "\e[0Ksection_start:$(date +%s):$(echo "$1" | tr ' ' _)[collapsed=true]\r\e[0K$1\n"
|
||||
trap "end_group '$1'" EXIT
|
||||
set -x
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue