Notes on the Jenkins file system.
Shell into Docker image §
We will first need to shell into the docker image Jenkins is running in.
- Steps to get Jenkins running in docker below
- now we cd into our jenkins_home directory
- To see where our jobs are located, we need to go to the workspace folder
In my test instance, I have created one Freestyle project named “test_david”. Notice how Jenkins creates a folder with the same name as your project.
Pro Tip: Do not include spaces in your project names as these will be used to create folders
I won’t cd into the test_david folder as it will be empty. If I created any files, those will show up there.
- Folders/files of interest
- plugins - This folder contains installed Jenkins plugins
- updates - where all the updates go and may be used to troubleshoot update errors
- users - This folder contains user data, including user settings and configurations
- workspace - This folder contains the workspace for building and running jobs
- secrets - This folder contains encrypted secrets, such as credentials and API keys
- jobs - This folder is frequently accessed by Jenkins admins to manage and configure jobs
- config.xml - This file is frequently edited by Jenkins admins to configure Jenkins settings.