Class GetImageVulnsNotifier
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Publisher
-
- hudson.tasks.Notifier
-
- com.qualys.plugins.containerSecurity.GetImageVulnsNotifier
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,SimpleBuildStep
@Extension public class GetImageVulnsNotifier extends Notifier implements SimpleBuildStep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GetImageVulnsNotifier.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 GetImageVulnsNotifier()
GetImageVulnsNotifier(boolean useGlobalConfig, boolean useLocalConfig, String apiServer, String apiUser, String apiPass, String credentialsId, String pollingInterval, String vulnsTimeout, boolean isFailOnSevereVulns, int severity1Limit, int severity2Limit, int severity3Limit, int severity4Limit, int severity5Limit, boolean isSev1Vulns, boolean isSev2Vulns, boolean isSev3Vulns, boolean isSev4Vulns, boolean isSev5Vulns, String proxyServer, int proxyPort, String proxyUsername, String proxyPassword, boolean useProxy, String proxyCredentialsId, boolean isFailOnQidFound, String qidList, boolean isFailOnCVEs, String cveList, boolean isFailOnSoftware, String softwareList, boolean isPotentialVulnsToBeChecked, String imageIds, String webhookUrl, boolean isExcludeConditions, String excludeBy, String excludeList, boolean failByCvss, String cvssVersion, String cvssThreshold, String platform, String dockerUrl, String dockerCert)
-
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
-
GetImageVulnsNotifier
@DataBoundConstructor public GetImageVulnsNotifier(boolean useGlobalConfig, boolean useLocalConfig, String apiServer, String apiUser, String apiPass, String credentialsId, String pollingInterval, String vulnsTimeout, boolean isFailOnSevereVulns, int severity1Limit, int severity2Limit, int severity3Limit, int severity4Limit, int severity5Limit, boolean isSev1Vulns, boolean isSev2Vulns, boolean isSev3Vulns, boolean isSev4Vulns, boolean isSev5Vulns, String proxyServer, int proxyPort, String proxyUsername, String proxyPassword, boolean useProxy, String proxyCredentialsId, boolean isFailOnQidFound, String qidList, boolean isFailOnCVEs, String cveList, boolean isFailOnSoftware, String softwareList, boolean isPotentialVulnsToBeChecked, String imageIds, String webhookUrl, boolean isExcludeConditions, String excludeBy, String excludeList, boolean failByCvss, String cvssVersion, String cvssThreshold, String platform, String dockerUrl, String dockerCert)
-
GetImageVulnsNotifier
public GetImageVulnsNotifier()
-
-
Method Detail
-
getPlatform
public String getPlatform()
-
setPlatform
@DataBoundSetter public void setPlatform(String platform)
-
getApiUser
public String getApiUser()
-
setApiUser
@DataBoundSetter public void setApiUser(String apiUser)
-
getApiPass
public Secret getApiPass()
-
setApiPass
@DataBoundSetter public void setApiPass(String apiPass)
-
getProxyUsername
public String getProxyUsername()
-
setProxyUsername
@DataBoundSetter public void setProxyUsername(String proxyUsername)
-
getProxyPassword
public Secret getProxyPassword()
-
setProxyPassword
@DataBoundSetter public void setProxyPassword(String proxyPassword)
-
getFailByCvss
public boolean getFailByCvss()
-
setFailByCvss
@DataBoundSetter public void setFailByCvss(boolean failByCvss)
-
getCvssVersion
public String getCvssVersion()
-
setCvssVersion
@DataBoundSetter public void setCvssVersion(String cvssVersion)
-
getCvssThreshold
public String getCvssThreshold()
-
setCvssThreshold
@DataBoundSetter public void setCvssThreshold(String cvssThreshold)
-
setSoftwareList
@DataBoundSetter public void setSoftwareList(String list)
-
getIsFailOnSoftware
public boolean getIsFailOnSoftware()
-
setIsFailOnSoftware
@DataBoundSetter public void setIsFailOnSoftware(boolean software)
-
getSoftwareList
public String getSoftwareList()
-
getIsExcludeConditions
public boolean getIsExcludeConditions()
-
setIsExcludeConditions
@DataBoundSetter public void setIsExcludeConditions(boolean isExcludeConditions)
-
getExcludeBy
public String getExcludeBy()
-
setExcludeBy
@DataBoundSetter public void setExcludeBy(String excludeBy)
-
getExcludeList
public String getExcludeList()
-
setExcludeList
@DataBoundSetter public void setExcludeList(String excludeList)
-
getWebhookUrl
public String getWebhookUrl()
-
setWebhookUrl
@DataBoundSetter public void setWebhookUrl(String webhookUrl)
-
setPollingInterval
@DataBoundSetter public void setPollingInterval(String pollingInterval)
-
setVulnsTimeout
@DataBoundSetter public void setVulnsTimeout(String vulnsTimeout)
-
setIsFailOnSevereVulns
@DataBoundSetter public void setIsFailOnSevereVulns(boolean isFailOnSevereVulns)
-
getIsFailOnQidFound
public boolean getIsFailOnQidFound()
-
setIsFailOnQidFound
@DataBoundSetter public void setIsFailOnQidFound(boolean isFailOnQidFound)
-
getQidList
public String getQidList()
-
setQidList
@DataBoundSetter public void setQidList(String qidList)
-
getIsFailOnCVEs
public boolean getIsFailOnCVEs()
-
setIsFailOnCVEs
@DataBoundSetter public void setIsFailOnCVEs(boolean CVEs)
-
getCveList
public String getCveList()
-
setCveList
@DataBoundSetter public void setCveList(String list)
-
getIsPotentialVulnsToBeChecked
public boolean getIsPotentialVulnsToBeChecked()
-
setIsPotentialVulnsToBeChecked
@DataBoundSetter public void setIsPotentialVulnsToBeChecked(boolean isPotentialVulnsToBeChecked)
-
setSeverity1Limit
@DataBoundSetter public void setSeverity1Limit(int severity1Limit)
-
getSeverity1Limit
public int getSeverity1Limit()
-
setSeverity2Limit
@DataBoundSetter public void setSeverity2Limit(int severity2Limit)
-
getSeverity2Limit
public int getSeverity2Limit()
-
setSeverity3Limit
@DataBoundSetter public void setSeverity3Limit(int severity3Limit)
-
getSeverity3Limit
public int getSeverity3Limit()
-
setSeverity4Limit
@DataBoundSetter public void setSeverity4Limit(int severity4Limit)
-
getSeverity4Limit
public int getSeverity4Limit()
-
setSeverity5Limit
@DataBoundSetter public void setSeverity5Limit(int severity5Limit)
-
getSeverity5Limit
public int getSeverity5Limit()
-
setIsSev1Vulns
@DataBoundSetter public void setIsSev1Vulns(boolean isSev1Vulns)
-
getIsSev1Vulns
public boolean getIsSev1Vulns()
-
setIsSev2Vulns
@DataBoundSetter public void setIsSev2Vulns(boolean isSev2Vulns)
-
getIsSev2Vulns
public boolean getIsSev2Vulns()
-
setIsSev3Vulns
@DataBoundSetter public void setIsSev3Vulns(boolean isSev3Vulns)
-
getIsSev3Vulns
public boolean getIsSev3Vulns()
-
setIsSev4Vulns
@DataBoundSetter public void setIsSev4Vulns(boolean isSev4Vulns)
-
getIsSev4Vulns
public boolean getIsSev4Vulns()
-
setIsSev5Vulns
@DataBoundSetter public void setIsSev5Vulns(boolean isSev5Vulns)
-
getIsSev5Vulns
public boolean getIsSev5Vulns()
-
getIsFailOnSevereVulns
public boolean getIsFailOnSevereVulns()
-
getPollingInterval
public String getPollingInterval()
-
getVulnsTimeout
public String getVulnsTimeout()
-
getApiServer
public String getApiServer()
-
setApiServer
@DataBoundSetter public void setApiServer(String apiServer)
-
getCredentialsId
public String getCredentialsId()
-
setCredentialsId
@DataBoundSetter public void setCredentialsId(String credentialsId)
-
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)
-
getUseProxy
public boolean getUseProxy()
-
setUseProxy
@DataBoundSetter public void setUseProxy(boolean useProxy)
-
setImageIds
@DataBoundSetter public void setImageIds(String images)
-
getImageIds
public String getImageIds()
-
setDockerUrl
@DataBoundSetter public void setDockerUrl(String dockerUrl)
-
getDockerUrl
public String getDockerUrl()
-
setDockerCert
@DataBoundSetter public void setDockerCert(String dockerCert)
-
getDockerCert
public String getDockerCert()
-
getRequiredMonitorService
public BuildStepMonitor getRequiredMonitorService()
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
setUseLocalConfig
@DataBoundSetter public void setUseLocalConfig(boolean useLocalConfig)
-
setUseGlobalConfig
@DataBoundSetter public void setUseGlobalConfig(boolean useGlobalConfig)
-
getUseLocalConfig
public boolean getUseLocalConfig()
-
getUseGlobalConfig
public boolean getUseGlobalConfig()
-
getPluginVersion
public String getPluginVersion() throws IOException
- Throws:
IOException
-
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
-
setConfigOptions
public void setConfigOptions(TaskListener listener, Run<?,?> run) throws AbortException
- Throws:
AbortException
-
getCriteriaAsJsonObject
public qshaded.com.google.gson.JsonObject getCriteriaAsJsonObject()
-
configToJson
public qshaded.com.google.gson.JsonObject configToJson()
-
-