@Symbol(value="tektonCreateRaw") public class CreateRaw extends BaseStep
Modifier and Type | Class and Description |
---|---|
static class |
CreateRaw.DescriptorImpl |
BaseStep.InputType
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
kubernetesClient, pipelineClient, pipelineResourceClient, pipelineRunClient, taskClient, taskRunClient, tektonClient
BUILDERS, PUBLISHERS
Constructor and Description |
---|
CreateRaw(String input,
String inputType) |
Modifier and Type | Method and Description |
---|---|
String |
createPipeline(InputStream inputStream) |
String |
createPipelineRun(InputStream inputStream,
EnvVars envVars) |
String |
createTask(InputStream inputStream) |
String |
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) |
String |
getClusterName() |
String |
getInput() |
String |
getInputType() |
String |
getNamespace() |
protected ClassLoader |
getToolClassLoader() |
boolean |
isEnableCatalog() |
protected void |
logMessage(String text) |
void |
perform(Run<?,?> run,
FilePath workspace,
EnvVars envVars,
Launcher launcher,
TaskListener listener) |
protected String |
runCreate(Run<?,?> run,
FilePath workspace,
EnvVars envVars) |
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 tools
|
void |
streamPipelineRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pipelineRun) |
void |
streamTaskRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun) |
setKubernetesClient, setPipelineClient, setPipelineResourceClient, setPipelineRunClient, setTaskClient, setTaskRunClient, setTektonClient
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
@DataBoundSetter public void setNamespace(String namespace)
@DataBoundSetter public void setClusterName(String clusterName)
@DataBoundSetter public void setEnableCatalog(boolean enableCatalog)
protected ClassLoader getToolClassLoader()
protected void setToolClassLoader(ClassLoader toolClassLoader)
toolClassLoader
- public void setChecksPublisher(io.jenkins.plugins.checks.api.ChecksPublisher checksPublisher)
public String getInput()
public String getInputType()
public boolean isEnableCatalog()
public String getNamespace()
public String getClusterName()
protected String createWithResourceSpecificClient(TektonUtils.TektonResourceType resourceType, InputStream inputStream, EnvVars envVars) throws Exception
Exception
public String createTaskRun(InputStream inputStream) throws Exception
Exception
public String createTask(InputStream inputStream)
public String createPipeline(InputStream inputStream)
public String createPipelineRun(InputStream inputStream, EnvVars envVars) throws Exception
Exception
protected void enhancePipelineRunWithEnvVars(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pr, EnvVars envVars)
public void streamTaskRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.TaskRun taskRun) throws Exception
Exception
public void streamPipelineRunLogsToConsole(io.fabric8.tekton.pipeline.v1beta1.PipelineRun pipelineRun) throws Exception
Exception
public void perform(@NonNull Run<?,?> run, @NonNull FilePath workspace, @NonNull EnvVars envVars, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
InterruptedException
IOException
protected void logMessage(String text)
Copyright © 2016–2021. All rights reserved.