in Maven by
Q:
Explain the two types of pipeline in Jenkins, along with their syntax.

1 Answer

0 votes
by
A: Explain the two types of pipeline in Jenkins, along with their syntax.

Jenkins provides two ways of developing a pipeline code: Scripted and Declarative.

A. Scripted Pipeline: It is based on Groovy script as their Domain Specific Language. One or more node blocks do the core work throughout the entire pipeline.

Syntax:

Executes the pipeline or any of its stages on any available agent

Defines the build stage

Performs steps related to building stage

Defines the test stage

Performs steps related to the test stage

Defines the deploy stage

Performs steps related to the deploy stage

B. Declarative Pipeline: It provides a simple and friendly syntax to define a pipeline. Here, the pipeline block defines the work done throughout the pipeline.

Syntax:

Executes the pipeline or any of its stages on any available agent

Defines the build stage

Performs steps related to building stage

Defines the test stage

Performs steps related to the test stage

Defines the deploy stage

Performs steps related to the deploy stage
Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jul 23, 2020 in Maven by rajeshsharma
0 votes
asked Jan 17, 2020 in Jenkins by GeorgeBell
+1 vote
asked Dec 5, 2019 in DevOps by rajeshsharma
+1 vote
asked Dec 26, 2019 in Agile by srikanth
0 votes
asked Dec 4, 2020 in Amazon Elastic Compute Cloud(EC2) by sharadyadav1986
...