# How to configure hudson.plugins.git.GitSCM.ALLOW\_LOCAL\_CHECKOUT kept over updates

**URL:** <https://community.jenkins.io/t/how-to-configure-hudson-plugins-git-gitscm-allow-local-checkout-kept-over-updates/7398>\
**Category:** Ask a question\
**Created:** [May 16, 2023, 6:11am UTC](https://community.jenkins.io/t/how-to-configure-hudson-plugins-git-gitscm-allow-local-checkout-kept-over-updates/7398 "2023-05-16T06:11:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![boaks](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/boaks/32/3334_2.png) [@boaks](https://community.jenkins.io/u/boaks)\
**Post date:** [May 16, 2023, 6:11am UTC](https://community.jenkins.io/t/how-to-configure-hudson-plugins-git-gitscm-allow-local-checkout-kept-over-updates/7398/1 "2023-05-16T06:11:50Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [May 16, 2023, 11:18am UTC](https://community.jenkins.io/t/how-to-configure-hudson-plugins-git-gitscm-allow-local-checkout-kept-over-updates/7398/2 "2023-05-16T11:18:36Z")

</div>

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:

> **[Managing systemd services](https://www.jenkins.io/doc/book/system-administration/systemd-services/)**
>
> Jenkins – an open source automation server which enables developers around the world to reliably build, test, and deploy their software

A tutorial video is included on that page as:

[![](https://europe1.discourse-cdn.com/flex013/uploads/jenkins/original/2X/0/04a2972bcb9f7e4756fdc406b9992a75a8f47ed2.jpeg "🔴 Managing the Jenkins systemd Service on Ubuntu 20.04") ](https://www.youtube.com/watch?v=pwR9TPW2oG4)

---

<div class="post-metadata">

**Author:** ![boaks](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/boaks/32/3334_2.png) [@boaks](https://community.jenkins.io/u/boaks)\
**Post date:** [May 16, 2023, 1:18pm UTC](https://community.jenkins.io/t/how-to-configure-hudson-plugins-git-gitscm-allow-local-checkout-kept-over-updates/7398/3 "2023-05-16T13:18:40Z")

</div>

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!
