Class WebhookRegistrationTrait

    • Constructor Detail

      • WebhookRegistrationTrait

        @DataBoundConstructor
        public WebhookRegistrationTrait​(@NonNull
                                        String mode)
        Constructor.
        Parameters:
        mode - the mode of registration to apply.
      • WebhookRegistrationTrait

        public WebhookRegistrationTrait​(@NonNull
                                        WebhookRegistration mode)
        Constructor.
        Parameters:
        mode - the mode of registration to apply.
    • Method Detail

      • getMode

        @NonNull
        public final WebhookRegistration getMode()
        Gets the mode of registration to apply.
        Returns:
        the mode of registration to apply.
      • decorateContext

        protected void decorateContext​(jenkins.scm.api.trait.SCMSourceContext<?,​?> context)
        Overrides:
        decorateContext in class jenkins.scm.api.trait.SCMSourceTrait