From Fedora Project Wiki

No edit summary
No edit summary
 
Line 11: Line 11:
</pre>
</pre>
# go to http://localhost:8080/script and experiment more:
# go to http://localhost:8080/script and experiment more:
#* for example: <code>println(Jenkins.instance.pluginManager.plugins)"</code>
#* for example: <code>println(Jenkins.instance.pluginManager.plugins)</code>
#** this should print list of all installed plugins
#** this should print list of all installed plugins
#* more examples: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console
#* more examples: https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Script+Console

Latest revision as of 11:55, 30 September 2014

Description

Using script console.

Setup

  1. Ensure that Jenkins is up and running

How to test

  1. run: curl -d 'script=Hudson.instance.version' http://localhost:8080/scriptText"
    • the output should be Jenkins version, for example:
Result: 1.581
  1. go to http://localhost:8080/script and experiment more:

Expected Results

  1. there shouldn't be any error messages or stacktraces printed on a screen