public abstract class AbstractLiquibaseBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
protected String |
changeLogFile |
protected String |
classpath |
protected String |
contexts |
protected String |
databaseEngine |
protected String |
defaultSchemaName |
protected String |
driverClassname |
protected String |
labels |
protected String |
liquibasePropertiesPath |
protected String |
password
Deprecated.
|
protected String |
url |
protected String |
username
Deprecated.
|
Constructor and Description |
---|
AbstractLiquibaseBuilder() |
AbstractLiquibaseBuilder(String databaseEngine,
String changeLogFile,
String url,
String defaultSchemaName,
String contexts,
String liquibasePropertiesPath,
String classpath,
String driverClassname,
String changeLogParameters,
String labels,
String basePath,
boolean useIncludedDriver,
String credentialsId)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
clearDatabaseEngine() |
void |
clearDriverClassname() |
void |
clearLegacyCredentials() |
liquibase.Liquibase |
createLiquibase(hudson.model.Run<?,?> build,
hudson.model.TaskListener listener,
ExecutedChangesetAction action,
Properties configProperties,
hudson.Launcher launcher,
hudson.FilePath workspace) |
String |
getBasePath() |
String |
getChangeLogFile() |
String |
getChangeLogParameters() |
String |
getClasspath() |
String |
getContexts() |
String |
getCredentialsId() |
String |
getDatabaseEngine() |
String |
getDefaultSchemaName() |
abstract hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor() |
String |
getDriverClassname() |
List<IncludedDatabaseDriver> |
getDrivers() |
String |
getLabels() |
String |
getLiquibasePropertiesPath() |
String |
getPassword()
Deprecated.
|
protected static String |
getProperty(Properties configProperties,
LiquibaseProperty property) |
String |
getUrl() |
String |
getUsername()
Deprecated.
|
boolean |
hasLegacyCredentials() |
boolean |
hasUseIncludedDriverBeenSet() |
boolean |
isUseIncludedDriver() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
protected static void |
populateChangeLogParameters(liquibase.Liquibase liquibase,
Map environment,
CharSequence changeLogParameters,
boolean resolveMacros) |
protected Object |
readResolve() |
abstract 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 |
setBasePath(String basePath) |
void |
setChangeLogFile(String changeLogFile) |
void |
setChangeLogParameters(String changeLogParameters) |
void |
setClasspath(String classpath) |
void |
setContexts(String contexts) |
void |
setCredentialsId(String credentialsId) |
void |
setDatabaseEngine(String databaseEngine) |
void |
setDefaultSchemaName(String defaultSchemaName) |
void |
setDriverClassname(String driverClassname) |
void |
setLabels(String labels) |
void |
setLiquibasePropertiesPath(String liquibasePropertiesPath) |
void |
setPassword(String password) |
void |
setUrl(String url) |
void |
setUseIncludedDriver(Boolean useIncludedDriver) |
void |
setUsername(String username) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
protected String databaseEngine
protected String changeLogFile
protected String url
protected String defaultSchemaName
protected String contexts
protected String liquibasePropertiesPath
protected String classpath
protected String driverClassname
protected String labels
@Deprecated protected transient String username
@Deprecated protected transient String password
@Deprecated public AbstractLiquibaseBuilder(String databaseEngine, String changeLogFile, String url, String defaultSchemaName, String contexts, String liquibasePropertiesPath, String classpath, String driverClassname, String changeLogParameters, String labels, String basePath, boolean useIncludedDriver, String credentialsId)
public AbstractLiquibaseBuilder()
protected Object readResolve()
public abstract 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
InterruptedException
IOException
liquibase.exception.LiquibaseException
public abstract hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
public void perform(@Nonnull hudson.model.Run<?,?> build, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public liquibase.Liquibase createLiquibase(hudson.model.Run<?,?> build, hudson.model.TaskListener listener, ExecutedChangesetAction action, Properties configProperties, hudson.Launcher launcher, hudson.FilePath workspace) throws IOException, InterruptedException
IOException
InterruptedException
protected static void populateChangeLogParameters(liquibase.Liquibase liquibase, Map environment, CharSequence changeLogParameters, boolean resolveMacros)
protected static String getProperty(Properties configProperties, LiquibaseProperty property)
public List<IncludedDatabaseDriver> getDrivers()
public String getDatabaseEngine()
@DataBoundSetter public void setDatabaseEngine(String databaseEngine)
public String getChangeLogFile()
@DataBoundSetter public void setChangeLogFile(String changeLogFile)
public String getUrl()
@DataBoundSetter public void setUrl(String url)
public String getDefaultSchemaName()
@DataBoundSetter public void setDefaultSchemaName(String defaultSchemaName)
public String getContexts()
@DataBoundSetter public void setContexts(String contexts)
public String getLiquibasePropertiesPath()
@DataBoundSetter public void setLiquibasePropertiesPath(String liquibasePropertiesPath)
public String getClasspath()
@DataBoundSetter public void setClasspath(String classpath)
public String getDriverClassname()
@DataBoundSetter public void setDriverClassname(String driverClassname)
public String getChangeLogParameters()
@DataBoundSetter public void setChangeLogParameters(String changeLogParameters)
public String getLabels()
@DataBoundSetter public void setLabels(String labels)
public String getBasePath()
@DataBoundSetter public void setBasePath(String basePath)
public void clearDriverClassname()
public void clearDatabaseEngine()
public boolean hasUseIncludedDriverBeenSet()
public boolean isUseIncludedDriver()
@DataBoundSetter public void setUseIncludedDriver(Boolean useIncludedDriver)
public String getCredentialsId()
@DataBoundSetter public void setCredentialsId(String credentialsId)
@DataBoundSetter public void setUsername(String username)
@DataBoundSetter public void setPassword(String password)
@Deprecated public String getUsername()
@Deprecated public String getPassword()
public void clearLegacyCredentials()
public boolean hasLegacyCredentials()
Copyright © 2004-2017. All Rights Reserved.