Infosys Interview Question

How to automate deployment in jenkins