Run Shell Scripts Added to/Changed in a Project?

17 views
Skip to first unread message

Christopher O'Grady

unread,
Feb 28, 2017, 4:12:00 PM2/28/17
to Jenkins Users
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.

Thanks,
-Christopher O'Grady-

Maciej Jaros

unread,
Mar 10, 2017, 5:43:48 AM3/10/17
to jenkins...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages