This commit is contained in:
Nunzio Andrea Galante 2017-07-24 16:51:47 +00:00
parent 5b6105d780
commit 275ee16764
2 changed files with 11 additions and 13 deletions

View File

@ -67,9 +67,8 @@ public class ProductionPublishingJob extends DMPMJob ***REMOVED***
if (exitstatus == 9) ***REMOVED***
response = "SVN REPOSITORY CORRECTLY UPDATED; THE CRON JOB WILL INSTALL THE ALGORITHM "+ this.algorithm.getName() + " IN THE VRE" + targetVREName;
writer.println(response);
writer.close();
***REMOVED***
writer.close();
return response;
***REMOVED***
@ -77,8 +76,7 @@ public class ProductionPublishingJob extends DMPMJob ***REMOVED***
public String buildInfo()***REMOVED***
return
"\n"+
"Algorithm details:"+
"\n"+
"Algorithm details:\n"+"\n"+
"User: "+this.algorithm.getFullname()+"\n"+
"Algorithm name: "+this.algorithm.getName()+"\n"+
"Caller VRE: "+ScopeProvider.instance.get()+"\n"+

View File

@ -41,10 +41,10 @@ public class StagingJob extends DMPMJob ***REMOVED***
***REMOVED*** this.rProtoCluster = rProtoCluster;
this.rProtoVREName = rProtoVREName;
File m = new File(this.jobLogs + File.separator + this.id + "_exitStatus");
PrintWriter writer = new PrintWriter(m, "UTF-8");
writer.println(this.getStatus(0));
writer.close();
***REMOVED***File m = new File(this.jobLogs + File.separator + this.id + "_exitStatus");
***REMOVED***PrintWriter writer = new PrintWriter(m, "UTF-8");
this.getStatus(0);
***REMOVED***writer.close();
***REMOVED***
@ -122,20 +122,21 @@ public class StagingJob extends DMPMJob ***REMOVED***
if (exitstatus == 0) ***REMOVED***
response = "IN PROGRESS";
writer.println(response);
writer.close();
***REMOVED***writer.close();
***REMOVED***
if (exitstatus == 9) ***REMOVED***
response = "COMPLETED";
writer.println(response);
writer.close();
***REMOVED***writer.close();
***REMOVED***
if (exitstatus == 2) ***REMOVED***
response = "FAILED";
writer.println(response);
writer.close();
***REMOVED***writer.close();
***REMOVED***
writer.close();
return response;
***REMOVED***
@ -144,8 +145,7 @@ public class StagingJob extends DMPMJob ***REMOVED***
ServiceConfiguration a = new ServiceConfiguration();
return
"\n"+
"Algorithm details:"+
"\n"+
"Algorithm details:\n"+"\n"+
"User: "+this.algorithm.getFullname()+"\n"+
"Algorithm name: "+this.algorithm.getName()+"\n"+
"Staging DataMiner Host: "+ a.getStagingHost()+"\n"+