mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-07 13:38:23 +00:00
add example of listing all running executions
This commit is contained in:
parent
492b31af06
commit
852fab0407
3 changed files with 5 additions and 0 deletions
|
@ -22,6 +22,7 @@ rundeck = new RundeckClient("http://localhost:4440", "admin", "admin")
|
|||
|
||||
println "All RunDeck projects : ${rundeck.projects}"
|
||||
println "All RunDeck jobs : ${rundeck.jobs}"
|
||||
println "All RunDeck running executions : ${rundeck.runningExecutions}"
|
||||
{code}
|
||||
|
||||
You can also [download|./download.html] the lib and all its dependencies in 1 big jar file, and add it to your classpath before running your script : save the following script in a file named "{{rundeck.groovy}}", and execute it with "{{groovy -cp /path/to/rundeck-api-java-client-VERSION-jar-with-dependencies.jar rundeck.groovy}}".
|
||||
|
@ -33,6 +34,7 @@ rundeck = new RundeckClient("http://localhost:4440", "admin", "admin")
|
|||
|
||||
println "All RunDeck projects : ${rundeck.projects}"
|
||||
println "All RunDeck jobs : ${rundeck.jobs}"
|
||||
println "All RunDeck running executions : ${rundeck.runningExecutions}"
|
||||
{code}
|
||||
|
||||
h2. Running a job
|
||||
|
|
|
@ -18,6 +18,7 @@ rundeck = RundeckClient.new("http://localhost:4440", "admin", "admin")
|
|||
|
||||
puts "All RunDeck projects : #{rundeck.projects}"
|
||||
puts "All RunDeck jobs : #{rundeck.jobs}"
|
||||
puts "All RunDeck running executions : #{rundeck.runningExecutions}"
|
||||
{code}
|
||||
|
||||
You can also add the librairie to the classpath : save the following script in a file named "{{rundeck.rb}}", and execute it with "{{jruby -rjava -J-cp /path/to/rundeck-api-java-client-VERSION-jar-with-dependencies.jar rundeck.rb}}".
|
||||
|
@ -29,6 +30,7 @@ rundeck = RundeckClient.new("http://localhost:4440", "admin", "admin")
|
|||
|
||||
puts "All RunDeck projects : #{rundeck.projects}"
|
||||
puts "All RunDeck jobs : #{rundeck.jobs}"
|
||||
puts "All RunDeck running executions : #{rundeck.runningExecutions}"
|
||||
{code}
|
||||
|
||||
h2. Running a job
|
||||
|
|
|
@ -16,6 +16,7 @@ rundeck = RundeckClient("http://localhost:4440", "admin", "admin")
|
|||
|
||||
print("All RunDeck projects : %s" % rundeck.projects)
|
||||
print("All RunDeck jobs : %s" % rundeck.jobs)
|
||||
print("All RunDeck running executions : %s" % rundeck.runningExecutions)
|
||||
{code}
|
||||
|
||||
h2. Running a job
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue