Jenkins provides sample syntax to get a feel for how to configure a pipeline.
Using a sample pipeline for execution
Getting ready
With Jenkins 2, the pipeline and other features are installed with the default installation with the suggested plugins.
How to do it...
- Go to the Jenkins dashboard | New item | Pipeline.
- It will open the configuration of a newly created pipeline job.
- Go to the Pipeline section:
- In the try sample Pipeline... dropdown, select GitHub + Maven. It will automatically generate the syntax for the sample code. Make sure that mvnHome has the proper...