When there is a change or update in database will jenkins notice it and can create a new build?

21 views
Skip to first unread message

sravya pudota

unread,
Dec 21, 2015, 1:56:34 AM12/21/15
to Jenkins Users
In my project updating the database is regular job.But when ever they update database they will not update the commit version no. in svn. My task is when ever database is updating or changes happened in database jenkins has to notice it and create a new build and automation testing has to done automatically to see any changes or how it is affecting the website. Somebody please help me.

Baptiste Mathus

unread,
Dec 21, 2015, 2:55:10 AM12/21/15
to jenkins...@googlegroups.com

Hi,
For automation you have 2 ways of doing things: by polling, or by callback

Polling is the easiest: just check the thing you want to react on every N minutes (more or less, you decide).
Pros: more resource consumption, and potentially less reactivity (the action you wanna trigger may be shifted of N minutes max.

Callback is the best, but is a bit more complex. It implies you know a way to trigger some action to "call you back" whenever the thing you want to react on happens.

So, basically, strive to use callback if that db update can be configured in the db itself. If not, then check it the way you need every few minutes to trigger what you need.

HTH.

Le 21 déc. 2015 7:56 AM, "sravya pudota" <sravya...@gmail.com> a écrit :
In my project updating the database is regular job.But when ever they update database they will not update the commit version no. in svn. My task is when ever database is updating or changes happened in database jenkins has to notice it and create a new build and automation testing has to done automatically to see any changes or how it is affecting the website. Somebody please help me.

--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/68aef798-1786-4528-ad69-b4d4a55e4b27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages