File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/java/org/jenkinsci/plugins/workflow/cps Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,17 @@ static String step2Groovy(Step s) throws UnsupportedOperationException {
7979 return object2Groovy (new StringBuilder (), s , false ).toString ();
8080 }
8181
82+ /**
83+ * Publicly accessible version of {@link #object2Groovy(StringBuilder, Object, boolean)} that translates an object into
84+ * the equivalent Pipeline Groovy string.
85+ *
86+ * @param o The object to translate.
87+ * @return A string translation of the object.
88+ */
89+ public static String object2Groovy (Object o ) throws UnsupportedOperationException {
90+ return object2Groovy (new StringBuilder (), o , false ).toString ();
91+ }
92+
8293 /**
8394 * Renders the invocation syntax to re-create a given object 'o' into 'b'
8495 *
You can’t perform that action at this time.
0 commit comments