Hi,

I am working on a PHP Project, there are few configuration files in my
project which consist database connection parameters (defined as a
constant) etc. What I want is that,  while generating build, when jenkins
is done with checkout from svn on its local workspace, then before
executing the unit test cases, jenkins should override the constant value
in my source code configuration file.

Like for say I have a config_constant.php file in my project and it has a
constant named

define('DB_MASTER_HOST', '192.165.56.12'); , I want jenkins to override or
replace the value of this constant ('DB_MASTER_HOST) to 192.168.56.93
present in my file (config_constant.php), so that when jenkins will execute
test cases then the database server 192.168.56.93 should be used.

Similarly I want to override/replace other constants value too.

Please suggest me a way out to do this.

Thanks a lot.


--Reena Upadhyay

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to