forked from prospero238/liquibase-runner
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
provided build steps for liquibase operations.
- Loading branch information
1 parent
4aa8744
commit fb8f1cc
Showing
16 changed files
with
440 additions
and
205 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -219,6 +219,5 @@ | |
</dependency> | ||
</dependencies> | ||
</profile> | ||
|
||
</profiles> | ||
</project> |
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
140 changes: 140 additions & 0 deletions
140
src/main/java/org/jenkinsci/plugins/liquibase/workflow/AbstractLiquibaseStep.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,140 @@ | ||
package org.jenkinsci.plugins.liquibase.workflow; | ||
|
||
import javax.annotation.CheckForNull; | ||
import javax.annotation.Nullable; | ||
|
||
import org.jenkinsci.plugins.workflow.steps.AbstractStepImpl; | ||
import org.kohsuke.stapler.DataBoundSetter; | ||
|
||
public class AbstractLiquibaseStep extends AbstractStepImpl { | ||
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; | ||
private String changeLogParameters; | ||
private String basePath; | ||
|
||
@CheckForNull | ||
private String credentialsId; | ||
|
||
public AbstractLiquibaseStep( | ||
String changeLogFile) { | ||
this.changeLogFile = changeLogFile; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setDatabaseEngine(String databaseEngine) { | ||
this.databaseEngine = databaseEngine; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setChangeLogFile(String changeLogFile) { | ||
this.changeLogFile = changeLogFile; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setUrl(String url) { | ||
this.url = url; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setDefaultSchemaName(String defaultSchemaName) { | ||
this.defaultSchemaName = defaultSchemaName; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setContexts(String contexts) { | ||
this.contexts = contexts; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setLiquibasePropertiesPath(String liquibasePropertiesPath) { | ||
this.liquibasePropertiesPath = liquibasePropertiesPath; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setClasspath(String classpath) { | ||
this.classpath = classpath; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setDriverClassname(String driverClassname) { | ||
this.driverClassname = driverClassname; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setLabels(String labels) { | ||
this.labels = labels; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setChangeLogParameters(String changeLogParameters) { | ||
this.changeLogParameters = changeLogParameters; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setBasePath(String basePath) { | ||
this.basePath = basePath; | ||
} | ||
|
||
@DataBoundSetter | ||
public void setCredentialsId(String credentialsId) { | ||
this.credentialsId = credentialsId; | ||
} | ||
|
||
public String getDatabaseEngine() { | ||
return databaseEngine; | ||
} | ||
|
||
public String getChangeLogFile() { | ||
return changeLogFile; | ||
} | ||
|
||
public String getUrl() { | ||
return url; | ||
} | ||
|
||
public String getDefaultSchemaName() { | ||
return defaultSchemaName; | ||
} | ||
|
||
public String getContexts() { | ||
return contexts; | ||
} | ||
|
||
public String getLiquibasePropertiesPath() { | ||
return liquibasePropertiesPath; | ||
} | ||
|
||
public String getClasspath() { | ||
return classpath; | ||
} | ||
|
||
public String getDriverClassname() { | ||
return driverClassname; | ||
} | ||
|
||
public String getLabels() { | ||
return labels; | ||
} | ||
|
||
public String getChangeLogParameters() { | ||
return changeLogParameters; | ||
} | ||
|
||
public String getBasePath() { | ||
return basePath; | ||
} | ||
|
||
@Nullable | ||
public String getCredentialsId() { | ||
return credentialsId; | ||
} | ||
|
||
|
||
} |
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.