Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
47fed149
Commit
47fed149
authored
Sep 15, 2020
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for pre-collapsed logs
parent
2464a45c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
doc/ci/pipelines/index.md
doc/ci/pipelines/index.md
+20
-0
No files found.
doc/ci/pipelines/index.md
View file @
47fed149
...
...
@@ -461,6 +461,26 @@ this line should be hidden when collapsed
section_end:1560896353:my_first_section\r\e[0K
```
#### Pre-collapsed sections
You can make the job log automatically collapse the collapsible sections by adding the
`collapsed`
option to the section start.
You must add the string
`[collapsed=true]`
after the section name and before the
`\r`
:
-
Section start marker with options:
`section_start:UNIX_TIMESTAMP:SECTION_NAME[collapsed=true]\r\e[0K`
+
`TEXT_OF_SECTION_HEADER`
-
Section end marker stays untouched:
`section_end:UNIX_TIMESTAMP:SECTION_NAME\r\e[0K`
You must add the updated section start text to the CI configuration. For example,
using
`echo`
:
```
yaml
job1
:
script
:
-
echo -e "section_start:`date +%s`:my_first_section[collapsed=true]\r\e[0KHeader of the 1st collapsible section"
-
echo 'this line should be hidden automatically after loading the job log'
-
echo -e "section_end:`date +%s`:my_first_section\r\e[0K"
```
## Visualize pipelines
> [Introduced](https://gitlab.com/gitlab-org/gitlab-foss/-/merge_requests/5742) in GitLab 8.11.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment