File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/main/java/io/jenkins/plugins/pipelinegraphview/utils Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 44import com .fasterxml .jackson .databind .ObjectMapper ;
55import hudson .model .Action ;
66import hudson .model .BallColor ;
7+ import hudson .model .ParametersAction ;
78import hudson .model .ParametersDefinitionProperty ;
89import hudson .security .Permission ;
910import hudson .util .HttpResponses ;
@@ -47,6 +48,11 @@ public String getBuildDisplayName() {
4748 }
4849
4950 public boolean isParameterized () {
51+ ParametersAction paramAction = run .getAction (ParametersAction .class );
52+ if (paramAction != null && !paramAction .getAllParameters ().isEmpty ()) {
53+ return true ;
54+ }
55+
5056 ParametersDefinitionProperty property = run .getParent ().getProperty (ParametersDefinitionProperty .class );
5157 return property != null && !property .getParameterDefinitions ().isEmpty ();
5258 }
You can’t perform that action at this time.
0 commit comments