Package com.qualys.plugins.pc
Class PCScanNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.qualys.plugins.pc.PCScanNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
public class PCScanNotifier extends Notifier implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PCScanNotifier.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
-
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 interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description PCScanNotifier()
PCScanNotifier(String apiServer, String credsId, boolean useProxy, boolean createAuthRecord, String proxyServer, int proxyPort, String proxyCredentialsId, String unixAndWindowsCredentialsId, String scanName, boolean useHost, String hostIp, boolean useEc2, String ec2Id, String ec2ConnDetails, boolean runConnector, String optionProfile, String scannerName, String selectedPolicies, boolean stateFail, boolean stateError, boolean stateExceptions, boolean criticalitySerious, boolean criticalityUrgent, boolean criticalityCritical, boolean criticalityMedium, boolean criticalityMinimal, boolean failByAuth, String excludedCids, String pollingInterval, String vulnsTimeout, String unixAndWindowsCredentials, boolean failByStateAndCriticality, boolean excludedCriteria, String platform)
-
Method Summary
-
Methods inherited from class hudson.tasks.Notifier
getDescriptor
-
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
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, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
PCScanNotifier
public PCScanNotifier()
-
PCScanNotifier
@DataBoundConstructor public PCScanNotifier(String apiServer, String credsId, boolean useProxy, boolean createAuthRecord, String proxyServer, int proxyPort, String proxyCredentialsId, String unixAndWindowsCredentialsId, String scanName, boolean useHost, String hostIp, boolean useEc2, String ec2Id, String ec2ConnDetails, boolean runConnector, String optionProfile, String scannerName, String selectedPolicies, boolean stateFail, boolean stateError, boolean stateExceptions, boolean criticalitySerious, boolean criticalityUrgent, boolean criticalityCritical, boolean criticalityMedium, boolean criticalityMinimal, boolean failByAuth, String excludedCids, String pollingInterval, String vulnsTimeout, String unixAndWindowsCredentials, boolean failByStateAndCriticality, boolean excludedCriteria, String platform)
-
-
Method Detail
-
getCredsId
public String getCredsId()
-
setCredsId
@DataBoundSetter public void setCredsId(String cred)
-
getPollingInterval
public String getPollingInterval()
-
setPollingInterval
@DataBoundSetter public void setPollingInterval(String pollingInterval)
-
getVulnsTimeout
public String getVulnsTimeout()
-
setVulnsTimeout
@DataBoundSetter public void setVulnsTimeout(String vulnsTimeout)
-
getApiServer
public String getApiServer()
-
setApiServer
@DataBoundSetter public void setApiServer(String apiServer)
-
getHostIp
public String getHostIp()
-
setHostIp
@DataBoundSetter public void setHostIp(String hostIp)
-
getEc2Id
public String getEc2Id()
-
setEc2Id
@DataBoundSetter public void setEc2Id(String ec2Id)
-
getEc2ConnDetails
public String getEc2ConnDetails()
-
setEc2ConnDetails
@DataBoundSetter public void setEc2ConnDetails(String ec2ConnDetails)
-
getEc2ConnName
public String getEc2ConnName()
-
setEc2ConnName
@DataBoundSetter public void setEc2ConnName(String ec2ConnName)
-
getEc2ConnAccountId
public String getEc2ConnAccountId()
-
setEc2ConnAccountId
@DataBoundSetter public void setEc2ConnAccountId(String ec2ConnAccountId)
-
getEc2ConnId
public String getEc2ConnId()
-
setEc2ConnId
@DataBoundSetter public void setEc2ConnId(String ec2ConnId)
-
getRunConnector
public boolean getRunConnector()
-
setRunConnector
@DataBoundSetter public void setRunConnector(boolean runConnector)
-
getScannerName
public String getScannerName()
-
setScannerName
@DataBoundSetter public void setScannerName(String scannerName)
-
getScanName
public String getScanName()
-
setScanName
@DataBoundSetter public void setScanName(String scanName)
-
getOptionProfile
public String getOptionProfile()
-
setOptionProfile
@DataBoundSetter public void setOptionProfile(String optionProfile)
-
getProxyServer
public String getProxyServer()
-
setProxyServer
@DataBoundSetter public void setProxyServer(String proxyServer)
-
getProxyPort
public int getProxyPort()
-
setProxyPort
@DataBoundSetter public void setProxyPort(int proxyPort)
-
getProxyCredentialsId
public String getProxyCredentialsId()
-
setProxyCredentialsId
@DataBoundSetter public void setProxyCredentialsId(String proxyCredentialsId)
-
getUnixAndWindowsCredentialsId
public String getUnixAndWindowsCredentialsId()
-
setUnixAndWindowsCredentialsId
@DataBoundSetter public void setUnixAndWindowsCredentialsId(String unixAndWindowsCredentialsId)
-
getUseProxy
public boolean getUseProxy()
-
setUseProxy
@DataBoundSetter public void setUseProxy(boolean useProxy)
-
getUseHost
public boolean getUseHost()
-
setUseHost
@DataBoundSetter public void setUseHost(boolean useHost)
-
getUseEc2
public boolean getUseEc2()
-
setUseEc2
@DataBoundSetter public void setUseEc2(boolean useEc2)
-
getStateFail
public boolean getStateFail()
-
setStateFail
@DataBoundSetter public void setStateFail(boolean stateFail)
-
getStateError
public boolean getStateError()
-
setStateError
@DataBoundSetter public void setStateError(boolean stateError)
-
getStateExceptions
public boolean getStateExceptions()
-
setStateExceptions
@DataBoundSetter public void setStateExceptions(boolean stateExceptions)
-
getCriticalitySerious
public boolean getCriticalitySerious()
-
setCriticalitySerious
@DataBoundSetter public void setCriticalitySerious(boolean criticalitySerious)
-
getCriticalityUrgent
public boolean getCriticalityUrgent()
-
setCriticalityUrgent
@DataBoundSetter public void setCriticalityUrgent(boolean criticalityUrgent)
-
getCriticalityCritical
public boolean getCriticalityCritical()
-
setCriticalityCritical
@DataBoundSetter public void setCriticalityCritical(boolean criticalityCritical)
-
getCriticalityMedium
public boolean getCriticalityMedium()
-
setCriticalityMedium
@DataBoundSetter public void setCriticalityMedium(boolean criticalityMedium)
-
getCriticalityMinimal
public boolean getCriticalityMinimal()
-
setCriticalityMinimal
@DataBoundSetter public void setCriticalityMinimal(boolean criticalityMinimal)
-
getFailByAuth
public boolean getFailByAuth()
-
setFailByAuth
@DataBoundSetter public void setFailByAuth(boolean failByAuth)
-
getExcludedCids
public String getExcludedCids()
-
setExcludedCids
@DataBoundSetter public void setExcludedCids(String excludedCids)
-
getSelectedPolicies
public String getSelectedPolicies()
-
setSelectedPolicies
@DataBoundSetter public void setSelectedPolicies(String selectedPolicies)
-
getFailByStateAndCriticality
public boolean getFailByStateAndCriticality()
-
setFailByStateAndCriticality
@DataBoundSetter public void setFailByStateAndCriticality(boolean failByStateAndCriticality)
-
getCreateAuthRecord
public boolean getCreateAuthRecord()
-
setCreateAuthRecord
@DataBoundSetter public void setCreateAuthRecord(boolean createAuthRecord)
-
getUnixAndWindowsCredentials
public String getUnixAndWindowsCredentials()
-
setUnixAndWindowsCredentials
@DataBoundSetter public void setUnixAndWindowsCredentials(String unixAndWindowsCredentials)
-
getExcludedCriteria
public boolean getExcludedCriteria()
-
getPlatform
public String getPlatform()
-
setPlatform
@DataBoundSetter public void setPlatform(String platform)
-
setExcludedCriteria
@DataBoundSetter public void setExcludedCriteria(boolean excludedCriteria)
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
getPluginVersion
public String getPluginVersion()
-
perform
public void perform(@Nonnull Run<?,?> run, @Nonnull FilePath filePath, @Nonnull Launcher launcher, @Nonnull TaskListener taskListener) throws InterruptedException, IOException
- Specified by:
perform
in interfaceSimpleBuildStep
- Throws:
InterruptedException
IOException
-
launchHostScan
public void launchHostScan(Run<?,?> run, TaskListener listener, Item project) throws Exception
- Throws:
Exception
-
runCtorDecision
public boolean runCtorDecision(String ec2ConnState, TaskListener listener) throws Exception
- Throws:
Exception
-
-