Class HookUrlResultWaiter

java.lang.Object
hudson.Plugin
com.testdroid.jenkins.scheduler.HookUrlResultWaiter
All Implemented Interfaces:
ModelObject, Saveable, org.kohsuke.stapler.StaplerProxy

@ExportedBean public class HookUrlResultWaiter extends Plugin implements ModelObject
REST listener, that responds to hooks from the backend. We exploit the Jenkins instance to produce a singleton listener class. Rationale: Extending "Plugin" gives us access to the my-jenkins-url:8080/plugin/my-special-plugin/api/json endpoint, which is why we use it here. We also implement "ModelObject" purely to listen for requests, even though the Jenkins API describes this as a means to "expose your plugin data".
  • Constructor Details

    • HookUrlResultWaiter

      public HookUrlResultWaiter()
  • Method Details