Caused by: groovy.lang.MissingMethodException: No signature of method: javaposse.jobdsl.dsl.helpers.publisher.PublisherContext.postBuildScript() is applicable for argument types: (com.xccs.CIVBuilder$_build_closure1$_closure8$_closure27) values: [com.xccs.CIVBuilder$_build_closure1$_closure8$_closure27@426b7649]testCompile 'org.jenkins-ci.plugins:postbuildscript:2.7.0'
testPlugins 'org.jenkins-ci.plugins:postbuildscript:2.7.0'publishers {
postBuildScript {
markBuildUnstable(false)
buildSteps {
postBuildStep {
results(['SUCCESS', 'UNSTABLE', 'FAILURE', 'NOT_BUILT', 'ABORTED'])
buildSteps {
shell {
command("blah blah blah")
}
}
}
}
}
}job('example') { publishers { postBuildScripts { steps { shell('echo Hello World') } onlyIfBuildSucceeds(false) onlyIfBuildFails() } } }

This email may contain material that is confidential and/or proprietary that the sender intended only for specific recipients. Any review by unintended recipients, forwarding or creating derivative works without the written permission of Silvaco, Inc. or its subsidiaries is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. --
You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/JOcNqsf4C9M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/692d8334-f92f-4f17-aaaf-a91d2995d0b6%40googlegroups.com.
The DSL plugin serves this up: http://<jenkins-url>/plugin/job-dsl/api-viewer/index.html
On Wed, May 30, 2018 at 12:36 PM, <james....@silvaco.com> wrote:
How did you generate your own job-dsl API web page?
On Wednesday, May 30, 2018 at 10:33:42 AM UTC-7, blake wrote:It's not a typo, but it's confusing. There are two separate things:postBuildScripts - built-in version, not dynamic DSL. This only supports SUCCESS and FAILURE cases. It does not support UNSTABLE, NOT_BUILT or ABORTED.postBuildScript - dynamic DSL, not the built-in version. This is what I need, and since it is not built-in gradle doesn't like it even though running the seed job in Jenkins is successful.
This email may contain material that is confidential and/or proprietary that the sender intended only for specific recipients. Any review by unintended recipients, forwarding or creating derivative works without the written permission of Silvaco, Inc. or its subsidiaries is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies. --
You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/JOcNqsf4C9M/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
$ grep -rinI gradle-jenkins-jobdsl-plugin .
$ To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/464138ca-1ee3-4593-a66f-c5ba156a676d%40googlegroups.com.To unsubscribe from this group and all its topics, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.