public interface ScmExportPlugin
Modifier and Type | Method and Description |
---|---|
java.util.List<Action> |
actionsAvailableForContext(ScmOperationContext context) |
void |
cleanup()
perform any cleanup/teardown needed after disabling
|
default java.util.Map |
clusterFixJobs(ScmOperationContext context,
java.util.List<JobExportReference> jobs)
Function to fix status of the jobs on cluster environment.
|
default java.util.Map |
clusterFixJobs(ScmOperationContext context,
java.util.List<JobExportReference> jobs,
java.util.Map<java.lang.String,java.lang.String> originalPaths)
Function to fix status of the jobs on cluster environment.
|
ScmExportResult |
export(ScmOperationContext context,
java.lang.String actionId,
java.util.Set<JobExportReference> jobs,
java.util.Set<java.lang.String> pathsToDelete,
java.util.Map<java.lang.String,java.lang.String> input)
Perform export of the jobs
|
java.util.List<java.lang.String> |
getDeletedFiles()
Return a list of tracked files that have been deleted.
|
default java.lang.String |
getExportPushActionId()
It gets the action id for push action
|
ScmDiffResult |
getFileDiff(JobExportReference job)
Get diff for the given job
|
ScmDiffResult |
getFileDiff(JobExportReference job,
java.lang.String originalPath)
Get diff for the given job against another path, e.g.
|
BasicInputView |
getInputViewForAction(ScmOperationContext context,
java.lang.String actionId) |
JobState |
getJobStatus(JobExportReference job)
Return the state of the given job
|
JobState |
getJobStatus(JobExportReference job,
java.lang.String originalPath)
Return the state of the given job, with optional original repo path
|
default JobState |
getJobStatus(JobExportReference job,
java.lang.String originalPath,
boolean serialize)
Return the state of the given job, with optional original repo path
|
java.lang.String |
getRelativePathForJob(JobReference job)
Return the relative path for the job in the repo
|
ScmExportSynchState |
getStatus(ScmOperationContext context) |
default void |
initJobsStatus(java.util.List<JobExportReference> jobs)
Set default job status
|
JobState |
jobChanged(JobChangeEvent event,
JobExportReference exportReference)
Return the state of the given job
|
default void |
refreshJobsStatus(java.util.List<JobExportReference> jobs)
Function to refresh all job status .
|
default void |
totalClean()
perform a total clean
|
void cleanup()
default void totalClean()
BasicInputView getInputViewForAction(ScmOperationContext context, java.lang.String actionId)
actionId
- action IDjava.util.List<Action> actionsAvailableForContext(ScmOperationContext context)
context
- context mapScmExportResult export(ScmOperationContext context, java.lang.String actionId, java.util.Set<JobExportReference> jobs, java.util.Set<java.lang.String> pathsToDelete, java.util.Map<java.lang.String,java.lang.String> input) throws ScmPluginException
jobs
- jobs to be exportedinput
- input for the action propertiesScmPluginException
ScmExportSynchState getStatus(ScmOperationContext context) throws ScmPluginException
ScmPluginException
JobState getJobStatus(JobExportReference job)
job
- jobJobState getJobStatus(JobExportReference job, java.lang.String originalPath)
job
- joboriginalPath
- path of original job, e.g. if the file was renameddefault JobState getJobStatus(JobExportReference job, java.lang.String originalPath, boolean serialize)
job
- joboriginalPath
- path of original job, e.g. if the file was renamedserialize
- false to avoid serialize twice a jobdefault void initJobsStatus(java.util.List<JobExportReference> jobs)
jobs
- java.util.List<java.lang.String> getDeletedFiles()
JobState jobChanged(JobChangeEvent event, JobExportReference exportReference)
event
- change eventexportReference
- serialize the jobjava.lang.String getRelativePathForJob(JobReference job)
job
- jobScmDiffResult getFileDiff(JobExportReference job)
job
- jobScmDiffResult getFileDiff(JobExportReference job, java.lang.String originalPath)
job
- joboriginalPath
- original pathdefault java.util.Map clusterFixJobs(ScmOperationContext context, java.util.List<JobExportReference> jobs)
jobs
- rundeck jobsdefault java.util.Map clusterFixJobs(ScmOperationContext context, java.util.List<JobExportReference> jobs, java.util.Map<java.lang.String,java.lang.String> originalPaths)
jobs
- rundeck jobsoriginalPaths
- map of job ID to original path if the job has been renameddefault void refreshJobsStatus(java.util.List<JobExportReference> jobs)
jobs
- rundeck jobsdefault java.lang.String getExportPushActionId()