On commit

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 ...

Get Continuous Integration, Delivery, and Deployment now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.