Package sp.sd.flywayrunner.builder
Class FlywayBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- sp.sd.flywayrunner.builder.FlywayBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,Serializable
,SimpleBuildStep
public class FlywayBuilder extends Builder implements SimpleBuildStep, Serializable
Jenkins builder which runs flyway.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FlywayBuilder.DescriptorImpl<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommandLineArgs()
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
getCredentials(Item project)
String
getCredentialsId()
String
getCredentialsPassword(Item project)
FlywayBuilder.DescriptorImpl
getDescriptor()
String
getFlywayCommand()
FlywayInstallation
getInstallation()
String
getInstallationName()
String
getLocations()
String
getUrl()
String
getUsername(Item project)
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
lookupSystemCredentials(String credentialsId, Item project)
void
perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
-
Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
getInstallation
public FlywayInstallation getInstallation()
-
getDescriptor
public FlywayBuilder.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
perform
public void perform(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getCommandLineArgs
public String getCommandLineArgs()
-
getFlywayCommand
public String getFlywayCommand()
-
getInstallationName
public String getInstallationName()
-
getLocations
public String getLocations()
-
getUrl
public String getUrl()
-
getCredentialsId
@Nullable public String getCredentialsId()
-
getCredentials
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials(Item project)
-
lookupSystemCredentials
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials lookupSystemCredentials(String credentialsId, Item project)
-
-