There are a number of global variables, keywords, and directives that can be used inside any Pipeline, for example:
- env: Environment variables
- params: Parameters set when configuring the pipeline
- currentBuild: Information about the current build, such as results, display name, and so on
There are keywords which are available only inside steps. For example, the sh keyword allows you to specify some arbitrary shell command to run, and you can use echo to print something into the console output.
The DSL syntax can also be extended. For example, the JUnit plugin adds the junit step to the Pipeline vocabulary, which allows your step to aggregate ...