Running a Java Jenkins Job
If you chose our Java Git Project, you will have to specify a build step that invokes a Gradle test task.
In the job configuration screen, scroll down to Build.
Click on Add build step and choose Invoke Gradle Script
In the Tasks field, specify the test task.
Choose Use Gradle Wrapper
And check Make gradlew executable
Scroll all the way down and click Save or Apply.
You are all set! Go to the project homepage and click on Build with Parameters and click on Build.