Click on New item
Enter name of item, select freestyle project and click OK
Enter project detail
Click on “Add build step” and Click on “Execute Windows batch command” and add the commands as we want to execute during the build process.
(We used Java Commands) Then add the java commands to compile the java code.
We added like:- testc testing.java
Click Save if looking to Save for now and if looking add Git repository then follow:-
Under Source Code Management, Enter your repository URL. We had a test repository located at-
https://github.com/test/testing.git (Example-Now Removed)
Click Apply and Save the project.
Jenkins will first validate your login credentials with GitHub and only then pull the source code from your GitHub repository.
See project is created.
To build the source code:-
Click the Build Now button on the left-hand side to build the source code.
After clicking on Build now, we can see the status of the build we run under Build History
Click on the build number and then Click on console output to see the status of the build you run
Status is there, great. Keep practicing