-
Notifications
You must be signed in to change notification settings - Fork 911
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2617 from variacode/dev/search-executions-state
Search executions and retry jobs for plugins
- Loading branch information
Showing
9 changed files
with
381 additions
and
1 deletion.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
core/src/main/java/com/dtolabs/rundeck/core/execution/ExecutionNotFound.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.dtolabs.rundeck.core.execution; | ||
|
||
|
||
public class ExecutionNotFound extends Exception{ | ||
|
||
private String executionId; | ||
private String project; | ||
|
||
|
||
public ExecutionNotFound(String message, String executionId, String project){ | ||
super(message); | ||
this.executionId = executionId; | ||
this.project = project; | ||
} | ||
|
||
public String getExecutionId() { | ||
return executionId; | ||
} | ||
|
||
public String getProject() { | ||
return project; | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
core/src/main/java/com/dtolabs/rundeck/core/execution/ExecutionReference.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.dtolabs.rundeck.core.execution; | ||
|
||
|
||
import com.dtolabs.rundeck.core.jobs.JobReference; | ||
|
||
import java.util.Date; | ||
|
||
public interface ExecutionReference { | ||
String getId(); | ||
String getFilter(); | ||
String getOptions(); | ||
JobReference getJob(); | ||
Date getDateStarted(); | ||
String getStatus(); | ||
String getSucceededNodeList(); | ||
String getFailedNodeList(); | ||
String getTargetNodes(); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
rundeckapp/grails-app/services/rundeck/services/execution/ExecutionReferenceImpl.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package rundeck.services.execution | ||
|
||
import com.dtolabs.rundeck.core.execution.ExecutionReference | ||
import rundeck.services.JobReferenceImpl | ||
|
||
|
||
class ExecutionReferenceImpl implements ExecutionReference { | ||
String options | ||
String filter | ||
String id | ||
JobReferenceImpl job | ||
Date dateStarted | ||
String status | ||
String succeededNodeList | ||
String failedNodeList | ||
String targetNodes | ||
|
||
@Override | ||
String toString() { | ||
return "ExecutionReference{" + | ||
"id='" + id + '\'' + | ||
", status='" + status + '\'' + | ||
", filter='" + filter + '\'' + | ||
", options='" + options + '\'' + | ||
", job='" + job + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.