Class CoverityConnectInstance
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<CoverityConnectInstance>
-
- com.synopsys.integration.jenkins.coverity.extensions.global.CoverityConnectInstance
-
- All Implemented Interfaces:
hudson.model.Describable<CoverityConnectInstance>
public class CoverityConnectInstance extends hudson.model.AbstractDescribableImpl<CoverityConnectInstance>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CoverityConnectInstance.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description CoverityConnectInstance(java.lang.String url, java.lang.String defaultCredentialsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getAuthenticationKeyFileContents(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId)
com.synopsys.integration.coverity.config.CoverityServerConfig
getCoverityServerConfig(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialsId)
com.synopsys.integration.rest.credentials.Credentials
getCoverityServerCredentials(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId)
java.util.Optional<java.net.URL>
getCoverityURL()
java.lang.String
getDefaultCredentialsId()
CoverityConnectInstance.DescriptorImpl
getDescriptor()
java.util.Optional<java.lang.String>
getPassphrase(java.lang.String credentialId)
java.lang.String
getUrl()
java.util.Optional<java.lang.String>
getUsername(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId)
boolean
isEmpty()
void
setCredentialId(java.lang.String credentialId)
-
-
-
Method Detail
-
setCredentialId
@DataBoundSetter public void setCredentialId(java.lang.String credentialId)
-
getDefaultCredentialsId
public java.lang.String getDefaultCredentialsId()
-
getUrl
public java.lang.String getUrl()
-
getCoverityURL
public java.util.Optional<java.net.URL> getCoverityURL()
-
getCoverityServerConfig
public com.synopsys.integration.coverity.config.CoverityServerConfig getCoverityServerConfig(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialsId) throws java.lang.IllegalArgumentException, java.lang.IllegalStateException
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalStateException
-
getCoverityServerCredentials
public com.synopsys.integration.rest.credentials.Credentials getCoverityServerCredentials(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId)
-
getUsername
public java.util.Optional<java.lang.String> getUsername(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId)
-
getPassphrase
public java.util.Optional<java.lang.String> getPassphrase(java.lang.String credentialId)
-
getAuthenticationKeyFileContents
public java.util.Optional<java.lang.String> getAuthenticationKeyFileContents(com.synopsys.integration.log.IntLogger logger, java.lang.String credentialId) throws CoverityJenkinsAbortException
- Throws:
CoverityJenkinsAbortException
-
isEmpty
public boolean isEmpty()
-
getDescriptor
public CoverityConnectInstance.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interfacehudson.model.Describable<CoverityConnectInstance>
- Overrides:
getDescriptor
in classhudson.model.AbstractDescribableImpl<CoverityConnectInstance>
-
-