How I can create Jenkins job via Jenkins DSL using the custom plugin? I have tried to implement WebHook Plugin: https://github.com/jenkinsci/generic-webhook-trigger-plugin But via DSL I receiving an error that genericTrigger class does not exist.
Caused by: groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.triggers.TriggerContext.GenericTrigger() is applicable for argument types: (script$_run_closure2$_closure5$_closure11) values: [script$_run_closure2$_closure5$_closure11@7f132176]
I have tried to add this plugin to gradlew dependencies :
dependencies {
compile 'org.jenkins-ci.plugins:generic-webhook-trigger:1.4'
}
But still the same error. How I correct import them? I have tried to clone from github these classes, but dependencies required other ones, external. How to correct do this?
P.S. Plugin has been installed on Jenkins
