This commit is contained in:
Nunzio Andrea Galante 2017-07-26 19:35:08 +00:00
parent b225caa2a4
commit 0088583f07
2 changed files with 7 additions and 7 deletions

View File

@ -47,11 +47,11 @@ public class ProductionPublishingJob extends DMPMJob ***REMOVED***
***REMOVED***this.svnUpdater.updateProdDeps(this.algorithm); ***REMOVED***this.svnUpdater.updateProdDeps(this.algorithm);
this.svnUpdater.updateSVNAlgorithmList(this.algorithm, this.targetVREName, this.algorithm.getFullname(), env); this.svnUpdater.updateSVNAlgorithmList(this.algorithm, this.targetVREName, this.algorithm.getFullname(), env);
this.getStatus(9); this.getStatus(9);
sm.sendNotification(nh.getSuccessSubjectRelease() + " for "+this.algorithm.getName()+ " algorithm", nh.getSuccessBodyRelease(this.buildInfo())); sm.sendNotification(nh.getSuccessSubjectRelease() + " for "+this.algorithm.getName()+ " algorithm", nh.getSuccessBodyRelease("\n\n"+this.buildInfo()));
return; return;
***REMOVED*** ***REMOVED***
else this.getStatus(0); else this.getStatus(0);
sm.sendNotification(nh.getFailedSubjectRelease() + " for "+this.algorithm.getName()+ " algorithm", nh.getFailedBodyRelease(this.buildInfo()+" The user "+this.algorithm.getFullname()+ " is not authorized to access to the "+ targetVREName+ " VRE")); sm.sendNotification(nh.getFailedSubjectRelease() + " for "+this.algorithm.getName()+ " algorithm", nh.getFailedBodyRelease(" The user "+this.algorithm.getFullname()+ " is not authorized to access to the "+ targetVREName+ " VRE"+"\n\n"+this.buildInfo()));
return; return;
***REMOVED*** int ret = this.executeAnsibleWorker( ***REMOVED*** int ret = this.executeAnsibleWorker(
***REMOVED*** createWorker(this.algorithm, this.prodCluster, false, "gcube")); ***REMOVED*** createWorker(this.algorithm, this.prodCluster, false, "gcube"));

View File

@ -73,7 +73,7 @@ public class StagingJob extends DMPMJob ***REMOVED***
***REMOVED*** ***REMOVED***
this.getStatus(2); this.getStatus(2);
sm.sendNotification(nh.getFailedSubject() +" for "+this.algorithm.getName()+ " algorithm", nh.getFailedBody(message+this.buildInfo())); sm.sendNotification(nh.getFailedSubject() +" for "+this.algorithm.getName()+ " algorithm", nh.getFailedBody(message+"\n\n"+this.buildInfo()));
return; return;
***REMOVED*** ***REMOVED***
@ -82,7 +82,7 @@ public class StagingJob extends DMPMJob ***REMOVED***
if (ret != 0) ***REMOVED*** if (ret != 0) ***REMOVED***
this.getStatus(2); this.getStatus(2);
sm.sendNotification(nh.getFailedSubject() + " for "+this.algorithm.getName()+ " algorithm", nh.getFailedBody(this.buildInfo()+"Installation failed. Return code=" + ret)); sm.sendNotification(nh.getFailedSubject() + " for "+this.algorithm.getName()+ " algorithm", nh.getFailedBody("Installation failed. Return code=" + ret)+"\n\n"+this.buildInfo());
return; return;
***REMOVED*** ***REMOVED***
@ -99,16 +99,16 @@ public class StagingJob extends DMPMJob ***REMOVED***
this.algorithm.getFullname(), env); this.algorithm.getFullname(), env);
this.getStatus(9); this.getStatus(9);
sm.sendNotification(nh.getSuccessSubject() + " for "+this.algorithm.getName()+ " algorithm", nh.getSuccessBody(this.buildInfo())); sm.sendNotification(nh.getSuccessSubject() + " for "+this.algorithm.getName()+ " algorithm", nh.getSuccessBody("\n\n"+this.buildInfo()));
return; return;
***REMOVED*** else ***REMOVED*** else
this.getStatus(2); this.getStatus(2);
sm.sendNotification(nh.getFailedSubject() + " for "+this.algorithm.getName()+ " algorithm", sm.sendNotification(nh.getFailedSubject() + " for "+this.algorithm.getName()+ " algorithm",
nh.getFailedBody( nh.getFailedBody(
this.buildInfo()+"\n"+ "\n\n"+
"Installation completed but DataMiner Interface not working correctly or files " "Installation completed but DataMiner Interface not working correctly or files "
+ this.algorithm.getName() + ".jar and " + this.algorithm.getName() + this.algorithm.getName() + ".jar and " + this.algorithm.getName()
+ "_interface.jar not availables at the expected path")); + "_interface.jar not availables at the expected path")+"\n\n"+this.buildInfo());
return; return;
***REMOVED*** ***REMOVED***