New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search executions and retry jobs for plugins #2617

merged 8 commits into from Jul 18, 2017


None yet
2 participants

jtobard commented Jul 12, 2017

Add the following method to JobService to be used on plugins:

  • List<ExecutionReference> searchExecutions(String state, String project, String jobUuid, String excludeJobUuid, String since);
    Returns a list of ExecutionReference. Project and state to search is mandatory (incomplete, failed, succeeded), others parameters are optional.
    since accept the Sizes.parseTimeDuration format, 1d or 5h.

  • ExecutionReference executionForId(String id, String project) throws ExecutionNotFound;
    Retrieve the information of one execution by his id and his project.

  • String startJob(JobReference jobReference, String jobArgString, String jobFilter, String asUser)throws JobNotFound;
    Starts a job (without waiting for its execution) using the jobReference information, passing jobArgString as input and jobFilter as node filter. If asUser is null, current user is assumed. Returns the Execution Id.

@gschueler gschueler added this to the 2.9.0 milestone Jul 12, 2017

@gschueler gschueler merged commit a983d0a into rundeck:prerelease-2.9.0 Jul 18, 2017

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed

@jtobard jtobard deleted the variacode:dev/search-executions-state branch Jul 19, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment