Reading Time: 4 minutes
Hi readers, in this blog we will be discussing Jenkins’s directory structure. Also, we will be looking at how different config file store into .jenkins folder.
Jenkins plugin & directory Structure
The Jenkins home directory contains all the details of your Jenkins server configuration, details that you configure in the Manage Jenkins screen. These configuration details are stored in the form of a set of XML files. Many of the core configurations are stored in the config.xml file.
Jenkins FileSystem
The config.xml
file contains information about Jenkins like version, Pipeline information, owner, etc. It also contains the workspace Directory path, builds Directory path.
It stores the fingerprint information of credentials like git, node, etc.
It stores different jobs that we have created in our Jenkins. It contains sub-directory of each job for each job it contains config.xml, next build number, build folder.
Selected job folder
Builds folder contains each build folder and permalinks file which contains lastFailedBuild ,lastStableBuild ,lastSuccessfulBuild,lastUnstableBuild ,lastUnsuccessfulBuild .
Builds Folder
Build no folder contains the polling log, log information, and build details like the result, run duration of the build, etc.
Selected build no folder
This directory contains any plugins that you have installed. Plugins allow you to extend Jenkins by adding extra features. This means that you can update your Jenkins executable and not have to reinstall all your plugins.
You can use this directory to place your own custom content onto your Jenkins server. You can access files in this directory at http://myserver/userContent.
UserContent
As I have contains the only readme.txt which is the default file in this folder you can store any file you want here.
If you are using the native Jenkins user database, user accounts will be stored in this directory.
Users
The workspace
directory is where Jenkins builds your project: it contains the source code Jenkins checks out, plus any files generated by the build itself. This workspace is reused for each successive build—there is only ever one workspace
directory per project, and the disk space it requires tends to be relatively stable.
Workspace
secrets needed when migrating credentials to other servers. It helps us to migrate credentials without reveling to someone. It stores a master key, initialAdminPassword, etc.
#devops #jenkins #directory structure #jenkins plugins