Package com.fortify.plugin.jenkins.steps
Class FortifyUpload
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<org.jenkinsci.plugins.workflow.steps.Step>
-
- org.jenkinsci.plugins.workflow.steps.Step
-
- com.fortify.plugin.jenkins.steps.FortifyStep
-
- com.fortify.plugin.jenkins.steps.FortifyUpload
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<org.jenkinsci.plugins.workflow.steps.Step>
,BuildStep
,Serializable
,SimpleBuildStep
public class FortifyUpload extends FortifyStep implements Serializable
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FortifyUpload.DescriptorImpl
-
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 com.fortify.plugin.jenkins.steps.FortifyStep
lastBuild, VERSION
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description FortifyUpload(boolean isPipeline, String appName, String appVersion)
FortifyUpload(String appName, String appVersion)
-
Method Summary
-
Methods inherited from class com.fortify.plugin.jenkins.steps.FortifyStep
addAllArguments, addAllArguments, addAllArgumentsWithNoMasks, getExecutable, getProjectAction, getProjectActions, perform, resolve, setLastBuild
-
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, requiresWorkspace
-
-
-
-
Method Detail
-
getAppName
public String getAppName()
-
getAppVersion
public String getAppVersion()
-
setResultsFile
@DataBoundSetter public void setResultsFile(String resultsFile)
-
getResultsFile
public String getResultsFile()
-
setFilterSet
@DataBoundSetter public void setFilterSet(String filterSet)
-
getFilterSet
public String getFilterSet()
-
setFailureCriteria
@DataBoundSetter public void setFailureCriteria(String failureCriteria)
-
getFailureCriteria
public String getFailureCriteria()
-
getTimeout
public String getTimeout()
-
setTimeout
@DataBoundSetter public void setTimeout(String timeout)
-
setPollingInterval
@DataBoundSetter public void setPollingInterval(String pollingInterval)
-
getPollingInterval
public String getPollingInterval()
-
isPipeline
public boolean isPipeline()
-
getResolvedFpr
public String getResolvedFpr(TaskListener listener)
-
getResolvedAppName
public String getResolvedAppName(TaskListener listener)
-
getResolvedAppVersion
public String getResolvedAppVersion(TaskListener listener)
-
getResolvedFilterSet
public String getResolvedFilterSet(TaskListener listener)
-
getResolvedFailureCriteria
public String getResolvedFailureCriteria(TaskListener listener)
-
getResolvedTimeout
public Integer getResolvedTimeout(TaskListener listener)
-
getResolvedPollingInterval
public Integer getResolvedPollingInterval(TaskListener listener)
-
prebuild
public boolean prebuild(AbstractBuild<?,?> build, BuildListener listener)
- Specified by:
prebuild
in interfaceBuildStep
- Overrides:
prebuild
in classFortifyStep
-
start
public org.jenkinsci.plugins.workflow.steps.StepExecution start(org.jenkinsci.plugins.workflow.steps.StepContext context) throws Exception
- Overrides:
start
in classFortifyStep
- Throws:
Exception
-
perform
public void perform(Run<?,?> run, FilePath workspace, EnvVars vars, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
performAndReturnIssueCount
public Integer performAndReturnIssueCount(Run<?,?> run, FilePath workspace, EnvVars vars, Launcher launcher, TaskListener listener) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
getGroupingValues
public List<GroupingValueBean> getGroupingValues(Long versionId, String folderId, String searchCondition, String groupingName, TaskListener taskListener)
-
getFolders
public List<IssueFolderBean> getFolders(TaskListener taskListener)
-
getGroupingProfiles
public List<GroupingProfile> getGroupingProfiles(TaskListener taskListener)
-
getIssuesByFolder
public List<IssueBean> getIssuesByFolder(String folderId, int startPage, int pageSize, TableAction.SortOrder sortOrder, boolean downNotUp, boolean showingAllNotNew, String selectedGrouping, TaskListener taskListener)
Downloads issues from one of folders on Fortify SSC server- Parameters:
folderId
- to get available folders usegetFolders(TaskListener)
, to get all issues use the folder with 'All' namestartPage
- to get refined list of issues, starts with 0, used with pageSize. For startPage=3 and pageSize=10 you will get 10 issues from 30 to 40.pageSize
- to get only this number of issues. Use '-1' to get all issues available.sortOrder
- seeTableAction.SortOrder
to see the list of available sort ordersdownNotUp
- to reverse sort order if sortOrder is specified- Returns:
- list of issues from Fortify SSC server
-
getAccessToProject
public boolean getAccessToProject()
-
isSettingUpdated
public boolean isSettingUpdated()
-
getIssuePageSize
public int getIssuePageSize()
-
setIssuePageSize
public void setIssuePageSize(int pageSize)
-
-