Commit Graph

25 Commits

Author SHA1 Message Date
Thomas Boerger
dba0b8e35e
feat: add more logs to alerts and use same structure for teams alerts 2024-03-03 22:29:37 +01:00
Thomas Boerger
5c8b87620e
feat: refactoring of alerts and send correct email alerts
Previously the sent email alerts have been missing mandatory headers
like `Date` and it was also missing content type, content transfer
encoding and mime version. I have taken proper examples form the
unmaintained gomail library to build right emails.

Besides that I have refactored the calls for alerts, they git the same
structure now and it should be prepared to inject custom templates for
all altering methods at some later point. Generally it is prepared for a
more flexible alert handling.
2024-03-03 20:12:28 +01:00
Denis Gukov
ebb0c2c286
Merge pull request #1584 from robinmalik/develop
Add: Support for Microsoft Team Channel Alerts (via Adaptive Card webhook)
2024-03-02 18:35:11 +01:00
Thibault Ayanides
b932b96088
fix: slack color for failure 2024-02-19 21:55:18 +01:00
Robin Malik
dd15b7feae Remove localhost debugging line 2023-10-21 16:33:33 +01:00
Robin Malik
2c36d7e603 Update to use red image for indicating failure 2023-10-21 16:03:30 +01:00
Robin Malik
f9011986a0 Add empty final line in keeping with project code 2023-10-21 10:53:35 +01:00
Robin Malik
2abf648d9a Remove some debug logging 2023-10-21 10:51:30 +01:00
Robin Malik
da51613236 Add Adaptive Card template (not compressed) 2023-10-21 10:50:08 +01:00
Denis Gukov
b7c1eea8e6 fix: merge conflict 2023-09-23 17:54:46 +02:00
Denis Gukov
58850e9129 refactor: create package db_lib 2023-09-23 17:12:35 +02:00
Denis Gukov
c8a00ba1e4 fix(alerts): version instaed of build id 2023-09-19 23:34:51 +02:00
Denis Gukov
47f9c851e6 chore(alerts): use ERR instead of WARN 2023-09-19 23:14:21 +02:00
Denis Gukov
80cb157e52 fix(alerts): do not panic on error 2023-09-19 23:11:51 +02:00
Denis Gukov
d1b7ad021e
Runners (#1444)
* feat(runners): add register endpoint

* feat(runners): add remote runner

* refactor(runners): move functionality TaskRunner -> AnsibleJobRunner

* fix(runners): init job

* chore(runners): remote unused field

* feat(runners): use external logger from AnsibleJobRunner

* refactor(runners): remove status field

* refactor(runners): remove mutation from job

* feat(runners): pass username and verison to task

* test(runners): fix tests

* fix(runners): params for Run

* feat(runners): implement runner selection

* feat(runners): fill required fields

* fix(runners): session block

* feat(runners): kill process

* refactor(runners): rename fields to public

* feat(runners): remote runner functionallity

* refactor(runners): remove unused class

* fix(runners): send json

* feat(runners): runner registration

* feat(runners): logging

* feat(runners): server <-> running communication works

* feat(runners): pass creds to runenr
2023-08-29 00:51:04 +02:00
Daniel Torlop
ad30f8252c
fix: email alert 2023-06-21 22:16:26 +02:00
Denis Gukov
0dd190dbcf fix(be): email sending 2022-10-02 22:10:56 +05:00
Loïc Tosser
d86fb48b97 Improve slack messages 2022-04-19 16:32:03 +04:00
Loïc Tosser
d957c81789 Slack alerts 2022-04-19 10:51:13 +04:00
Loïc Tosser
e72a5a6ee6 Slack alerts 2022-04-11 12:29:48 +04:00
Denis Gukov
b127e054d8 feat(be): add max parallel tasks to project settings and ability to suppress success alerts for tasks 2022-02-14 16:52:28 +05:00
Denis Gukov
95e891cdd8 fix(be): bug with alert chat id https://github.com/ansible-semaphore/semaphore/issues/853 2022-02-03 23:35:32 +05:00
Denis Gukov
05dd7c5653 feat: remove soft delete functionality 2022-02-03 12:06:24 +05:00
Denis Gukov
88f4603028 refactor(be): extract git functionality to separate class 2022-01-30 16:22:18 +05:00
Denis Gukov
fa4e13a0f1 refactor(be): remove global vars of task pool and schedule pool 2022-01-29 23:14:36 +05:00