mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-12 10:55:20 +02:00
fix(sonar): remove warnings handling (#2650)
This commit is contained in:
parent
30baa31b90
commit
80515f3cfb
@ -56,7 +56,7 @@ func (service *TaskService) GetTask(options *sonargo.CeTaskOption) (*sonargo.CeT
|
||||
func (service *TaskService) HasFinished() (bool, error) {
|
||||
options := &sonargo.CeTaskOption{
|
||||
Id: service.TaskID,
|
||||
AdditionalFields: "warnings",
|
||||
// AdditionalFields: "warnings",
|
||||
}
|
||||
result, _, err := service.GetTask(options)
|
||||
if err != nil {
|
||||
@ -65,9 +65,9 @@ func (service *TaskService) HasFinished() (bool, error) {
|
||||
if result.Task.Status == taskStatusPending || result.Task.Status == taskStatusProcessing {
|
||||
return false, nil
|
||||
}
|
||||
for _, warning := range result.Task.Warnings {
|
||||
log.Entry().Warnf("Warnings during analysis: %s", warning)
|
||||
}
|
||||
// for _, warning := range result.Task.Warnings {
|
||||
// log.Entry().Warnf("Warnings during analysis: %s", warning)
|
||||
// }
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user