Package io.snyk.jenkins
Class SnykContext
- java.lang.Object
-
- io.snyk.jenkins.SnykContext
-
public class SnykContext extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SnykContext
forFreestyleProject(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
static SnykContext
forPipelineProject(org.jenkinsci.plugins.workflow.steps.StepContext context)
EnvVars
getEnvVars()
Launcher
getLauncher()
PrintStream
getLogger()
Run<?,?>
getRun()
TaskListener
getTaskListener()
FilePath
getWorkspace()
-
-
-
Method Detail
-
getWorkspace
public FilePath getWorkspace()
-
getLauncher
public Launcher getLauncher()
-
getEnvVars
public EnvVars getEnvVars()
-
getRun
public Run<?,?> getRun()
-
getTaskListener
public TaskListener getTaskListener()
-
getLogger
public PrintStream getLogger()
-
forFreestyleProject
public static SnykContext forFreestyleProject(Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener)
-
forPipelineProject
public static SnykContext forPipelineProject(org.jenkinsci.plugins.workflow.steps.StepContext context)
-
-