Package com.rm5248.debianpbuilder
Class DebianPbuilder
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
com.rm5248.debianpbuilder.DebianPbuilder
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
Jenkins plugin that builds Debian packages in a pbuilder/cowbuilder environement.
Based off of: https://jenkins-debian-glue.org/
The reason for having this as an actual plugin instead of the scripts is so that
we can have builders on different machines that can all communicate back to the
master Jenkins instance.
-
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
ConstructorDescriptionDebianPbuilder
(int numberCores, String distribution, String mirrorSite, boolean buildAsTag, String additionalBuildResults, String architecture) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
int
boolean
boolean
boolean
perform
(AbstractBuild build, Launcher launcher, BuildListener listener) void
perform
(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) void
setAdditionalBuildResults
(String additionalBuildResults) void
setArchitecture
(String architecture) void
setArtifactoryRepoName
(String repoName) void
setBinariesDir
(String binariesDir) void
setBindMounts
(String bindMounts) void
setBuildAsTag
(boolean buildAsTag) void
setComponents
(String components) void
setDebianDirLocation
(String debianDirLocation) void
setDistribution
(String distribution) void
setExtraPackages
(String extraPackages) void
setGenerateArtifactorySpecFile
(boolean generateSpec) void
setGuessComponents
(boolean guess) void
setKeyring
(String keyring) void
setMirrorSite
(String mirrorSite) void
setNumberCores
(int cores) void
setOtherMirror
(String otherMirror) void
setPbuilderType
(String pbuilderType) void
setPristineTarName
(String pristinetarName) Methods inherited from class hudson.tasks.Builder
all, getRequiredMonitorService, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, 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, prebuild
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
DebianPbuilder
@DataBoundConstructor public DebianPbuilder() -
DebianPbuilder
@Deprecated public DebianPbuilder(int numberCores, String distribution, String mirrorSite, boolean buildAsTag, String additionalBuildResults, String architecture) Deprecated.
-
-
Method Details
-
setNumberCores
@DataBoundSetter public void setNumberCores(int cores) -
setDistribution
-
setMirrorSite
-
setBuildAsTag
@DataBoundSetter public void setBuildAsTag(boolean buildAsTag) -
setAdditionalBuildResults
-
setArchitecture
-
setDebianDirLocation
-
setKeyring
-
setComponents
-
setGuessComponents
@DataBoundSetter public void setGuessComponents(boolean guess) -
setPristineTarName
-
setOtherMirror
-
setExtraPackages
-
setGenerateArtifactorySpecFile
@DataBoundSetter public void setGenerateArtifactorySpecFile(boolean generateSpec) -
setArtifactoryRepoName
-
setPbuilderType
-
getNumberCores
public int getNumberCores() -
getDistribution
-
getMirrorSite
-
getBuildAsTag
public boolean getBuildAsTag() -
getAdditionalBuildResults
-
getArchitecture
-
getDebianDirLocation
-
getKeyring
-
isDebianDistribution
public boolean isDebianDistribution() -
isUbuntuDistribution
public boolean isUbuntuDistribution() -
getComponents
-
getGuessComponents
public boolean getGuessComponents() -
getPristineTarName
-
getOtherMirror
-
getExtraPackages
-
getGenerateArtifactorySpecFile
public boolean getGenerateArtifactorySpecFile() -
getArtifactoryRepoName
-
getPbuilderType
-
setBinariesDir
-
getBinariesDir
-
setBindMounts
-
getBindMounts
-
perform
public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
perform
public boolean perform(AbstractBuild build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException - Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Throws:
InterruptedException
IOException
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<Builder>
- Overrides:
getDescriptor
in classBuilder
-