From Fedora Project Wiki
No edit summary |
No edit summary |
||
Line 8: | Line 8: | ||
#* the output should be Jenkins version, for example: | #* the output should be Jenkins version, for example: | ||
<pre> | <pre> | ||
Result: 1. | Result: 1.581 | ||
</pre> | </pre> | ||
# go to http://localhost:8080/script and experiment more: | # go to http://localhost:8080/script and experiment more: |
Revision as of 05:03, 30 September 2014
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
- for example:
Expected Results
- there should be no failures or stacktraces printed on stdout/stderr