public abstract class DefaultBuildStep
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
DefaultBuildStep(boolean useCustomRegistry,
String host,
String port,
String tokenCredentialId,
boolean secured)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getHost() |
hudson.util.Secret |
getPassword() |
String |
getPort() |
String |
getTokenCredentialId() |
String |
getUsername() |
boolean |
isSecured() |
boolean |
isUseCustomRegistry() |
abstract void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
protected void |
updateCredentails(hudson.model.Run<?,?> run) |
all, getDescriptor, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
public DefaultBuildStep(boolean useCustomRegistry, String host, String port, String tokenCredentialId, boolean secured)
useCustomRegistry
- if we are overriding default Registryhost
- host for custom Registryport
- port for custom RegistrytokenCredentialId
- credentials token idsecured
- if https should be for custom registrypublic boolean isUseCustomRegistry()
public String getHost()
public String getPort()
public String getUsername()
public hudson.util.Secret getPassword()
public String getTokenCredentialId()
public boolean isSecured()
protected void updateCredentails(hudson.model.Run<?,?> run)
public abstract void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
Copyright © 2016–2022 CA Technologies. All rights reserved.