boaks
(Achim Kraus)
May 16, 2023, 6:11am
1
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:
boaks
(Achim Kraus)
May 16, 2023, 1:18pm
3
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!