public interface PipelineItemHistoryDao
| Modifier and Type | Method and Description |
|---|---|
void |
changeHistoryLocation(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
String oldFullName,
String newFullName)
Change the history of this WorkflowJob, if present.
|
void |
createHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
int buildNumber)
Creates the history entry of this WorkflowJob.
|
void |
deleteHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
Deletes the history of this WorkflowJob, if present.
|
File |
getMostRecentRevision(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob) |
int |
getOriginalBuildNumberFromReplay(PipelineHistoryDescription pipelineHistoryDescription) |
File |
getRevision(PipelineHistoryDescription pipelineHistoryDescription) |
File |
getRevision(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
String identifier)
Returns an old revision.
|
SortedMap<String,PipelineHistoryDescription> |
getRevisions(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
For a given Pipeline Job, return all revisions.
|
boolean |
isBuiltfromReplay(PipelineHistoryDescription pipelineHistoryDescription) |
boolean |
isHistoryPresent(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
Determines whether there are history entries present or not.
|
void |
purgeEntriesByAge(int maxAge,
org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob) |
boolean |
updateHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
int buildNumber)
Updates the history entry of this WorkflowJob.
|
void createHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
int buildNumber)
throws IOException
workflowJob - the Pipeline Job.buildNumber - the build number to be associated to the history entry.IOException - if creating a history entry fails on IO level.boolean updateHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
int buildNumber)
throws IOException
workflowJob - the Pipeline Job.buildNumber - the build number to be associated to the history entry.IOException - if updating the history fails on IO level.void deleteHistory(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
throws IOException
workflowJob - the Pipeline Job.IOException - if deleting the history fails on IO level.void changeHistoryLocation(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob,
String oldFullName,
String newFullName)
workflowJob - the Pipeline Job.oldFullName - the old full name (its folder-including tree path)newFullName - the new full nameFile getRevision(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob, String identifier) throws FileNotFoundException
workflowJob - the workflowJobidentifier - the identifierFileNotFoundException - if the revision id'd by the identifier can't be found.File getRevision(PipelineHistoryDescription pipelineHistoryDescription) throws FileNotFoundException
FileNotFoundExceptionFile getMostRecentRevision(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
boolean isBuiltfromReplay(PipelineHistoryDescription pipelineHistoryDescription) throws IOException
IOExceptionint getOriginalBuildNumberFromReplay(PipelineHistoryDescription pipelineHistoryDescription) throws IOException, SAXException, ParserConfigurationException
SortedMap<String,PipelineHistoryDescription> getRevisions(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob) throws IOException
workflowJob - the pipeline jobIOException - if retrieving the history revisions fails on IO level.boolean isHistoryPresent(org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
workflowJob - the Pipeline Job.void purgeEntriesByAge(int maxAge,
org.jenkinsci.plugins.workflow.job.WorkflowJob workflowJob)
Copyright © 2016–2019. All rights reserved.