public class NexusArtifactUploader extends hudson.tasks.Builder implements jenkins.tasks.SimpleBuildStep, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
NexusArtifactUploader.DescriptorImpl<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> |
static class |
NexusArtifactUploader.LinkAction |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
NexusArtifactUploader(String protocol,
String nexusUrl,
String nexusUser,
hudson.util.Secret nexusPassword,
String groupId,
String artifactId,
String version,
String packaging,
String repository,
String file,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArtifactId() |
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials() |
String |
getCredentialsId() |
NexusArtifactUploader.DescriptorImpl |
getDescriptor() |
String |
getFile() |
String |
getGroupId() |
hudson.util.Secret |
getNexusPassword() |
String |
getNexusUrl() |
String |
getNexusUser() |
String |
getPackaging() |
String |
getPassword(hudson.EnvVars environment) |
String |
getProtocol() |
String |
getRepository() |
String |
getUsername(hudson.EnvVars environment) |
String |
getVersion() |
static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
lookupSystemCredentials(String credentialsId) |
void |
perform(hudson.model.Run build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic String getProtocol()
public String getNexusUrl()
public String getNexusUser()
public hudson.util.Secret getNexusPassword()
public String getGroupId()
public String getArtifactId()
public String getVersion()
public String getPackaging()
public String getRepository()
public String getFile()
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials()
public static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials lookupSystemCredentials(String credentialsId)
public String getUsername(hudson.EnvVars environment)
public String getPassword(hudson.EnvVars environment)
public void perform(hudson.model.Run build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws IOException,
InterruptedException
perform in interface jenkins.tasks.SimpleBuildStepIOExceptionInterruptedExceptionpublic NexusArtifactUploader.DescriptorImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Builder>getDescriptor in class hudson.tasks.BuilderCopyright © 2016. All rights reserved.