Package com.sic.plugins.kpp
Class KPPKeychainsBuildWrapper
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- com.sic.plugins.kpp.KPPKeychainsBuildWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
public class KPPKeychainsBuildWrapper extends BuildWrapper
Build wrapper for keychains- Author:
- mb
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KPPKeychainsBuildWrapper.DescriptorImpl
Descriptor of the KPPKeychainBuildWrapper.-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description KPPKeychainsBuildWrapper(List<KPPKeychainCertificatePair> keychainCertificatePairs, boolean deleteKeychainsAfterBuild, boolean overwriteExistingKeychains)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getDeleteKeychainsAfterBuild()
Get if the keychain can be deleted after the build.KPPKeychainsBuildWrapper.DescriptorImpl
getDescriptor()
List<KPPKeychainCertificatePair>
getKeychainCertificatePairs()
Get all keychain certificate pairs configured for this build job.boolean
getOverwriteExistingKeychains()
Get if a current existing keychain with the same filename can be overwritten.BuildWrapper.Environment
setUp(AbstractBuild build, Launcher launcher, BuildListener listener)
-
Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, decorateLogger, getProjectAction, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, setUp
-
-
-
-
Constructor Detail
-
KPPKeychainsBuildWrapper
@DataBoundConstructor public KPPKeychainsBuildWrapper(List<KPPKeychainCertificatePair> keychainCertificatePairs, boolean deleteKeychainsAfterBuild, boolean overwriteExistingKeychains)
Constructor- Parameters:
keychainCertificatePairs
- list of keychain certificate pairsdeleteKeychainsAfterBuild
- if the keychain can be deleted after the buildoverwriteExistingKeychains
- if the keychain can be overwritten
-
-
Method Detail
-
getDeleteKeychainsAfterBuild
public boolean getDeleteKeychainsAfterBuild()
Get if the keychain can be deleted after the build.- Returns:
- true can be deleted, otherwise false
-
getOverwriteExistingKeychains
public boolean getOverwriteExistingKeychains()
Get if a current existing keychain with the same filename can be overwritten.- Returns:
- true can be overwritten, otherwise false
-
getKeychainCertificatePairs
public List<KPPKeychainCertificatePair> getKeychainCertificatePairs()
Get all keychain certificate pairs configured for this build job.- Returns:
- list of keychain certificate pairs
-
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
- Overrides:
setUp
in classBuildWrapper
- Throws:
IOException
InterruptedException
-
getDescriptor
public KPPKeychainsBuildWrapper.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfaceDescribable<BuildWrapper>
- Overrides:
getDescriptor
in classAbstractDescribableImpl<BuildWrapper>
-
-