Benjamin Eckstein
Benjamin Eckstein

Reputation: 894

How to set minimum for Jenkins Plot Plugin

I use Jenkins and its Plot Plugin to generate statistics.

Example: For every Build I plot the line of codes. Lets say I have like 500.000 lines and it changes about +-100 lines per build.

Since the plot y-axis always starts with 0 the whole plot is meaningless. It looks like 1 straight line.

Same goes for other metrics, if the value is too high.

Question: is there any configuration to set minimum y-axes to the minimum value?

Upvotes: 1

Views: 576

Answers (1)

ebo
ebo

Reputation: 2747

Unfortunately, I think the answer to your question is currently 'no'.

First of all, the documentation does not give any hints towards such an option.

Secondly, Given that the Jenkins Plot Plugin uses JFreeChart for the plotting, the setting of a range for the Y-axis should be done using the 'getRangeAxis' function. A search in the source-code does not reveal a call to this function.

Lastly, you do not seem to be the only one that has this problem. Issue JENKINS-2841 asks for the same functionality, but appears not be solved yet.

Upvotes: 2

Related Questions