public class WarriorPluginBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
WarriorPluginBuilder.DescriptorImpl
Descriptor for
WarriorPluginBuilder . |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Constructor and Description |
---|
WarriorPluginBuilder(String configType,
String gitConfigUrl,
boolean gitConfigCredentials,
String gitConfigTagValue,
String gitConfigCloneType,
String gitConfigUname,
String gitConfigPwd,
String gitConfigFile,
String sftpConfigIp,
String sftpConfigUname,
String sftpConfigPwd,
String sftpConfigFile,
String pythonPath,
boolean uploadExecLog,
String uploadServerIp,
String uploadServerUname,
String uploadServerPwd,
String uploadServerType,
String uploadServerDir,
List<WarriorRunFileParam> runFiles)
Create Warrior Framework build action
Fields in config.jelly must match the parameter names in the "DataBoundConstructor"
|
Modifier and Type | Method and Description |
---|---|
void |
cloneConfigRepo(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
Clones a GIT repo into configRepo directory in workspace
|
void |
cloneWarriorFramework(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.model.TaskListener listener)
Clones warriorframework into Jenkins workspace
|
String |
getConfigType()
We'll use this from the config.jelly.
|
WarriorPluginBuilder.DescriptorImpl |
getDescriptor() |
String |
getGitConfigCloneType() |
String |
getGitConfigFile() |
String |
getGitConfigPwd() |
String |
getGitConfigTagValue() |
String |
getGitConfigUname() |
String |
getGitConfigUrl() |
String |
getPythonPath() |
List<WarriorRunFileParam> |
getRunFiles() |
String |
getSftpConfigFile() |
String |
getSftpConfigIp() |
String |
getSftpConfigPwd() |
String |
getSftpConfigUname() |
String |
getUploadServerDir() |
String |
getUploadServerIp() |
String |
getUploadServerPwd() |
String |
getUploadServerType() |
String |
getUploadServerUname() |
boolean |
isGitConfigCredentials() |
boolean |
isUploadExecLog() |
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
@DataBoundConstructor public WarriorPluginBuilder(String configType, String gitConfigUrl, boolean gitConfigCredentials, String gitConfigTagValue, String gitConfigCloneType, String gitConfigUname, String gitConfigPwd, String gitConfigFile, String sftpConfigIp, String sftpConfigUname, String sftpConfigPwd, String sftpConfigFile, String pythonPath, boolean uploadExecLog, String uploadServerIp, String uploadServerUname, String uploadServerPwd, String uploadServerType, String uploadServerDir, List<WarriorRunFileParam> runFiles)
configType
- Type of configuration file source(GIT repository or SFTP sever)gitConfigUrl
- URL of GIT repositorygitConfigCredentials
- Option to provide GIT user credentialsgitConfigTagValue
- Value of Branch/Commit ID/TaggitConfigCloneType
- Clone type(Branch/Commit ID/Tag)gitConfigUname
- Username for GITgitConfigPwd
- Password for GITgitConfigFile
- Path of configuration file(GIT)sftpConfigIp
- Name or IP address of SFTP serversftpConfigUname
- Username of SFTP serversftpConfigPwd
- Password of SFTP serversftpConfigFile
- Path of configuration file(SFTP)pythonPath
- Absolute path of python executableuploadExecLog
- Option to upload execution loguploadServerIp
- Name or IP address of log-upload-serveruploadServerUname
- Username of log-upload-serveruploadServerPwd
- Password of log-upload-serveruploadServerType
- Type of log-upload-server(FTP/SFTP/SCP)uploadServerDir
- Destination directory of log-upload-serverrunFiles
- Warrior files to be executedpublic String getConfigType()
public String getGitConfigUrl()
public boolean isGitConfigCredentials()
public String getGitConfigCloneType()
public String getGitConfigTagValue()
public String getGitConfigUname()
public String getGitConfigPwd()
public String getGitConfigFile()
public String getSftpConfigIp()
public String getSftpConfigUname()
public String getSftpConfigPwd()
public String getSftpConfigFile()
public String getPythonPath()
public String getUploadServerIp()
public boolean isUploadExecLog()
public String getUploadServerUname()
public String getUploadServerPwd()
public String getUploadServerType()
public String getUploadServerDir()
public List<WarriorRunFileParam> getRunFiles()
public void perform(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener)
perform
in interface jenkins.tasks.SimpleBuildStep
public WarriorPluginBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
public void cloneConfigRepo(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.model.TaskListener listener) throws IOException, InterruptedException
build
- Buildworkspace
- Jenkins job workspacelistener
- Task listenerInterruptedException
- InterruptedExceptionIOException
- IOExceptionpublic void cloneWarriorFramework(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.model.TaskListener listener) throws IOException, InterruptedException, ParserConfigurationException, SAXException
build
- Buildworkspace
- Jenkins job workspacelistener
- Task listenerInterruptedException
- InterruptedExceptionIOException
- IOExceptionSAXException
- SAXExceptionParserConfigurationException
- ParserConfigurationExceptionCopyright © 2016–2017. All rights reserved.