public class FlywayBuilder extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
FlywayBuilder.StepDescriptor<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Modifier and Type | Field and Description |
|---|---|
static FlywayBuilder.StepDescriptor |
DESCRIPTOR |
| Constructor and Description |
|---|
FlywayBuilder(String installationName,
String flywayCommand,
String username,
String password,
String url,
String locations,
String commandLineArgs,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandLineArgs() |
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials(hudson.model.Item project) |
String |
getCredentialsId() |
String |
getCredentialsPassword(hudson.EnvVars environment,
hudson.model.Item project) |
hudson.model.Descriptor<hudson.tasks.Builder> |
getDescriptor() |
String |
getFlywayCommand() |
FlywayInstallation |
getInstallation() |
String |
getInstallationName() |
String |
getLocations() |
String |
getPassword() |
String |
getUrl() |
String |
getUsername() |
String |
getUsername(hudson.EnvVars environment,
hudson.model.Item project) |
static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
lookupSystemCredentials(String credentialsId,
hudson.model.Item project) |
void |
perform(hudson.model.Run build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild@Extension public static final FlywayBuilder.StepDescriptor DESCRIPTOR
public FlywayInstallation getInstallation()
public hudson.model.Descriptor<hudson.tasks.Builder> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.Builderpublic void perform(hudson.model.Run build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException,
IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic String getCommandLineArgs()
public String getFlywayCommand()
public String getInstallationName()
public String getUsername()
public String getPassword()
public String getLocations()
public String getUrl()
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials(hudson.model.Item project)
public static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials lookupSystemCredentials(String credentialsId, hudson.model.Item project)
public String getUsername(hudson.EnvVars environment, hudson.model.Item project)
public String getCredentialsPassword(hudson.EnvVars environment, hudson.model.Item project)
Copyright © 2016–2017. All rights reserved.