]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - modules/private/buildbot/projects/test/__init__.py
Move notification systems to apprise
[perso/Immae/Config/Nix.git] / modules / private / buildbot / projects / test / __init__.py
index 2898bbc1d5faa49416d78ffd2ff294110a6bf20a..d5893fdea3ce175f4f07a0229d27848a35c88d60 100644 (file)
@@ -18,9 +18,6 @@ class E():
     GIT_URL       = "https://git.immae.eu/perso/Immae/TestProject.git"
     SSH_KEY_PATH  = "/var/lib/buildbot/buildbot_key"
     LIBVIRT_URL   = os.environ["BUILDBOT_VIRT_URL"] + "?keyfile=" + SSH_KEY_PATH
-    LDAP_HOST     = "ldap.immae.eu"
-    LDAP_DN       = "cn=buildbot,ou=services,dc=immae,dc=eu"
-    LDAP_ROLES_BASE = "ou=roles,ou=hosts,dc=immae,dc=eu"
     XMPP_RECIPIENTS = os.environ["BUILDBOT_XMPP_RECIPIENTS"].split(" ")
 
     # master.cfg
@@ -69,7 +66,7 @@ def configure(c):
     configure_build(c)
     configure_deploy(c)
 
-    configure_slack_push(c, E.SECRETS_FILE, all_builder_names(c))
+    configure_apprise_push(c, E.SECRETS_FILE, all_builder_names(c))
     configure_xmpp_push(c, E.SECRETS_FILE, all_builder_names(c), E.XMPP_RECIPIENTS)
 
 def configure_build(c):
@@ -120,11 +117,5 @@ def deploy_factory():
     factory = util.BuildFactory()
     factory.addStep(steps.MasterShellCommand(command=["test", "-f", package_dest]))
     factory.addStep(steps.SetProperties(properties=compute_build_infos("test", E.RELEASE_PATH)))
-    factory.addStep(LdapEdit(environment=util.Property("environment"),
-        build_version=util.Property("build_version"),
-        build_hash=util.Property("build_hash"),
-        config_key="test",
-        ldap_host=E.LDAP_HOST, ldap_roles_base=E.LDAP_ROLES_BASE, ldap_dn=E.LDAP_DN,
-        ldap_cn_template="test.{}", ldap_password=util.Secret("ldap")))
     factory.addStep(steps.MasterShellCommand(command=deploy_ssh_command(E.SSH_KEY_PATH, {})))
     return factory