public class WinRMClientBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
WinRMClientBuilder.DescriptorImpl |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
WinRMClientBuilder(String hostName,
String credentialsId,
List<WinRMOperation> winRMOperations) |
Modifier and Type | Method and Description |
---|---|
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials(hudson.model.Item project) |
String |
getCredentialsId() |
WinRMClientBuilder.DescriptorImpl |
getDescriptor() |
String |
getHostName() |
String |
getPassword(hudson.EnvVars environment,
hudson.model.Item project) |
String |
getUsername(hudson.EnvVars environment,
hudson.model.Item project) |
List<WinRMOperation> |
getWinRMOperations() |
static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
lookupSystemCredentials(String credentialsId,
hudson.model.Item project) |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public WinRMClientBuilder(String hostName, String credentialsId, List<WinRMOperation> winRMOperations)
public String getHostName()
public List<WinRMOperation> getWinRMOperations()
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials(hudson.model.Item project)
public static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials lookupSystemCredentials(String credentialsId, hudson.model.Item project)
public String getUsername(hudson.EnvVars environment, hudson.model.Item project)
public String getPassword(hudson.EnvVars environment, hudson.model.Item project)
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.SimpleBuildStep
IOException
InterruptedException
public WinRMClientBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
Copyright © 2016–2017. All rights reserved.