Package com.fortify.plugin.jenkins.steps
Class FortifyStep
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- com.fortify.plugin.jenkins.steps.FortifyStep
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,BuildStep
,SimpleBuildStep
- Direct Known Subclasses:
FortifyCloudScanStep
,FortifySCAStep
,FortifyUpdate
,FortifyUpload
public abstract class FortifyStep extends org.jenkinsci.plugins.workflow.steps.Step implements SimpleBuildStep
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description FortifyStep()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addAllArguments(List<String> args, String argsToAdd)
protected void
addAllArguments(List<String> args, String argsToAdd, String flag)
protected void
addAllArgumentsWithNoMasks(List<org.apache.commons.lang3.tuple.Pair<String,Boolean>> args, String argsToAdd, String flag)
protected String
getExecutable(String filename, Run<?,?> build, FilePath workspace, TaskListener listener, String targetEnvVarName, EnvVars env)
Search for the executable filename in executable home directory or on PATH environment variable or in workspaceAction
getProjectAction(AbstractProject<?,?> project)
Collection<? extends Action>
getProjectActions(AbstractProject<?,?> project)
boolean
perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
boolean
prebuild(AbstractBuild<?,?> build, BuildListener listener)
protected String
resolve(String param, TaskListener listener)
protected void
setLastBuild(Run<?,?> lastBuild)
org.jenkinsci.plugins.workflow.steps.StepExecution
start(org.jenkinsci.plugins.workflow.steps.StepContext arg0)
-
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
getRequiredMonitorService
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, perform, requiresWorkspace
-
-
-
-
Method Detail
-
setLastBuild
protected void setLastBuild(Run<?,?> lastBuild)
-
getExecutable
protected String getExecutable(String filename, Run<?,?> build, FilePath workspace, TaskListener listener, String targetEnvVarName, EnvVars env) throws InterruptedException, IOException
Search for the executable filename in executable home directory or on PATH environment variable or in workspace- Returns:
- found executable
- Throws:
InterruptedException
IOException
-
resolve
protected String resolve(String param, TaskListener listener)
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
-
perform
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceBuildStep
- Throws:
InterruptedException
IOException
-
getProjectAction
public Action getProjectAction(AbstractProject<?,?> project)
- Specified by:
getProjectAction
in interfaceBuildStep
-
getProjectActions
public Collection<? extends Action> getProjectActions(AbstractProject<?,?> project)
- Specified by:
getProjectActions
in interfaceBuildStep
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext arg0) throws Exception
- Specified by:
start
in classorg.jenkinsci.plugins.workflow.steps.Step
- Throws:
Exception
-
-