WebHook broker that accepts notifications from multiple platforms and performs simple actions in response
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 406B

12345678910111213141516171819
  1. import os
  2. from .jenkins import Jenkins
  3. from .gitea import Gitea
  4. def gitea_factory():
  5. return Gitea(os.environ["LAS_GITEA_URL"], os.environ["LAS_GITEA_TOKEN"])
  6. def jenkins_factory():
  7. return Jenkins(
  8. os.environ["LAS_JENKINS_URL"],
  9. os.environ["LAS_JENKINS_USER"],
  10. os.environ["LAS_JENKINS_PASSWORD"],
  11. )
  12. factories = {"gitea": gitea_factory, "jenkins": jenkins_factory}