1
0
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:
Christopher Fenner 2021-02-24 19:21:40 +01:00 committed by GitHub
parent 30baa31b90
commit 80515f3cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}