Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalClient
Commits
a276c8ad
Commit
a276c8ad
authored
Feb 01, 2021
by
lukas.burgey
Browse files
Improve the script log representation
parent
8a38fa26
Pipeline
#131225
passed with stages
in 40 seconds
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
sink/script/script.go
View file @
a276c8ad
...
@@ -168,8 +168,9 @@ func (sink *Sink) handleDep(dep deps.Dep) (output scripts.Output, err error) {
...
@@ -168,8 +168,9 @@ func (sink *Sink) handleDep(dep deps.Dep) (output scripts.Output, err error) {
stderrBytes
,
_
=
ioutil
.
ReadAll
(
stderr
)
stderrBytes
,
_
=
ioutil
.
ReadAll
(
stderr
)
if
(
sink
.
Config
.
Debug
.
Scripts
||
sink
.
Config
.
Debug
.
DumpLog
)
&&
len
(
stderrBytes
)
>
0
{
if
(
sink
.
Config
.
Debug
.
Scripts
||
sink
.
Config
.
Debug
.
DumpLog
)
&&
len
(
stderrBytes
)
>
0
{
dep
.
Log
(
"Logs:
\n
%s"
,
bytes
.
ReplaceAll
(
stderrBytes
,
[]
byte
(
"
\n
"
),
[]
byte
(
"
\n
> "
)))
scriptLog
:=
bytes
.
Trim
(
stderrBytes
,
"
\n
"
)
dep
.
Log
(
"End of Logs"
)
scriptLog
=
bytes
.
ReplaceAll
(
scriptLog
,
[]
byte
(
"
\n
"
),
[]
byte
(
"
\n
> "
))
dep
.
Log
(
"Script log:
\n
> %s
\n
--- End of script log ---"
,
scriptLog
)
}
}
// execute the script with timeout
// execute the script with timeout
...
...
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