Can you Preserve Plugins after a Clone?

Jordan G
Tera Contributor

Is it possible to preserve plugins after a clone to easily reapply the plugins to non-prods? 

Thank you!

12 REPLIES 12

I'd be interested in an example of a script to reinstall plugins. We don't need to preserve data. 

If it's just about reinstalling plugins, something like below would already work:

pm.registerPlugin('com.glide.cs.pa');

If my answer helped you in any way, please then mark it as helpful.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Use below sample code to install plugins

var plugins = [];
plugins.push('com.snc.pa.change');
plugins.push('com.snc.pa.problem');
plugins.push('com.snc.pa.premium');
plugins.push('com.snc.pa.solution.library');
var main = new GlideMultiPluginManagerWorker();
main.setPluginIds(plugins);
main.setProgressName("Plugin Installer");
main.setBackground(true);
main.start();

 

Regards,

Sachin

It's not available to preserve plugins

 

https://hi.service-now.com/kb_view.do?sysparm_article=KB0715621#plugins

 

Regards,

Sachin

I didn't mention preserving plugins. I mentioned installing a plugin. Installing a plugin scripted through using the post cleanup scripts. And yes, that's possible. Proven mechanism.

Kind regards,
Mark
2020 ServiceNow Community MVP
2020 ServiceNow Developer MVP

---

LinkedIn
Community article list

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn