mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-03-03 15:02:35 +02:00
improve enabling of Maven access log generation
This commit is contained in:
parent
a4f99ae160
commit
80b77223cd
@ -59,13 +59,18 @@ type utilsBundle struct {
|
||||
*piperhttp.Client
|
||||
}
|
||||
|
||||
// NewUtilsBundle provides methods that are used for running a step.
|
||||
// Setting the stepName parameter to a non-empty string will enable the creation of an access log (URL log).
|
||||
func NewUtilsBundle(stepName string) Utils {
|
||||
cmd := &command.Command{}
|
||||
if stepName != "" {
|
||||
cmd.StepName = stepName
|
||||
}
|
||||
|
||||
utils := utilsBundle{
|
||||
Command: &command.Command{
|
||||
StepName: stepName,
|
||||
},
|
||||
Files: &piperutils.Files{},
|
||||
Client: &piperhttp.Client{},
|
||||
Command: cmd,
|
||||
Files: &piperutils.Files{},
|
||||
Client: &piperhttp.Client{},
|
||||
}
|
||||
utils.Stdout(log.Writer())
|
||||
utils.Stderr(log.Writer())
|
||||
|
Loading…
x
Reference in New Issue
Block a user