Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/java/org/jenkinsci/plugins/lsf/BatchBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class BatchBuilder extends Builder {
// the files that need to be sent before executing the job
private String filesToSend = "";
// how often the status of the job should be checked
private int checkFrequencyMinutes = 1;
private float checkFrequencyMinutes = 1;
// names of the files that have been uploaded (separated by commas)
private String uploadedFiles = getUploadedFiles();
// configuration for checking if email should be sent
Expand All @@ -99,7 +99,7 @@ public class BatchBuilder extends Builder {
@DataBoundConstructor
public BatchBuilder(String job, String filesToDownload,
String downloadDestination, String filesToSend,
int checkFrequencyMinutes, boolean sendEmail) {
float checkFrequencyMinutes, boolean sendEmail) {
this.job = job;
this.filesToDownload = filesToDownload;
this.downloadDestination = downloadDestination;
Expand All @@ -117,7 +117,7 @@ public String getFilesToDownload() {
return filesToDownload;
}

public int getCheckFrequencyMinutes() {
public float getCheckFrequencyMinutes() {
return checkFrequencyMinutes;
}

Expand Down Expand Up @@ -186,7 +186,7 @@ public boolean perform(AbstractBuild<?, ?> build,
// loops for checking the job's status and progress until
// it reaches an ending state
while (!batchSystem.isEndStatus(jobStatus)) {
Thread.sleep(checkFrequencyMinutes * 60000);
Thread.sleep((long) (checkFrequencyMinutes * 60000));
jobStatus = batchSystem.getJobStatus(jobId);
listener.getLogger().println("JOB STATUS: " + jobStatus);
batchSystem.processStatus(jobStatus);
Expand Down