[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Daniel Spilker closed an issue as Not A Defect Jenkins / JENKINS-30006 Augment default configuration everywhere Change By: Daniel Spilker Status: Resolved Closed Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Daniel Spilker commented on JENKINS-30006 Re: Augment default configuration everywhere That is strange, when I run my example in the playground (http://job-dsl.herokuapp.com/) it get this: !-- 1. example -- project actions/actions description/description keepDependenciesfalse/keepDependencies properties/properties scm class='hudson.scm.NullSCM'/scm canRoamtrue/canRoam disabledfalse/disabled blockBuildWhenDownstreamBuildingfalse/blockBuildWhenDownstreamBuilding blockBuildWhenUpstreamBuildingfalse/blockBuildWhenUpstreamBuilding triggers class='vector'/triggers concurrentBuildfalse/concurrentBuild builders/builders publishers hudson.plugins.cobertura.CoberturaPublisher coberturaReportFilepattern/coberturaReportFile onlyStablefalse/onlyStable failUnhealthyfalse/failUnhealthy failUnstablefalse/failUnstable autoUpdateHealthfalse/autoUpdateHealth autoUpdateStabilityfalse/autoUpdateStability zoomCoverageChartfalse/zoomCoverageChart failNoReportstrue/failNoReports healthyTarget targets class='enum-map' enum-type='hudson.plugins.cobertura.targets.CoverageMetric' entry hudson.plugins.cobertura.targets.CoverageMetricMETHOD/hudson.plugins.cobertura.targets.CoverageMetric int800/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricLINE/hudson.plugins.cobertura.targets.CoverageMetric int800/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricCONDITIONAL/hudson.plugins.cobertura.targets.CoverageMetric int700/int /entry /targets /healthyTarget unhealthyTarget targets class='enum-map' enum-type='hudson.plugins.cobertura.targets.CoverageMetric' entry hudson.plugins.cobertura.targets.CoverageMetricMETHOD/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricLINE/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricCONDITIONAL/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry /targets /unhealthyTarget failingTarget targets class='enum-map' enum-type='hudson.plugins.cobertura.targets.CoverageMetric' entry hudson.plugins.cobertura.targets.CoverageMetricMETHOD/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricLINE/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry entry hudson.plugins.cobertura.targets.CoverageMetricCONDITIONAL/hudson.plugins.cobertura.targets.CoverageMetric int0/int /entry /targets /failingTarget sourceEncodingASCII/sourceEncoding newOptiontrue/newOption
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Arcadiy Ivanov resolved as Not A Defect The DOM was corrupted by other logic, '' (appending works fine) Jenkins / JENKINS-30006 Augment default configuration everywhere Change By: Arcadiy Ivanov Status: Open Resolved Resolution: NotADefect Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Arcadiy Ivanov updated an issue Jenkins / JENKINS-30006 Augment default configuration everywhere Change By: Arcadiy Ivanov Summary: Augment default configuration beingspecified everywhere Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Arcadiy Ivanov updated an issue Jenkins / JENKINS-30006 Augment default configuration everywhere Change By: Arcadiy Ivanov Given:Thereisaplugin(coberturainthisexample).Anewfeatureisbeingintroducedintothepluginaddingadditionaloptions.Thenewoptionsarenotsupportedbythecurrentversionofjob-dsl-plugin.Anattempttouseregularcoberturaconfiguration(likethis){noformat}cobertura(xmlReportFilePattern){onlyStable(false)//Includeonlystablebuilds,i.e.excludeunstableandfailedones.failUnhealthy(false)//Unhealthyprojectswillbefailed.failUnstable(false)//Unstableprojectswillbefailed.autoUpdateHealth(false)//Autoupdatethresholdforhealthonsuccessfulbuild.autoUpdateStability(false)//Autoupdatethresholdforstabilityonsuccessfulbuild.zoomCoverageChart(false)//Zoomthecoveragechartandcropareabelowtheminimumandabovethemaximumcoverageofthepastreports.failNoReports(true)//Failbuildsifnocoveragereportshavebeenfound.sourceEncoding('ASCII')//Characterencodingofsourcefiles//Thefollowingtargetsareaddedbydefaulttocheckthemethod,lineandconditionallevelcoverage:methodTarget(80,0,0)lineTarget(80,0,0)conditionalTarget(70,0,0)}{noformat}ANDaconfigureblock willfail (likethis){noformat}configure{project-project/'publishers'/'hudson.plugins.cobertura.CoberturaPublisher'{newOption(true)}}{noformat} willfail sincetheconfigureblockwilloverwritewhateverconfigurationisspecifieddirectlybythestandardCoberturaContextinthiscase.TherehastobeageneralmechanismthatallowstoalterDOMtreefromwithintheconfigurationbeingspecified,i.e.configureblockshouldbeavailableprettymuchinanycontextbydefault,notjustatthetoplevelpublishers.Lackofthisfunctionalitymakesitimpossibletoaugmentdefaultconfigurationbehaviorinlieuofcommittingchangestojob-dsl-pluginitself. Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Arcadiy Ivanov commented on JENKINS-30006 Re: Augment default configuration everywhere Nope, tried that, this results in hudson.plugins.cobertura.CoberturaPublisher newOptiontrue/newOption /hudson.plugins.cobertura.CoberturaPublisher Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] [job-dsl-plugin] (JENKINS-30006) Augment default configuration everywhere
Title: Message Title Daniel Spilker commented on JENKINS-30006 Re: Augment default configuration everywhere You can use the operator to append elements instead of replacing existing elements, see https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block#transforming-xml. job('example') { publishers { cobertura('pattern') { } } configure { project - project / publishers / 'hudson.plugins.cobertura.CoberturaPublisher' newOption(true) } } Add Comment This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265) -- You received this message because you are subscribed to the Google Groups Jenkins Issues group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.