- Open the Jenkins dashboard.
- Click on New Item.
- Enter an item name.
- Select a template Freestyle project.
- Click on OK:
- Go to the Source Code Management section and select Git.
- Provide the Repository URL.
- Provide Credentials, as demonstrated in the next screenshot:
- In the Build section, click on the Add build step and select Invoke Ant.
- Select the Ant name based on our Global Tool Configuration.
- Provide Targets. In Ant, we can give a target based on the targets defined in the build.xml file:
- Click on Save.