Class SauceCredentials
- java.lang.Object
-
- com.cloudbees.plugins.credentials.BaseCredentials
-
- com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
-
- hudson.plugins.sauce_ondemand.credentials.SauceCredentials
-
- All Implemented Interfaces:
com.cloudbees.plugins.credentials.common.IdCredentials
,com.cloudbees.plugins.credentials.common.PasswordCredentials
,com.cloudbees.plugins.credentials.common.StandardCredentials
,com.cloudbees.plugins.credentials.common.StandardUsernameCredentials
,com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
,com.cloudbees.plugins.credentials.common.UsernameCredentials
,com.cloudbees.plugins.credentials.common.UsernamePasswordCredentials
,com.cloudbees.plugins.credentials.Credentials
,ExtensionPoint
,Describable<com.cloudbees.plugins.credentials.Credentials>
,Serializable
public class SauceCredentials extends com.cloudbees.plugins.credentials.impl.BaseStandardCredentials implements com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SauceCredentials.DescriptorImpl
static class
SauceCredentials.ShortLivedConfig
-
Nested classes/interfaces inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
com.cloudbees.plugins.credentials.impl.BaseStandardCredentials.BaseStandardCredentialsDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface com.cloudbees.plugins.credentials.common.IdCredentials
com.cloudbees.plugins.credentials.common.IdCredentials.Helpers
-
-
Field Summary
Fields Modifier and Type Field Description protected Secret
apiKey
The Password/apikeystatic com.cloudbees.plugins.credentials.domains.DomainRequirement
DOMAIN_REQUIREMENT
protected String
restEndpoint
The data center endpointprotected SauceCredentials.ShortLivedConfig
shortLivedConfig
protected String
username
The username.
-
Method Summary
-
Methods inherited from class com.cloudbees.plugins.credentials.impl.BaseStandardCredentials
equals, getDescription, getId, hashCode
-
Methods inherited from class com.cloudbees.plugins.credentials.BaseCredentials
getDescriptor, getScope
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.cloudbees.plugins.credentials.Credentials
forRun, getDescriptor, getScope
-
-
-
-
Field Detail
-
username
protected final String username
The username.
-
apiKey
protected final Secret apiKey
The Password/apikey
-
restEndpoint
protected final String restEndpoint
The data center endpoint
-
shortLivedConfig
protected SauceCredentials.ShortLivedConfig shortLivedConfig
-
DOMAIN_REQUIREMENT
public static final com.cloudbees.plugins.credentials.domains.DomainRequirement DOMAIN_REQUIREMENT
-
-
Method Detail
-
getShortLivedConfig
public SauceCredentials.ShortLivedConfig getShortLivedConfig()
-
setShortLivedConfig
@DataBoundSetter public void setShortLivedConfig(SauceCredentials.ShortLivedConfig shortLivedConfig)
-
getCredentials
public static SauceCredentials getCredentials(AbstractProject project)
-
getCredentials
public static SauceCredentials getCredentials(AbstractBuild build)
-
getPassword
@NonNull public Secret getPassword()
- Specified by:
getPassword
in interfacecom.cloudbees.plugins.credentials.common.PasswordCredentials
-
getApiKey
@NonNull public Secret getApiKey()
-
getRestEndpoint
@NonNull public String getRestEndpoint()
-
getRestEndpointName
@NonNull public String getRestEndpointName()
-
getUsername
@NonNull public String getUsername()
- Specified by:
getUsername
in interfacecom.cloudbees.plugins.credentials.common.UsernameCredentials
-
getSauceCredentials
public static SauceCredentials getSauceCredentials(AbstractBuild build, SauceOnDemandBuildWrapper wrapper)
-
getSauceREST
public JenkinsSauceREST getSauceREST(ProxyConfiguration proxy)
-
migrateToCredentials
public static String migrateToCredentials(String username, String accessKey, String restEndpoint, String migratedFrom) throws InterruptedException, IOException
- Throws:
InterruptedException
IOException
-
all
public static List<SauceCredentials> all(ItemGroup context)
-
all
public static List<SauceCredentials> all(Item context)
-
getCredentialsById
public static SauceCredentials getCredentialsById(Item context, String id)
-
-