Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-30700

Make Cobertura plug-in support the workflow plugin

      Hi,

      I am using the Cobertura plugin in my project for several jobs and now want to specify my jobs as Workflow jobs to better manage my application and reduce configuration overhead.

      Thanks,
      Yotam

          [JENKINS-30700] Make Cobertura plug-in support the workflow plugin

          Claus Näveke added a comment -

          Is there any kind of documentation available for the pipeline syntax? I couldn't find any, neither on the wiki nor on github

          Claus Näveke added a comment - Is there any kind of documentation available for the pipeline syntax? I couldn't find any, neither on the wiki nor on github

          Jeff Pearce added a comment - - edited

          It would probably be good to have something on the wiki, but you can use the snippet generator to see the syntax. It's under Step: General Build Step. The only caveat is that it doesn't currently generate the code for coverage targets. The next release will generate coverage targets correctly, and it will show as a separate step in the snippet generator instead of under General Build Step

          Jeff Pearce added a comment - - edited It would probably be good to have something on the wiki, but you can use the snippet generator to see the syntax. It's under Step: General Build Step. The only caveat is that it doesn't currently generate the code for coverage targets. The next release will generate coverage targets correctly, and it will show as a separate step in the snippet generator instead of under General Build Step

          francisdb added a comment - - edited

          Generates something like this:

           

          step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'fdsfsdfds', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])

           

          would be nice if we could just do like the junit reports

          post {
            always {
              junit '*/target/test-reports/.xml'
              }
          }

          francisdb added a comment - - edited Generates something like this:   step( [$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'fdsfsdfds', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false] )   would be nice if we could just do like the junit reports post {   always {     junit '* /target/test-reports/ .xml'     } }

          Jeff Pearce added a comment -

          The next version will support that

          Jeff Pearce added a comment - The next version will support that

          chanti vlad added a comment -

          jeffpearce: when is the next version planned for ?

          chanti vlad added a comment - jeffpearce : when is the next version planned for ?

          Hi, any news on this?

          Rustem Zinnatullin added a comment - Hi, any news on this?

          Jeff Pearce added a comment - - edited

          Maybe I'm misunderstanding something, but with recent versions of the plugin, you can do this in your Jenkinsfile:

          post {

            always {
              cobertura coberturaReportFile: '*/.xml'
              }
          }

           

          Does that meet your needs?

          Jeff Pearce added a comment - - edited Maybe I'm misunderstanding something, but with recent versions of the plugin, you can do this in your Jenkinsfile: post {   always {     cobertura coberturaReportFile: '* / .xml'     } }   Does that meet your needs?

          jeffpearce,
          yes, this is what I needed, thanks!

          Rustem Zinnatullin added a comment - jeffpearce , yes, this is what I needed, thanks!

          chanti vlad added a comment -

          Works like a charm jeffpearce, thanks

          chanti vlad added a comment - Works like a charm jeffpearce , thanks

          Jeff Pearce added a comment -

          Glad to hear. Thanks mbarrien - he did the work

          Jeff Pearce added a comment - Glad to hear. Thanks mbarrien - he did the work

            mbarrien Michael Barrientos
            yotamshapira Yotam Shapira
            Votes:
            82 Vote for this issue
            Watchers:
            86 Start watching this issue

              Created:
              Updated:
              Resolved: