-
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).
[JENKINS-14964] Add ability to call script from REST API
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 145665 ] | New: JNJira + In-Review [ 191580 ] |
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.