All technological notes.
C:\Program Files (x86)\Jenkins\/var/lib/jenkins8080Jenkins Build Executor:
Jenkins Pipeline as Code
| Items | Description |
|---|---|
Pipeline |
A continuous delivery pipeline, which is configured via a Jenkinsfile (Pipeline as Code). |
Freestyle Project |
General-purpose job type. |
Folder |
A container that stores nested items |
Multibranch Pipeline |
managing CI/CD pipelines for multiple branches in one version control repository. |
Organization Folders |
Creates a set of multibranch project subfolders by scanning for repositories. |
build
Jenkins build lifecycle:
+----------------------+
| Jenkins UI |
| (Web Interface/API) |
+----------+-----------+
|
v
+----------------------+
| Jenkins Controller |
| (Master Node) |
+----------+-----------+
|
----------------------------
| | |
v v v
+-------------+ +-------------+ +-------------+
| Agent 1 | | Agent 2 | | Agent N |
| (Worker) | | (Worker) | | (Worker) |
+-------------+ +-------------+ +-------------+
Jenkins Controller
jobs and pipelinesbuildstasks to agentsController does not run heavy workloadsAgents handle:
Jenkins jobs
Jenkins Pipeline
automated process that describes your entire software delivery workflow (Build, Test, Deploy).
Types:
Queue
Plugins
Jenkins Agents
the machines, containers, or cloud instances that connect to the Jenkins Controller to execute build jobs and pipelines.
Types:
Static agents (pre-configured)Dynamic agents (provisioned on demand, e.g., Kubernetes)Executor
Workspace
Node where a specific job or Pipeline executes its work.Jenkins detects change (webhook or polling)Job is triggered and placed in queueController selects an available agentAgent executes pipeline stepscontrollerJenkins UIJenkins plugins
Pipeline: Stage ViewVersionEnvironment variablespipeline {
agent {
label '!windows'
}
environment {
DISABLE_AUTH = 'true'
DB_ENGINE = 'sqlite'
}
stages {
stage('Build') {
steps {
echo "Database engine is ${DB_ENGINE}"
echo "DISABLE_AUTH is ${DISABLE_AUTH}"
sh 'printenv'
}
}
}
}
Email Extension Pluginblue and green.green environment.green environment.JENKINS_HOME directory