Concepts in the pipeline¶
Regardless of the graphical or text type, the editor is essentially used to facilitate users to view and edit the core of the construction process: Jenkinsfile (process description file). Therefore, before discussing the editor, it is necessary to understand several important concepts of the "process description file".
-
Pipeline
Pipeline
is a working model defined by the user. The code of the pipeline defines the complete process of software delivery, generally including the stages of building, testing and delivering applications. See the Jenkins official documentation for pipeline syntax. -
Agent
Agent describes the entire
pipeline
execution process or the execution environment of a certainstage
, and must appear in thedescription file
at the top or eachstage
. See Selecting a Jenkins Agent for more information. -
stage
A
phase
defines a sequence of closely relatedsteps
. Eachstage
assumes independent and well-defined responsibilities in the entire pipeline. Such as "Build", "Test" or "Deploy" phases. Generally speaking, all the actual build process is placed insideStages
. See Choosing a Jenkins Stage for more information. -
Parallel stage
Parallel is used to declare some
stages
that are executed in parallel, and it is usually applicable to the case where there is no dependency betweenstages
andstages
to speed up execution. See Selecting a Jenkins Agent for more information. -
steps
The
step list
describes what to do in astage
and what commands to execute. For example, there is astep (step)
that requires the system to print a message ofBuilding...
, that is, execute the commandecho 'Building...'
. See Choosing a Jenkins Step for more information.