Firstly, following the initial setup, register a new Jenkins user.
Secondly, create a new Hello-World repository under dojocube account.
Thirdly, add the newly created Jenkins user as the Collaborator.
First, navigate to Manage Jenkins -> Configure System, enter the following at the Gitea Servers section:
Name: Gitea Server URL: http://192.168.100.51:30080/
Second, select on the Gitea Organization, and enter the item name as dojocube:
Third, select on the Gitea server and add dojocube (Folder Credentials Provider):
Last, enter owner as dojocube and save configuration:
Jenkins will start the scan and this is the sample result:
Once the Jenkinsfile is added to the repository, my repo appears under the status selection:
Configuring and Testing Webhook in Gitea (Optional)
In this section, I will add Webhook to Jenkins so that it will automatically trigger a build each time we commits to the repo.
For my setup, the target URL is set as follows:
First, save the Webhook:
Second, click on the Test Delivery button to test the connection:
Third, after a while you will see that the Test Deliver is success:
Finally, I complete the setup for integrating Jenkins and Gitea. In the next post, I will describe on the CI workflow for our Spring Boot application. Stay tuned!