Scriptler allows you to store/edit groovy scripts and execute it on any of the slaves/nodes... no need to copy/paste groovy code anymore.
Besides administering your scripts, Scriptler also provides a way to share scripts between users via hosted script catalogs on the internet.
A second catalog (legacy) is hosted at http://scriptlerweb.appspot.com, All you need is a nice script other people might like too and an OpenId login. A login is only needed if you would like to share a script - If you have a google acount, you're already fine, but any other will do too (OpenId, Yahoo, AOL, ...).
Please share your scripts!http://scriptlerweb.appspot.com/
This plugin takes the idea of the script console one step further and allows you to ease your daily work with the Jenkins script console.
Scriptler adds a new link to the manage Jenkins page:
From within the Scriptlers view, you can create ("Add a new Script") or import scripts via the "Remote script catalog".
Import a script from a public catalog:
The editor is syntax highlighted and allows you to define parameters which have to be passed to the script...
You'll get forwarded to a page where you can select the node the script should run on and can can even modify the script just before execution. These modifications will not touch the saved version of the script and are only active for you and only as long till you change to another script.
After execution, the output of the command will appear in the below part of the screen.
Since version 2.2, Scriptler also provides a builder, with this support one is able to integrate its admins scripts in any job. The dropdown will provide all scripts which have been marked to be allowed with 'RunScript' permission.
To be able to configure a Scriptler Builder, the user has to be administrator or have 'RunScript' permission! All changes made by a user not having these permissions will get lost. The 'Value' also supports parameter expansion and expansion by the Token Macro Plugin .
You are able to configure whether you want to allow users which have only the "RunScripts" permission to execute scripts (every script has to be allowed separately). In addition you can also configure if these users should be able to change a script (which would be a security issue).
Scriptler exposes its scripts via git. Browse to JENKINS_URL/scriptler.git on your installation to get more info about how to access the repo via git.
This allows an administrator to push/pull scripts from its workstation/IDE into Scriptler. If such a script is pushed the first time into scriptler, then it will parse the optional header info like this:
Scriptler supports the Token Macro Plugin in two ways
since version 1.7, one can also run a script using GET or POST to the URL /scriptler/run/<your-script-id> with the optional parameters node, script (alternative script text), contentType, and the parameters defined for your stored script.
Skip to end of metadata Go to start of metadata