mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +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) {
|
func (service *TaskService) HasFinished() (bool, error) {
|
||||||
options := &sonargo.CeTaskOption{
|
options := &sonargo.CeTaskOption{
|
||||||
Id: service.TaskID,
|
Id: service.TaskID,
|
||||||
AdditionalFields: "warnings",
|
// AdditionalFields: "warnings",
|
||||||
}
|
}
|
||||||
result, _, err := service.GetTask(options)
|
result, _, err := service.GetTask(options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -65,9 +65,9 @@ func (service *TaskService) HasFinished() (bool, error) {
|
|||||||
if result.Task.Status == taskStatusPending || result.Task.Status == taskStatusProcessing {
|
if result.Task.Status == taskStatusPending || result.Task.Status == taskStatusProcessing {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
for _, warning := range result.Task.Warnings {
|
// for _, warning := range result.Task.Warnings {
|
||||||
log.Entry().Warnf("Warnings during analysis: %s", warning)
|
// log.Entry().Warnf("Warnings during analysis: %s", warning)
|
||||||
}
|
// }
|
||||||
return true, nil
|
return true, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user