Jenkins and Gitlab integration
From ETSI Forge
Jenkins job configuration
- Create Jenkins job
- Set up permissions
- Set up Git information
- Set up the trigger
- Remember to take note of the link to be used as a hook
- Important: Click on advanced and generate a secure token to be used in Gitlab
- Set up post build actions
Gitlab project configuration
- Navigate to the project Integrations settings (e.g. [1])
- Insert the link generated by the Gitlab Plugin in Jenkins as the webhook uri
- Set the secret token
- click test and select "Push"
Debug build results
To investigate the results of a build in Gitlab, visit the page of a commit (or of a Merge Request) and click on the stage icon, as in the figure below:
Once in Jenkins, you can access the console output in the menu on the left