Class KubectlBuildWrapper
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- jenkins.tasks.SimpleBuildWrapper
-
- org.jenkinsci.plugins.kubernetes.cli.KubectlBuildWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
public class KubectlBuildWrapper extends SimpleBuildWrapper
- Author:
- Nicolas De Loof
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KubectlBuildWrapper.DescriptorImpl
-
Nested classes/interfaces inherited from class jenkins.tasks.SimpleBuildWrapper
SimpleBuildWrapper.Context, SimpleBuildWrapper.Disposer
-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
Fields Modifier and Type Field Description String
caCertificate
String
clusterName
String
contextName
String
credentialsId
String
namespace
Boolean
restrictKubeConfigAccess
String
serverUrl
-
Constructor Summary
Constructors Constructor Description KubectlBuildWrapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment)
-
Methods inherited from class jenkins.tasks.SimpleBuildWrapper
createContext, createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, requiresWorkspace, runPreCheckout, setUp, setUp
-
Methods inherited from class hudson.tasks.BuildWrapper
all, getProjectAction, setUp
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
serverUrl
@DataBoundSetter public String serverUrl
-
credentialsId
@DataBoundSetter public String credentialsId
-
caCertificate
@DataBoundSetter public String caCertificate
-
contextName
@DataBoundSetter public String contextName
-
clusterName
@DataBoundSetter public String clusterName
-
namespace
@DataBoundSetter public String namespace
-
restrictKubeConfigAccess
@DataBoundSetter public Boolean restrictKubeConfigAccess
-
-
Method Detail
-
setUp
public void setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException
- Overrides:
setUp
in classSimpleBuildWrapper
- Throws:
IOException
InterruptedException
-
-