Package io.jenkins.plugins.dorametrics
Class DisabledPipelines
java.lang.Object
io.jenkins.plugins.dorametrics.DisabledPipelines
Resolves which recorded pipelines are currently disabled in Jenkins, so that
metrics, rankings and exports can leave them out when the plugin is configured
to ignore disabled pipelines. Records are never removed: the exclusion is
applied when data is read, so it also covers builds recorded while a pipeline
was still active, and re-enabling the pipeline or unchecking the option brings
its numbers back.
-
Method Summary
Modifier and TypeMethodDescriptionnames(DoraGlobalConfiguration config, MetricsStore store) Full names of recorded jobs that Jenkins currently reports as not buildable, or an empty set when the option is off.
-
Method Details
-
names
Full names of recorded jobs that Jenkins currently reports as not buildable, or an empty set when the option is off. That covers a job disabled through its own Disable action and a multibranch branch or pull request job kept after its branch went away, which Jenkins marks dead and stops building. The check is limited toParameterizedJobMixIn.ParameterizedJobs (Pipeline and freestyle jobs), the only job types with a disabled state, so a job type that can never be built, such as an externally monitored job, stays included. So does a job that no longer exists in Jenkins.
-