content_image/675728.jpg content_image/675727.jpg
## stage 

The stage  directive goes in the stages  section and should contain a [steps] section, an optional agent section, or other stage-specific directives. Practically speaking, all of the real work done by a Pipeline will be wrapped in one or more stage  directives. 

<img src='content_image/675728.jpg'>

## Example 

// Declarative // pipeline { agent any stages { stage('Example') { steps { echo 'Hello World' } } } } // Script // 

## tools 

A section defining tools to auto-install and put on the PATH . This is ignored if agent none  is specified. 

<img src='content_image/675727.jpg'>

Supported Tools 

maven 

jdk 

gradle 

Example 

