How to configure hudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT kept over updates

I would still like to fetch my source from a git repo on my local file system.
That decouples repeating test from temporary network issues.

For that, I configure hudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT on ubuntu 20 using / lib/systemd/system/jenkins.service

Unfortunately, on updates, this configuration disappears.

Is there a way, to make that configuration be kept over updates?

Rather than editing the systemd service file directly, you can preserve settings across upgrades by letting systemd create an override file that you edit with your changes.

More details are available at:

A tutorial video is included on that page as:

Thanks a lot! I’m not common with systemd.
I found “systemctl edit jenkins” somewhere else, but I missed to add the “[Service]” section. Now it works!