job('remove-all-publishers') { publishers {
deployArtifacts()
archiveJunit('**/target/**/*.xml') } configure { Node project -> Node publishers = project / publishers if (publishers) { project.remove(publishers) } }}
job('remove-only-test-result-publishing') { publishers {
deployArtifacts()
archiveJunit('**/target/**/*.xml') } configure { Node project -> Node publishTest = project / publishers / 'hudson.tasks.junit.JUnitResultArchiver' if (publishTest) { project.remove(publishTest) } }}
--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/802ba3b7-b4b8-4223-94a3-bab95dc47bec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
job('remove-test-result-publishing') { publishers {
archiveJunit('**/target/**/*.xml') } configure { Node project -> Node publishTest = project / publishers / 'hudson.tasks.junit.JUnitResultArchiver' if (publishTest) {
(project / publishers).remove(publishTest) } }}
job('empty-job') {}