public class RollbackBuilder extends AbstractLiquibaseBuilder
Modifier and Type | Class and Description |
---|---|
static class |
RollbackBuilder.DescriptorImpl |
static class |
RollbackBuilder.RollbackStrategy |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
static String |
DATE_PATTERN |
static RollbackBuilder.DescriptorImpl |
DESCRIPTOR |
protected String |
numberOfChangesetsToRollback |
changeLogFile, classpath, contexts, databaseEngine, defaultSchemaName, labels, liquibasePropertiesPath, password, url, username
Constructor and Description |
---|
RollbackBuilder() |
RollbackBuilder(String databaseEngine,
String changeLogFile,
String username,
String password,
String url,
String defaultSchemaName,
String contexts,
String liquibasePropertiesPath,
String classpath,
String changeLogParameters,
String labels,
String basePath,
String rollbackType,
String numberOfChangesetsToRollback,
String rollbackLastHours,
String rollbackToTag,
String rollbackToDate,
String credentialsId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor() |
String |
getNumberOfChangesetsToRollback() |
String |
getRollbackLastHours() |
String |
getRollbackToDate() |
String |
getRollbackToTag() |
String |
getRollbackType() |
protected Date |
resolveTargetDate(RollbackBuilder.RollbackStrategy rollbackStrategy,
Date now,
hudson.EnvVars environment) |
protected Date |
resolveTargetDate(RollbackBuilder.RollbackStrategy rollbackStrategy,
hudson.EnvVars environment) |
void |
runPerform(hudson.model.Run<?,?> build,
hudson.model.TaskListener listener,
liquibase.Liquibase liquibase,
liquibase.Contexts contexts,
liquibase.LabelExpression labelExpression,
ExecutedChangesetAction executedChangesetAction,
hudson.FilePath workspace) |
void |
setNumberOfChangesetsToRollback(String numberOfChangesetsToRollback) |
void |
setRollbackLastHours(String rollbackLastHours) |
void |
setRollbackToDate(String rollbackToDate) |
void |
setRollbackToTag(String rollbackToTag) |
void |
setRollbackType(String rollbackType) |
clearDatabaseEngine, clearLegacyCredentials, createLiquibase, getBasePath, getChangeLogFile, getChangeLogParameters, getClasspath, getContexts, getCredentialsId, getDatabaseEngine, getDefaultSchemaName, getLabels, getLiquibasePropertiesPath, getPassword, getProperty, getUrl, getUsername, hasLegacyCredentials, perform, populateChangeLogParameters, readResolve, setBasePath, setChangeLogFile, setChangeLogParameters, setClasspath, setContexts, setCredentialsId, setDatabaseEngine, setDefaultSchemaName, setLabels, setLiquibasePropertiesPath, setPassword, setUrl, setUsername
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@Extension public static final RollbackBuilder.DescriptorImpl DESCRIPTOR
public static final String DATE_PATTERN
protected String numberOfChangesetsToRollback
@DataBoundConstructor public RollbackBuilder()
@Deprecated public RollbackBuilder(String databaseEngine, String changeLogFile, String username, String password, String url, String defaultSchemaName, String contexts, String liquibasePropertiesPath, String classpath, String changeLogParameters, String labels, String basePath, String rollbackType, String numberOfChangesetsToRollback, String rollbackLastHours, String rollbackToTag, String rollbackToDate, String credentialsId)
public void runPerform(hudson.model.Run<?,?> build, hudson.model.TaskListener listener, liquibase.Liquibase liquibase, liquibase.Contexts contexts, liquibase.LabelExpression labelExpression, ExecutedChangesetAction executedChangesetAction, hudson.FilePath workspace) throws InterruptedException, IOException, liquibase.exception.LiquibaseException
runPerform
in class AbstractLiquibaseBuilder
InterruptedException
IOException
liquibase.exception.LiquibaseException
protected Date resolveTargetDate(RollbackBuilder.RollbackStrategy rollbackStrategy, hudson.EnvVars environment)
protected Date resolveTargetDate(RollbackBuilder.RollbackStrategy rollbackStrategy, Date now, hudson.EnvVars environment)
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class AbstractLiquibaseBuilder
public String getNumberOfChangesetsToRollback()
@DataBoundSetter public void setNumberOfChangesetsToRollback(String numberOfChangesetsToRollback)
public String getRollbackToTag()
@DataBoundSetter public void setRollbackToTag(String rollbackToTag)
public String getRollbackToDate()
@DataBoundSetter public void setRollbackToDate(String rollbackToDate)
public String getRollbackType()
@DataBoundSetter public void setRollbackType(String rollbackType)
public String getRollbackLastHours()
@DataBoundSetter public void setRollbackLastHours(String rollbackLastHours)
Copyright © 2016–2020. All rights reserved.