Package caphyon.jenkins.advinst
Class AdvinstBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- caphyon.jenkins.advinst.AdvinstBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public final class AdvinstBuilder extends Builder implements SimpleBuildStep
SampleBuilder
. When a build is performed, theBuildStepCompatibilityLayer.perform(AbstractBuild, Launcher, BuildListener)
method will be invoked.- Author:
- Ciprian Burca
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description AdvinstBuilder(String installName, String advinstRunType, String aipProjectPath, String aipProjectBuild, String aipProjectOutputFolder, String aipProjectOutputName, String advinstExtraCommands, boolean aipProjectNoDigitalSignature)
Class DataBoundConstructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAdvinstExtraCommands()
AdvinstInstallation
getAdvinstInstallation()
String
getAdvinstRunType()
String
getAipProjectBuild()
boolean
getAipProjectNoDigitalSignature()
String
getAipProjectOutputFolder()
String
getAipProjectOutputName()
String
getAipProjectPath()
AdvinstDescriptorImpl
getDescriptor()
String
getInstallName()
void
perform(Run<?,?> run, FilePath wotkspace, EnvVars envVars, Launcher launcher, TaskListener listener)
void
setInstallName(String installName)
-
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
-
-
-
-
Constructor Detail
-
AdvinstBuilder
@DataBoundConstructor public AdvinstBuilder(String installName, String advinstRunType, String aipProjectPath, String aipProjectBuild, String aipProjectOutputFolder, String aipProjectOutputName, String advinstExtraCommands, boolean aipProjectNoDigitalSignature)
Class DataBoundConstructor. Fields in config.jelly must match the parameter names in the "DataBoundConstructor"- Parameters:
installName
- name of the selected advinst installation nameadvinstRunType
- execution mode for the plugin: deploy, buildaipProjectPath
- path to the Advanced Installer project to be builtaipProjectBuild
- build name to be executedaipProjectOutputFolder
- output folder for the result packageaipProjectOutputName
- name of the result packageadvinstExtraCommands
- list of aic commands to be executead against the aipaipProjectNoDigitalSignature
- tells to skip the digital signature step
-
-
Method Detail
-
perform
public void perform(Run<?,?> run, FilePath wotkspace, EnvVars envVars, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
getDescriptor
public AdvinstDescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-
getInstallName
public String getInstallName()
-
setInstallName
@DataBoundSetter public void setInstallName(String installName)
-
getAdvinstRunType
public String getAdvinstRunType()
-
getAipProjectPath
public String getAipProjectPath()
- Returns:
- String containing the path to the Advanced Installer project to build
-
getAipProjectBuild
public String getAipProjectBuild()
- Returns:
- String containing the build name to performed
-
getAipProjectOutputFolder
public String getAipProjectOutputFolder()
- Returns:
- String containing the location of the result package
-
getAipProjectOutputName
public String getAipProjectOutputName()
- Returns:
- String containing the package name
-
getAdvinstExtraCommands
public String getAdvinstExtraCommands()
- Returns:
- String containing additional edit commands
-
getAipProjectNoDigitalSignature
public boolean getAipProjectNoDigitalSignature()
- Returns:
- Boolean that tells whether the digital signature step should be performed
-
getAdvinstInstallation
public AdvinstInstallation getAdvinstInstallation()
-
-