From Fedora Project Wiki
Description
Using script console.
Setup
- Ensure that Jenkins is up and running
How to test
- run:
curl -d 'script=Hudson.instance.version' http://localhost:8080/scriptText"
- the output should be Jenkins version, for example:
Result: 1.581
- go to http://localhost:8080/script and experiment more:
- for example:
println(Jenkins.instance.pluginManager.plugins)
- this should print list of all installed plugins
- more examples: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
- for example:
Expected Results
- there shouldn't be any error messages or stacktraces printed on a screen