database - JUnit to connect to Oracle DB from Jenkins -


i connect actual physical database junit, while runs jenkins during maven build/test. using jboss writing junit. don't want store db connection string within junit code/git/svn. rather externalize either via datasource , connect using jndi in runtime or other mechanism. there way, can use datasource setup in jenkins connect db or there better approach achieve this? basically, want hide connection id/pwd developers well, don't know/see.

you can use environment variables or system properties provide configuration jenkins junit test. read them in test , use establish connection db.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -