public class BatchBuilder
extends hudson.tasks.Builder
Modifier and Type | Class and Description |
---|---|
static class |
BatchBuilder.DescriptorImpl |
Constructor and Description |
---|
BatchBuilder(String job,
String filesToDownload,
String downloadDestination,
String filesToSend,
int checkFrequencyMinutes,
boolean sendEmail) |
Modifier and Type | Method and Description |
---|---|
protected void |
cleanUpFiles(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String jobFileName,
String jobId)
cleans up the temporary files in the master and the slave
|
protected void |
downloadFiles(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
downloads the selected files from slave to master
|
int |
getCheckFrequencyMinutes() |
BatchBuilder.DescriptorImpl |
getDescriptor() |
String |
getDownloadDestination() |
String |
getFilesToDownload() |
String |
getFilesToSend() |
String |
getJob() |
protected String |
getQueueType(hudson.model.AbstractBuild<?,?> build) |
boolean |
getSendEmail() |
protected String |
getSlaveWorkingDirectory(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
String |
getUploadedFiles() |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
This is where the interaction between Jenkins and LSF happens.
|
protected void |
printJobOutput(hudson.model.BuildListener listener,
String output)
prints the given output to console
|
protected String |
sendFiles(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
sends the selected files to the slave machine
|
protected void |
sendJobToSlave(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String sendFilesShellCommands,
String jobFileName)
sends the job script file to slave
|
protected void |
setPermissionOnJobFile(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener,
String jobFileName)
sets the correct permission on the job file
|
public String getJob()
public String getFilesToDownload()
public int getCheckFrequencyMinutes()
public String getFilesToSend()
public String getDownloadDestination()
public boolean getSendEmail()
public boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
build
- launcher
- listener
- InterruptedException
IOException
protected void printJobOutput(hudson.model.BuildListener listener, String output)
listener
- output
- protected String getQueueType(hudson.model.AbstractBuild<?,?> build)
build
- protected String getSlaveWorkingDirectory(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
build
- launcher
- listener
- InterruptedException
IOException
protected String sendFiles(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
build
- launcher
- listener
- IOException
InterruptedException
protected void downloadFiles(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
build
- launcher
- listener
- InterruptedException
IOException
protected void sendJobToSlave(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, String sendFilesShellCommands, String jobFileName) throws IOException, InterruptedException
build
- launcher
- listener
- sendFilesShellCommands
- jobFileName
- IOException
InterruptedException
protected void setPermissionOnJobFile(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, String jobFileName) throws InterruptedException
build
- launcher
- listener
- jobFileName
- InterruptedException
protected void cleanUpFiles(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener, String jobFileName, String jobId) throws InterruptedException
build
- launcher
- listener
- jobFileName
- jobId
- InterruptedException
public BatchBuilder.DescriptorImpl getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Builder>
getDescriptor
in class hudson.tasks.Builder
public String getUploadedFiles()
Copyright © 2004-2015. All Rights Reserved.