Merge pull request #1888 from semaphoreui/1869-task-output-reports-slack-alert-succesful-even-when-it-fails

fix(slack): log messege for unsuccess sent
This commit is contained in:
Denis Gukov 2024-04-02 17:44:38 +02:00 committed by GitHub
commit b376928c04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -236,10 +236,10 @@ func (t *TaskRunner) sendSlackAlert() {
t.Log("Can't send slack alert! Error: " + err.Error())
} else if resp.StatusCode != 200 {
t.Log("Can't send slack alert! Response code: " + strconv.Itoa(resp.StatusCode))
}
} else {
t.Log("Sent successfully slack alert")
}
}
func (t *TaskRunner) sendRocketChatAlert() {
if !util.Config.RocketChatAlert || !t.alert {