Class CreateRaw
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Builder
org.waveywaves.jenkins.plugins.tekton.client.build.BaseStep
org.waveywaves.jenkins.plugins.tekton.client.build.create.CreateRaw
- All Implemented Interfaces:
ExtensionPoint,Describable<Builder>,BuildStep,SimpleBuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.waveywaves.jenkins.plugins.tekton.client.build.BaseStep
BaseStep.InputTypeNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from class org.waveywaves.jenkins.plugins.tekton.client.build.BaseStep
kubernetesClient, pipelineClient, pipelineResourceClient, pipelineRunClient, taskClient, taskRunClient, tektonClientFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePipeline(InputStream inputStream) createPipelineRun(InputStream inputStream, EnvVars envVars) createTask(InputStream inputStream) createTaskRun(InputStream inputStream) protected StringcreateWithResourceSpecificClient(TektonUtils.TektonResourceType resourceType, InputStream inputStream, EnvVars envVars) protected voidenhancePipelineRunWithEnvVars(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pr, EnvVars envVars) getInput()protected ClassLoaderbooleanprotected voidlogMessage(String text) voidperform(Run<?, ?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener) protected StringvoidsetChecksPublisher(io.jenkins.plugins.checks.api.ChecksPublisher checksPublisher) voidsetClusterName(String clusterName) voidsetEnableCatalog(boolean enableCatalog) voidsetNamespace(String namespace) protected voidsetToolClassLoader(ClassLoader toolClassLoader) Only exposed for testing so that we can use a test class loader to load test toolsvoidstreamPipelineRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pipelineRun) voidstreamTaskRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun) Methods inherited from class org.waveywaves.jenkins.plugins.tekton.client.build.BaseStep
setKubernetesClient, setPipelineClient, setPipelineResourceClient, setPipelineRunClient, setTaskClient, setTaskRunClient, setTektonClientMethods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
CreateRaw
-
-
Method Details
-
setNamespace
-
setClusterName
-
setEnableCatalog
@DataBoundSetter public void setEnableCatalog(boolean enableCatalog) -
getToolClassLoader
-
setToolClassLoader
Only exposed for testing so that we can use a test class loader to load test tools- Parameters:
toolClassLoader-
-
setChecksPublisher
public void setChecksPublisher(io.jenkins.plugins.checks.api.ChecksPublisher checksPublisher) -
getInput
-
getInputType
-
isEnableCatalog
public boolean isEnableCatalog() -
getNamespace
-
getClusterName
-
createWithResourceSpecificClient
protected String createWithResourceSpecificClient(TektonUtils.TektonResourceType resourceType, InputStream inputStream, EnvVars envVars) throws Exception - Throws:
Exception
-
createTaskRun
- Throws:
Exception
-
createTask
-
createPipeline
-
createPipelineRun
- Throws:
Exception
-
enhancePipelineRunWithEnvVars
protected void enhancePipelineRunWithEnvVars(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pr, EnvVars envVars) -
streamTaskRunLogsToConsole
public void streamTaskRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun) throws Exception - Throws:
Exception
-
streamPipelineRunLogsToConsole
public void streamPipelineRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pipelineRun) throws Exception - Throws:
Exception
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath workspace, @NonNull EnvVars envVars, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
runCreate
-
logMessage
-