Hi,
This is my first post to this list, so please bear with me. First of
all please understand that I am working in a constrained environment when
it comes to updating plugins and the version of jenkins I am using, so I am
stuck with what I have. Anyway here is my problem. I have a job that
runs tests and these tests, depending on how they were build, can generate
Bullseye coverage numbers. In the job I created, I use clover to
publish the bullseye numbers, since I was relatively new to jenkins and
groovy when I started working on the code I used the following configure
block to setup clover.
publishers {
configure {
def clover = it / 'publishers' /
'hudson.plugins.clover.CloverPublisher' {
cloverReportDir('\$WORKSPACE/safe/BULLSEYE_HTML')
cloverReportFileName('clover.xml')
}
clover / 'healthyTarget' {
methodCoverage(60)
conditionalCoverage(40)
statementCoverage(-1)
}
clover / 'unhealthyTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
clover / 'failingTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
} // configure
} // publishers
I want to use flexiblepublish however I found while I can set up a flexible
publish via the gui, I cannot thru code. Below is the block that I
wrote to generate the flexible publish block. This code compiles
successfully in the DSL playground found at
(http://job-dsl.herokuapp.com/) But when I run the DSL on my jenkins
server that contains this block, the dsl runs, but no jobs get generated.
If I remove this block and go to the block above the jobs are generated.
Can anyone tell me what I am doing wrong?
publishers {
configure {
def flexpub = it / 'publishers' /
'org.jenkins__ci.plugins.flexible__publish.FlexiblePublisher'
def condpub = flexpub / 'publishers' /
'org.jenkins__ci.plugins.flexible__publish.ConditionalPublisher'
def condcl = condpub / 'condition
class="org.jenkins_ci.plugins.run_condition.core.StringsMatchCondition"' {
arg1($BUILD_TYPE)
arg2(Bullseye)
ignoreCase(false)
}
def clover = condpub / 'publishersList' /
'hudson.plugins.clover.CloverPublisher' {
cloverReportDir('\$WORKSPACE/safe/BULLSEYE_HTML')
cloverReportFileName('clover.xml')
}
clover / 'healthyTarget' {
methodCoverage(60)
conditionalCoverage(40)
statementCoverage(-1)
}
clover / 'unhealthyTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
clover / 'failingTarget' {
methodCoverage(0)
conditionalCoverage(0)
statementCoverage(-1)
}
condpub / 'runner
class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"'
condpub / 'executionStrategy
class="org.jenkins_ci.plugins.flexible_publish.strategy.FailAtEndExecutionStrategy"'
}
} // publishers
--Thanks,
Mark
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/00f69d9a-1aa9-49a8-b702-dff12aad9de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.