Class AppdomeBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.appdome.build.to.secure.AppdomeBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class AppdomeBuilder extends Builder implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppdomeBuilder.DescriptorImpl
-
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 AppdomeBuilder(Secret token, String teamId, Platform platform, StringWarp secondOutput)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
cleanCommand(StringBuilder command)
Cleans the provided command represented by a StringBuilder by removing any flags immediately followed by "NULL".BuildToTest
getBuildToTest()
Boolean
getBuildWithLogs()
String
getOutputLocation()
Platform
getPlatform()
DescriptorExtensionList<Platform,Descriptor<Platform>>
getPlatformDescriptors()
String
getSecondOutput()
String
getSelectedVendor()
String
getTeamId()
Secret
getToken()
static boolean
isHttpUrl(String urlString)
void
perform(Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener)
void
setBuildToTest(BuildToTest buildToTest)
void
setBuildWithLogs(Boolean buildWithLogs)
void
setOutputLocation(String outputLocation)
void
setSecondOutput(StringWarp secondOutput)
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, 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
-
AppdomeBuilder
@DataBoundConstructor public AppdomeBuilder(Secret token, String teamId, Platform platform, StringWarp secondOutput)
-
-
Method Detail
-
setBuildToTest
@DataBoundSetter public void setBuildToTest(BuildToTest buildToTest)
-
getBuildToTest
public BuildToTest getBuildToTest()
-
getSelectedVendor
public String getSelectedVendor()
-
getToken
public Secret getToken()
-
getTeamId
public String getTeamId()
-
getOutputLocation
public String getOutputLocation()
-
getBuildWithLogs
public Boolean getBuildWithLogs()
-
setBuildWithLogs
@DataBoundSetter public void setBuildWithLogs(Boolean buildWithLogs)
-
setOutputLocation
@DataBoundSetter public void setOutputLocation(String outputLocation)
-
perform
public void perform(@NonNull Run<?,?> run, FilePath workspace, EnvVars env, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
IOException
InterruptedException
-
cleanCommand
public static void cleanCommand(StringBuilder command)
Cleans the provided command represented by a StringBuilder by removing any flags immediately followed by "NULL". This method processes the command by checking each segment, and selectively modifying the original StringBuilder to exclude the unwanted flags and "NULL" values.- Parameters:
command
- The StringBuilder containing the command string to be cleaned directly.
-
isHttpUrl
public static boolean isHttpUrl(String urlString)
-
getPlatform
public Platform getPlatform()
-
getPlatformDescriptors
public DescriptorExtensionList<Platform,Descriptor<Platform>> getPlatformDescriptors()
-
getSecondOutput
public String getSecondOutput()
-
setSecondOutput
@DataBoundSetter public void setSecondOutput(StringWarp secondOutput)
-
-