mirror of
https://github.com/Fishwaldo/rundeck-api-java-client.git
synced 2025-07-08 05:58:39 +00:00
add mapping for /executions/running
This commit is contained in:
parent
c8c45a48fc
commit
c1bed2d58d
1 changed files with 16 additions and 0 deletions
|
@ -547,6 +547,22 @@ public class RundeckClient implements Serializable {
|
|||
* Executions
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get the running executions for the given project
|
||||
*
|
||||
* @param project name of the project - mandatory
|
||||
* @return a {@link List} of {@link RundeckExecution} : might be empty, but won't be null
|
||||
* @throws RundeckApiException in case of error when calling the API (non-existent project with this name)
|
||||
* @throws RundeckApiLoginException if the login failed
|
||||
* @throws IllegalArgumentException if the project is blank (null, empty or whitespace)
|
||||
*/
|
||||
public List<RundeckExecution> getRunningExecutions(String project) throws RundeckApiException,
|
||||
RundeckApiLoginException, IllegalArgumentException {
|
||||
AssertUtil.notBlank(project, "project is mandatory to trigger an ad-hoc command !");
|
||||
return new ApiCall(this).get("/executions/running?project=" + project,
|
||||
new ExecutionsParser("result/executions/execution"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the executions of the given job
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue