jenkinsci / rubymetrics-plugin

Ruby metric reports for Jenkins. Rcov, Rails stats, Rails notes and Flog.
https://plugins.jenkins.io/rubyMetrics/
25 stars 28 forks source link

RailsStatsPublisher doesn't work with pipelines #34

Open kule opened 6 years ago

kule commented 6 years ago

Within a Jenkinsfile running:

    step([
      $class: "RailsStatsPublisher",
      rakeInstallation: "",
      rakeWorkingDir: ""
    ])

gives:

java.lang.UnsupportedOperationException: no known implementation of interface jenkins.tasks.SimpleBuildStep is named RailsStatsPublisher

I assume that the railsStats code will need some similar amendments as were made to the rcov/saikuro tasks in: https://github.com/jenkinsci/rubymetrics-plugin/pull/28