-
New Feature
-
Resolution: Fixed
-
Major
-
None
It will be useful if we can execute saved scripts from REST API. Something like this: http://my-jenkins/scriptlet/ScriptName?param1=value1¶m2=value2 with returning results in xml/json (any text form).
I've created a Pull-Request at GitHub for this issue: https://github.com/jenkinsci/scriptler-plugin/pull/15
It allows you to run a script using the URL /scriptler/run/<myScriptId>?param1=value1 (or the POST equivalent).
The parameters {node, script (alternative script source), and contentType (for the response) are also available.