-
Bug
-
Resolution: Fixed
-
Major
-
centos 6
Jenkins 1.532.2 - 1.555 - 1.563
Gerrit Trigger 2.11.0
If Gerrit triggers create a queue in the Pending Jobs column in the project page, it will insert build parameters/metadata about the trigger: GERRIT_EVENT_TYPE, GERRIT_EVENT_HASH, etc.
If this metadata is long, it will distort the project page to be visually unusable.
Would like a way to either turn of or truncate this display of Gerrit metadata.
- is blocking
-
JENKINS-23421 Parameter value should be always displayed as human-readable
-
- Closed
-
- is duplicated by
-
JENKINS-23064 Limit the build parameters (string) shown for pending builds
-
- Resolved
-
-
JENKINS-25428 Pending Gerrit Job details overlay the whole jenkins screen
-
- Resolved
-
- links to
"metadata is long" means that a parameter has long value?
If so, I think this is mainly jenkins issue.
AFAIK, it is GERRIT_CHANGE_COMMIT_MESSAGE only. Because this is multi-line text, others are single-line.
So StringParameterValue class should be replaced to TextParameterValue.
But it would not be solved. ParameterValue which is extended by both StringParameterValue and
TextParameterValue has 2 methods for description.
In Javadoc, getShortDescription() requires one-line string as return value. I think this is truncation spec
you mentioned.
http://javadoc.jenkins-ci.org/hudson/model/ParameterValue.html#getShortDescription()
But, as of now, TextParameterValue which extends StringParameterValue does not have any overrided
methods for getShortDescription().
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/TextParameterValue.java
It means that TextParameterValue#getShortDescription returns the same value as StringParameterValue's one.
So, unfortunately, it is hard to solve this issue only by plugin fixes.
If "metadata is long" means a lot of parameters, it is also Jenkins issue.
Jenkins does not have the way to reduce the display number of parameters from plugin side.