Getting a Jenkins build to start on commit is a little tricky, but well worth it. Unlike a poll, this option can build any commit instantly so you get direct feedback on every single commit. We need the GitLab plugin, so install it and, this time, restart after success (check Restart Jenkins when installation is complete and no jobs are running). After you have installed the plugin and Jenkins has restarted, head over to GitLab. In GitLab, go to the profile settings of your account. Now, go to Access Tokens. Create an access token by entering a name and select the API scope. Make sure you copy the token, as this will be the only time you get to see it. If you lose it, it is really gone. Don't worry, you can create as many access ...
On commit
Get Continuous Integration, Delivery, and Deployment now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.