Defining a Pipeline Defining a Pipeline in the Web UI Scripted Pipeline is written in Groovy. The relevant bits of Groovy syntax will be introduced as necessary in this document, so while an understanding of Groovy is helpful, it is not required to work with Pipeline. A basic Pipeline can be created in either of the following ways: The syntax for defining a Pipeline with either approach is the same, but while Jenkins supports entering Pipeline directly into the web UI, it’s generally considered best practice to define the Pipeline in a  Jenkinsfile  which Jenkins will then load directly from source control. [9: en.wikipedia.org/wiki/Source_control_management] To create a basic Pipeline in the Jenkins web UI, follow these steps: Jenkins uses the name of the Pipeline to create directories on disk. Pipeline names which include spaces may uncover bugs in scripts which do not expect paths to contain spaces. CAUTION • Enter a name for your Pipeline, select  Pipeline  and click  OK . • Click  New Item  on Jenkins home page. • By entering a script directly in the Jenkins web UI. • By creating a  Jenkinsfile  which can be checked into a project’s source control repository. 22