@@ -76,7 +76,7 @@ public class BatchBuilder extends Builder {
76
76
// the files that need to be sent before executing the job
77
77
private String filesToSend = "" ;
78
78
// how often the status of the job should be checked
79
- private int checkFrequencyMinutes = 1 ;
79
+ private float checkFrequencyMinutes = 1 ;
80
80
// names of the files that have been uploaded (separated by commas)
81
81
private String uploadedFiles = getUploadedFiles ();
82
82
// configuration for checking if email should be sent
@@ -99,7 +99,7 @@ public class BatchBuilder extends Builder {
99
99
@ DataBoundConstructor
100
100
public BatchBuilder (String job , String filesToDownload ,
101
101
String downloadDestination , String filesToSend ,
102
- int checkFrequencyMinutes , boolean sendEmail ) {
102
+ float checkFrequencyMinutes , boolean sendEmail ) {
103
103
this .job = job ;
104
104
this .filesToDownload = filesToDownload ;
105
105
this .downloadDestination = downloadDestination ;
@@ -117,7 +117,7 @@ public String getFilesToDownload() {
117
117
return filesToDownload ;
118
118
}
119
119
120
- public int getCheckFrequencyMinutes () {
120
+ public float getCheckFrequencyMinutes () {
121
121
return checkFrequencyMinutes ;
122
122
}
123
123
@@ -186,7 +186,7 @@ public boolean perform(AbstractBuild<?, ?> build,
186
186
// loops for checking the job's status and progress until
187
187
// it reaches an ending state
188
188
while (!batchSystem .isEndStatus (jobStatus )) {
189
- Thread .sleep (checkFrequencyMinutes * 60000 );
189
+ Thread .sleep (( long ) ( checkFrequencyMinutes * 60000 ) );
190
190
jobStatus = batchSystem .getJobStatus (jobId );
191
191
listener .getLogger ().println ("JOB STATUS: " + jobStatus );
192
192
batchSystem .processStatus (jobStatus );
0 commit comments