'How can we create the war file for angular project in tomcat using Jenkins?

I have a constraint of building and deploying code of the angular project in the Tomcat using zenkins,

Should we create a war file for the angular project and deploy it on tomcat using war files or is their any way to achieve this?

If any one know how to create a war file of angular project in jenkins and pushing it to the tomcat please let me know the answer or solution for it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source