2017-07-11 15:12:03 +02:00
# setupCommonPipelineEnvironment
## Description
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
Initializes the [`commonPipelineEnvironment` ](commonPipelineEnvironment.md ), which is used throughout the complete pipeline.
!!! tip
This step needs to run at the beginning of a pipeline right after the SCM checkout.
Then subsequent pipeline steps consume the information from `commonPipelineEnvironment` ; it does not need to be passed to pipeline steps explicitly.
## Prerequisites
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
* A **configuration file** with properties (default location: `.pipeline/config.properties` ). The property values are used as default values in many pipeline steps.
## Parameters
| parameter | mandatory | default | possible values |
| ------------ |-----------|-------------------------------|-----------------|
| `script` | yes | - | |
| `configFile` | no | `.pipeline/config.properties` | |
* `script` - The reference to the pipeline script (Jenkinsfile). Normally `this` needs to be provided.
* `configFile` - Property file defining project specific settings.
2018-03-06 14:43:53 +02:00
## Step configuration
2018-11-06 14:50:09 +02:00
2018-03-06 14:43:53 +02:00
none
2017-07-11 15:12:03 +02:00
## Side effects
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
none
## Exceptions
2018-11-06 14:50:09 +02:00
none
2017-07-11 15:12:03 +02:00
## Example
2018-11-06 14:50:09 +02:00
2017-07-11 15:12:03 +02:00
```groovy
setupCommonPipelineEnvironment script: this
```