Christopher O'Grady (2017-02-28 22:12):
I'm currently working on automating deployments of our mongodb shell
scripts when we have database updates in a release. I am fairly new to
Jenkins. I was wondering if anybody has experience getting Jenkins to
run only new or updated scripts in a folder? My current idea is that
Jenkins would (as part of a build) only run those scripts which have
been added or changed since the last build.
If there are other better ways to achieve this kind of automated
deployment of mongo updates in a release, I would be happy to hear them.
That would be possible by comparing changes but a bit risky. You should
keep a record of updates (like e.g. a database version) in the database
and run updates when required. You should create an update script (in
whatever language you like) and run that script from Jenkins.
Regards,
Nux.
--
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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/3a4b03fc-02ed-1431-d9a7-c8031ace6803%40mol.com.pl.
For more options, visit https://groups.google.com/d/optout.