diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-27 13:13:00 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-03-27 13:13:19 +0100 |
commit | 256d607c2db3e56a2f481a2097ffa3ccd109d141 (patch) | |
tree | 669aa366833b7506bf66b4b7eb3319bdb547ebea /nixops/modules/buildbot/projects/test | |
parent | 85817848f29f1e2c3680da216a8dfc54a2ad3932 (diff) | |
download | Nix-256d607c2db3e56a2f481a2097ffa3ccd109d141.tar.gz Nix-256d607c2db3e56a2f481a2097ffa3ccd109d141.tar.zst Nix-256d607c2db3e56a2f481a2097ffa3ccd109d141.zip |
Add xmpp push notifications to buildbot and gitolite
Diffstat (limited to 'nixops/modules/buildbot/projects/test')
-rw-r--r-- | nixops/modules/buildbot/projects/test/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixops/modules/buildbot/projects/test/__init__.py b/nixops/modules/buildbot/projects/test/__init__.py index 0644920..e6b8d51 100644 --- a/nixops/modules/buildbot/projects/test/__init__.py +++ b/nixops/modules/buildbot/projects/test/__init__.py | |||
@@ -19,6 +19,7 @@ class E(): | |||
19 | LDAP_HOST = "ldap.immae.eu" | 19 | LDAP_HOST = "ldap.immae.eu" |
20 | LDAP_DN = "cn=buildbot,ou=services,dc=immae,dc=eu" | 20 | LDAP_DN = "cn=buildbot,ou=services,dc=immae,dc=eu" |
21 | LDAP_ROLES_BASE = "ou=roles,ou=hosts,dc=immae,dc=eu" | 21 | LDAP_ROLES_BASE = "ou=roles,ou=hosts,dc=immae,dc=eu" |
22 | XMPP_RECIPIENTS = os.environ["BUILDBOT_XMPP_RECIPIENTS"].split(" ") | ||
22 | 23 | ||
23 | # master.cfg | 24 | # master.cfg |
24 | SECRETS_FILE = os.getcwd() + "/secrets" | 25 | SECRETS_FILE = os.getcwd() + "/secrets" |
@@ -84,6 +85,11 @@ def configure(c): | |||
84 | name="slack_status_test_project", | 85 | name="slack_status_test_project", |
85 | builders=["TestProject_build", "TestProject_deploy"], | 86 | builders=["TestProject_build", "TestProject_deploy"], |
86 | serverUrl=open(E.SECRETS_FILE + "/slack_webhook", "r").read().rstrip())) | 87 | serverUrl=open(E.SECRETS_FILE + "/slack_webhook", "r").read().rstrip())) |
88 | c['services'].append(XMPPStatusPush( | ||
89 | name="xmpp_status_test_project", | ||
90 | builders=["TestProject_build", "TestProject_deploy"], | ||
91 | recipients=E.XMPP_RECIPIENTS, | ||
92 | password=open(E.SECRETS_FILE + "/notify_xmpp_password", "r").read().rstrip())) | ||
87 | 93 | ||
88 | def factory(): | 94 | def factory(): |
89 | package = util.Interpolate("test_%(kw:clean_branch)s.tar.gz", clean_branch=clean_branch) | 95 | package = util.Interpolate("test_%(kw:clean_branch)s.tar.gz", clean_branch=clean_branch) |