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.InputType
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 class org.waveywaves.jenkins.plugins.tekton.client.build.BaseStep
kubernetesClient, pipelineClient, pipelineResourceClient, pipelineRunClient, taskClient, taskRunClient, tektonClient
Fields 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 String
createWithResourceSpecificClient
(TektonUtils.TektonResourceType resourceType, InputStream inputStream, EnvVars envVars) protected void
enhancePipelineRunWithEnvVars
(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pr, EnvVars envVars) getInput()
protected ClassLoader
boolean
protected void
logMessage
(String text) void
perform
(Run<?, ?> run, FilePath workspace, EnvVars envVars, Launcher launcher, TaskListener listener) protected String
void
setChecksPublisher
(io.jenkins.plugins.checks.api.ChecksPublisher checksPublisher) void
setClusterName
(String clusterName) void
setEnableCatalog
(boolean enableCatalog) void
setNamespace
(String namespace) protected void
setToolClassLoader
(ClassLoader toolClassLoader) Only exposed for testing so that we can use a test class loader to load test toolsvoid
streamPipelineRunLogsToConsole
(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pipelineRun) void
streamTaskRunLogsToConsole
(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, setTektonClient
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 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:
InterruptedException
IOException
-
runCreate
-
logMessage
-