Skip to main content

Jenkins: Home Profile

When Jenkins is installed on a linux host, the Jenkins service and any spawned builds run under the context of the jenkins user account.
Problem is, the jenkins user account is not a regular user account, with a profile that lives under /home.
Instead, the Jenkins user profile is located at: /var/lib/jenkins

This creates some nuances for many scenarios that assume a normal user profile, such as:

  • Adding SSH keys
  • nuget caching
  • NPM caching

So, you will come across many tutorials for installing nuget, or standing up NPM caches, etc, that are all required things for a capable Jenkins build server to have and use.

But, following these instructions will require special care as to what user account will need them, and if they are properly mapped.
In general, you will need to point things