This commit is contained in:
Nunzio Andrea Galante 2017-07-07 13:57:46 +00:00
parent 9247b7019d
commit 3b7f4aefc4
4 changed files with 130 additions and 63 deletions

View File

@ -28,7 +28,7 @@ public class ProductionPublishingJob extends DMPMJob {
if (CheckPermission.apply(targetVREToken,targetVREName)){ if (CheckPermission.apply(targetVREToken,targetVREName)){
this.svnUpdater.updateProdDeps(this.algorithm); ***REMOVED***this.svnUpdater.updateProdDeps(this.algorithm);
this.svnUpdater.updateSVNProdAlgorithmList(this.algorithm, this.targetVREName, this.algorithm.getFullname(), "Prod"); this.svnUpdater.updateSVNProdAlgorithmList(this.algorithm, this.targetVREName, this.algorithm.getFullname(), "Prod");

View File

@ -33,32 +33,32 @@ public class SVNUpdater {
this.configuration = configuration; this.configuration = configuration;
***REMOVED*** ***REMOVED***
public void updateRPRotoDeps(Algorithm algorithm) { ***REMOVED*** public void updateRPRotoDeps(Algorithm algorithm) {
this.updateSVN(this.configuration.getSVNRProtoOSDepsList(), algorithm.getOSDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNRProtoOSDepsList(), algorithm.getOSDependencies());
this.updateSVN(this.configuration.getSVNRProtoCRANDepsList(), algorithm.getCranDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNRProtoCRANDepsList(), algorithm.getCranDependencies());
this.updateSVN(this.configuration.getSVNRProtoGitHubDepsList(), algorithm.getGitHubDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNRProtoGitHubDepsList(), algorithm.getGitHubDependencies());
***REMOVED*** ***REMOVED******REMOVED***
public String getRProtoDependencyFile(String language) { public String getRProtoDependencyFile(String language) {
switch (language) { switch (language) {
case "R": case "R":
return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoCRANDepsList();
***REMOVED*** case "R-blackbox": case "R-blackbox":
***REMOVED*** return ""; return this.configuration.getSVNRProtoRBDepsList();
***REMOVED*** case "Java": case "Java":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoJavaDepsList();
case "Knime-Workflow": case "Knime-Workflow":
return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoKWDepsList();
***REMOVED*** case "Linux-compiled": case "Linux-compiled":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoLinuxCompiledDepsList();
***REMOVED*** case "Octave": case "Octave":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoOctaveDepsList();
***REMOVED*** case "Python": case "Python":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoPythonDepsList();
***REMOVED*** case "Pre-Installed": case "Pre-Installed":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoPreInstalledDepsList();
***REMOVED*** case "Windows-compiled": case "Windows-compiled":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProtoWCDepsList();
default: default:
return null; return null;
***REMOVED*** ***REMOVED***
@ -70,22 +70,22 @@ public class SVNUpdater {
switch (language) { switch (language) {
case "R": case "R":
return this.configuration.getSVNRProdCRANDepsList(); return this.configuration.getSVNRProdCRANDepsList();
***REMOVED*** case "R-blackbox": case "R-blackbox":
***REMOVED*** return ""; return this.configuration.getSVNRProdRBDepsList();
***REMOVED*** case "Java": case "Java":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdJavaDepsList();
***REMOVED*** case "Knime-Workflow": case "Knime-Workflow":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdKWDepsList();
***REMOVED*** case "Linux-compiled": case "Linux-compiled":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdLinuxCompiledDepsList();
***REMOVED*** case "Octave": case "Octave":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdOctaveDepsList();
***REMOVED*** case "Python": case "Python":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdPythonDepsList();
***REMOVED*** case "Pre-Installed": case "Pre-Installed":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdPreInstalledDepsList();
***REMOVED*** case "Windows-compiled": case "Windows-compiled":
***REMOVED*** return this.configuration.getSVNRProtoCRANDepsList(); return this.configuration.getSVNRProdWCDepsList();
default: default:
return null; return null;
***REMOVED*** ***REMOVED***
@ -93,10 +93,6 @@ public class SVNUpdater {
public void readRPRotoDeps(Algorithm algorithm) throws SVNException { public void readRPRotoDeps(Algorithm algorithm) throws SVNException {
if (algorithm.getLanguage().equals("R")) { if (algorithm.getLanguage().equals("R")) {
this.checkIfAvaialable(this.configuration.getSVNRProtoCRANDepsList(), algorithm.getDependencies()); this.checkIfAvaialable(this.configuration.getSVNRProtoCRANDepsList(), algorithm.getDependencies());
@ -157,11 +153,11 @@ public class SVNUpdater {
***REMOVED*** ***REMOVED***
***REMOVED*** ***REMOVED***
public void updateProdDeps(Algorithm algorithm) { ***REMOVED*** public void updateProdDeps(Algorithm algorithm) {
this.updateSVN(this.configuration.getSVNProdOSDepsList(), algorithm.getOSDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNProdOSDepsList(), algorithm.getOSDependencies());
this.updateSVN(this.configuration.getSVNRProdCRANDepsList(), algorithm.getCranDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNRProdCRANDepsList(), algorithm.getCranDependencies());
this.updateSVN(this.configuration.getSVNRProdGitHubDepsList(), algorithm.getGitHubDependencies()); ***REMOVED*** this.updateSVN(this.configuration.getSVNRProdGitHubDepsList(), algorithm.getGitHubDependencies());
***REMOVED*** ***REMOVED******REMOVED***
public void updateSVNRProtoAlgorithmList(Algorithm algorithm, String targetVRE, String user, String env) { public void updateSVNRProtoAlgorithmList(Algorithm algorithm, String targetVRE, String user, String env) {
this.updateSVNAlgorithmList(this.configuration.getSVNRProtoAlgorithmsList(), algorithm, targetVRE, user, env); this.updateSVNAlgorithmList(this.configuration.getSVNRProtoAlgorithmsList(), algorithm, targetVRE, user, env);

View File

@ -40,38 +40,95 @@ public class ServiceConfiguration {
return props.getProperty("svn.repository"); return props.getProperty("svn.repository");
***REMOVED*** ***REMOVED***
***REMOVED***RProto
public String getSVNRProtoAlgorithmsList(){ public String getSVNRProtoAlgorithmsList(){
return props.getProperty("svn.rproto.algorithms-list"); return props.getProperty("svn.rproto.algorithms-list");
***REMOVED*** ***REMOVED***
public String getSVNRProtoOSDepsList(){ public String getSVNRProtoLinuxCompiledDepsList(){
return props.getProperty("svn.rproto.deps-os"); return props.getProperty("svn.rproto.deps-linux-compiled");
***REMOVED*** ***REMOVED***
public String getSVNRProtoCRANDepsList(){ public String getSVNRProtoCRANDepsList(){
return props.getProperty("svn.rproto.deps-cran"); return props.getProperty("svn.rproto.deps-r");
***REMOVED*** ***REMOVED***
public String getSVNRProtoGitHubDepsList(){ public String getSVNRProtoPreInstalledDepsList(){
return props.getProperty("svn.rproto.deps-github"); return props.getProperty("svn.rproto.deps-pre-installed");
***REMOVED*** ***REMOVED***
public String getSVNRProtoRBDepsList(){
return props.getProperty("svn.rproto.deps-r-blackbox");
***REMOVED***
public String getSVNRProtoJavaDepsList(){
return props.getProperty("svn.rproto.deps-java");
***REMOVED***
public String getSVNRProtoKWDepsList(){
return props.getProperty("svn.rproto.deps-knime-workflow");
***REMOVED***
public String getSVNRProtoOctaveDepsList(){
return props.getProperty("svn.rproto.deps-octave");
***REMOVED***
public String getSVNRProtoPythonDepsList(){
return props.getProperty("svn.rproto.deps-python");
***REMOVED***
public String getSVNRProtoWCDepsList(){
return props.getProperty("svn.rproto.deps-windows-compiled");
***REMOVED***
***REMOVED***Prod
public String getSVNProdAlgorithmsList(){ public String getSVNProdAlgorithmsList(){
return props.getProperty("svn.prod.algorithms-list"); return props.getProperty("svn.prod.algorithms-list");
***REMOVED*** ***REMOVED***
public String getSVNProdOSDepsList(){ public String getSVNRProdLinuxCompiledDepsList(){
return props.getProperty("svn.prod.deps-os"); return props.getProperty("svn.prod.deps-linux-compiled");
***REMOVED*** ***REMOVED***
public String getSVNRProdCRANDepsList(){ public String getSVNRProdCRANDepsList(){
return props.getProperty("svn.prod.deps-cran"); return props.getProperty("svn.prod.deps-r");
***REMOVED*** ***REMOVED***
public String getSVNRProdGitHubDepsList(){ public String getSVNRProdPreInstalledDepsList(){
return props.getProperty("svn.prod.deps-github"); return props.getProperty("svn.prod.deps-pre-installed");
***REMOVED*** ***REMOVED***
public String getSVNRProdRBDepsList(){
return props.getProperty("svn.prod.deps-r-blackbox");
***REMOVED***
public String getSVNRProdJavaDepsList(){
return props.getProperty("svn.prod.deps-java");
***REMOVED***
public String getSVNRProdKWDepsList(){
return props.getProperty("svn.prod.deps-knime-workflow");
***REMOVED***
public String getSVNRProdOctaveDepsList(){
return props.getProperty("svn.prod.deps-octave");
***REMOVED***
public String getSVNRProdPythonDepsList(){
return props.getProperty("svn.prod.deps-python");
***REMOVED***
public String getSVNRProdWCDepsList(){
return props.getProperty("svn.prod.deps-windows-compiled");
***REMOVED***
public String getCSVUrl() { public String getCSVUrl() {
return props.getProperty("HAPROXY_CSV"); return props.getProperty("HAPROXY_CSV");
***REMOVED*** ***REMOVED***

View File

@ -7,13 +7,27 @@ SVN_REPO: https:***REMOVED***svn.d4science.research-infrastructures.eu/gcube/tru
svn.repository = https:***REMOVED***svn.d4science.research-infrastructures.eu/gcube svn.repository = https:***REMOVED***svn.d4science.research-infrastructures.eu/gcube
svn.rproto.algorithms-list = /trunk/data-analysis/DataMinerConfiguration/algorithms/proto/algorithms svn.rproto.algorithms-list = /trunk/data-analysis/DataMinerConfiguration/algorithms/proto/algorithms
svn.rproto.deps-os = /trunk/data-analysis/RConfiguration/RPackagesManagement/test_r_deb_pkgs.txt
svn.rproto.deps-cran = /trunk/data-analysis/RConfiguration/RPackagesManagement/test_r_cran_pkgs.txt svn.rproto.deps-linux-compiled =
svn.rproto.deps-github = /trunk/data-analysis/RConfiguration/RPackagesManagement/test_r_github_pkgs.txt svn.rproto.deps-pre-installed =
svn.rproto.deps-r-blackbox =
svn.rproto.deps-r = /trunk/data-analysis/RConfiguration/RPackagesManagement/test_r_cran_pkgs.txt
svn.rproto.deps-java =
svn.rproto.deps-knime-workflow =
svn.rproto.deps-octave =
svn.rproto.deps-python =
svn.rproto.deps-windows-compiled =
svn.prod.algorithms-list = /trunk/data-analysis/DataMinerConfiguration/algorithms/prod/algorithms svn.prod.algorithms-list = /trunk/data-analysis/DataMinerConfiguration/algorithms/prod/algorithms
svn.prod.deps-os = /trunk/data-analysis/RConfiguration/RPackagesManagement/r_deb_pkgs.txt
svn.prod.deps-cran = /trunk/data-analysis/RConfiguration/RPackagesManagement/r_cran_pkgs.txt svn.prod.deps-linux-compiled =
svn.prod.deps-github = /trunk/data-analysis/RConfiguration/RPackagesManagement/r_github_pkgs.txt svn.prod.deps-pre-installed =
svn.prod.deps-r-blackbox =
svn.prod.deps-r = /trunk/data-analysis/RConfiguration/RPackagesManagement/r_cran_pkgs.txt
svn.prod.deps-java =
svn.prod.deps-knime-workflow =
svn.prod.deps-octave =
svn.prod.deps-python =
svn.prod.deps-windows-compiled =