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/caldance | |
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/caldance')
-rw-r--r-- | nixops/modules/buildbot/projects/caldance/__init__.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixops/modules/buildbot/projects/caldance/__init__.py b/nixops/modules/buildbot/projects/caldance/__init__.py index 1069c35..2c0bad5 100644 --- a/nixops/modules/buildbot/projects/caldance/__init__.py +++ b/nixops/modules/buildbot/projects/caldance/__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 | PUPPET_HOST = { | 24 | PUPPET_HOST = { |
24 | "integration": "root@caldance.immae.eu", | 25 | "integration": "root@caldance.immae.eu", |
@@ -89,6 +90,11 @@ def configure(c): | |||
89 | name="slack_status_caldance", | 90 | name="slack_status_caldance", |
90 | builders=["Caldance_build", "Caldance_deploy"], | 91 | builders=["Caldance_build", "Caldance_deploy"], |
91 | serverUrl=open(E.SECRETS_FILE + "/slack_webhook", "r").read().rstrip())) | 92 | serverUrl=open(E.SECRETS_FILE + "/slack_webhook", "r").read().rstrip())) |
93 | c['services'].append(XMPPStatusPush( | ||
94 | name="xmpp_status_caldance", | ||
95 | builders=["Caldance_build", "Caldance_deploy"], | ||
96 | recipients=E.XMPP_RECIPIENTS, | ||
97 | password=open(E.SECRETS_FILE + "/notify_xmpp_password", "r").read().rstrip())) | ||
92 | 98 | ||
93 | def factory(project, ignore_fails=False): | 99 | def factory(project, ignore_fails=False): |
94 | release_file = "{1}/{0}_%(kw:clean_branch)s.tar.gz" | 100 | release_file = "{1}/{0}_%(kw:clean_branch)s.tar.gz" |