it should be a very interesting improvment to set the ORACLE_HOME at slave or job level.
we have many slaves with different oracle client installed, in different directories. even if the ORACLE_HOME variable is setted (at slave level), this plugin force to set it at the master level
Hi Fernando, the best solution, for us, should be: the plugin, during the build, should read the ORACLE_HOME environment variable (setted on our slave, or at job level with envinject) and yes, sqlplus is always in $ORACLE_HOIME/bin directory
Fernando, it's better, but should be perfect if i can use environment variables
for example: attached snapshot my ORACLE_HOME is setted at slave level in my job configuration, i have setted the ORACLE_HOME value with the $ORACLE_HOME variable
i have tested with an ORACLE_HOME setted a job level, but it's KO:
ERROR: Build step failed with exception java.lang.RuntimeException: java.lang.RuntimeException: ORACLE_HOME directory [/oracle/products/middleware/as_1/] does not exist!
the global setting "Try to detect ORACLE_HOME" is not saved when activated
in any case, i have this error "java.lang.RuntimeException: java.lang.RuntimeException: ORACLE_HOME directory [/oracle/products/middleware/as_1] does not exist!"
java.lang.RuntimeException: java.lang.RuntimeException: Please set up the ORACLE_HOME! at org.jenkinsci.plugins.sqlplusscriptrunner.SQLPlusRunnerBuilder.perform(SQLPlusRunnerBuilder.java:120) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Caused by: java.lang.RuntimeException: Please set up the ORACLE_HOME! at org.jenkinsci.plugins.sqlplusscriptrunner.SQLPlusRunner.runGetSQLPLusVersion(SQLPlusRunner.java:56) at org.jenkinsci.plugins.sqlplusscriptrunner.SQLPlusRunnerBuilder.perform(SQLPlusRunnerBuilder.java:112) ... 9 more Build step 'SQLPlus Script Runner' marked build as failure
- the global setting "Try to detect ORACLE_HOME" is not saved when activated - in any case, i have this error "java.lang.RuntimeException: java.lang.RuntimeException: ORACLE_HOME directory [/oracle/products/middleware/as_1] does not exist!" - if the oracle_home is setted in global settings - if the oracle_home is setted in the job
Code changed in jenkins User: Bruno P. Kinoshita Path: pom.xml src/main/java/org/jenkinsci/plugins/sqlplusscriptrunner/ExternalProgramUtil.java src/main/java/org/jenkinsci/plugins/sqlplusscriptrunner/SQLPlusRunner.java src/main/java/org/jenkinsci/plugins/sqlplusscriptrunner/SQLPlusRunnerBuilder.java src/main/java/org/jenkinsci/plugins/sqlplusscriptrunner/SQLPlusRunnerException.java src/test/java/org/jenkinsci/plugins/sqlplusscriptrunner/test/TestSQLPlus.java http://jenkins-ci.org/commit/sqlplus-script-runner-plugin/a8e31456464d4841be0a634b558c697dff81e864 Log: JENKINS-31597 First tentative of adding support to distributed builds - WIP, not thoroughly tested