After that mouthful of a title here comes my snag:
I have a Jenkins system based on JaC. Using Gradle-Dropwizard and Skipper to manage job creation, pipelines etc. I'm trying to implement the Jenkins Notifications plugin with it but i can't get it to work. Tried the official site, the guides(usual and free style job) and the few related questions here but nothing works.
I know it needs to be added under publishers {} but node(){} nor steps(){} work.
it always fails in the DSL creation script under a variation of this:
No signature of method: javaposse.jobdsl.dsl.jobs.FreeStyleJob.stage() is applicable for argument types: (java.lang.String, script$_run_closure1$_closure2) values: [notify, script$_run_closure1$_closure2@9d55a72]
Possible solutions: wait(), getName(), label(), any(), using(java.lang.String), label(java.lang.String)
Has anyone got a clue what to do?
You can access the full DSL documentation on your own Jenkins server at the following link:
<JENKINS_URL>/plugin/job-dsl/api-viewer/index.html
In the documentation you can search for
slackand see all the available configuration options.Assuming you are using the Slack Notification Plugin, your configuration can look something alike the following:
This is the full documentation for the
salckNotifier: