To use Jetty as the application server, set up the following directory structure for the application. Note that the webapp/ directory is where you will decompress your application's files.

yourapp
+-- build.gradle
+-- src
+-- main
+-- webapp

Decompress the files and run the application:

$ gradle jettyRun

Enter the URL http://SERVER-IP:8080/APPNAME/ once the console output indicates that Jetty is running to check if it's working. Remember to replace APPNAME with the your application is configured to work on.

Use Jenkins

Follow these steps:

Create or set up the directory for your Gradle and Java files. Assume this directory is named yourapp/.