2017-07-11 15:12:03 +02:00
|
|
|
# commonPipelineEnvironment
|
|
|
|
|
|
|
|
## Description
|
|
|
|
Provides project specific settings.
|
|
|
|
|
|
|
|
## Prerequisites
|
|
|
|
none
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
## Method details
|
|
|
|
|
|
|
|
### getConfigProperties()
|
|
|
|
|
|
|
|
#### Description
|
|
|
|
Returns the map of project specific configuration properties. No defensive copy is created.
|
|
|
|
Write operations to the map are visible further down in the pipeline.
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Return value
|
|
|
|
A map containing project specific configuration properties.
|
|
|
|
|
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
|
|
|
commonPipelineEnvironment.getConfigProperties()
|
|
|
|
```
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
### setConfigProperties(configuration)
|
|
|
|
|
|
|
|
#### Description
|
2017-11-24 16:59:34 +02:00
|
|
|
Sets the map of configuration properties. Any existing map is overwritten.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Parameters
|
2017-11-24 16:59:34 +02:00
|
|
|
* `configuration` - A map containing the new configuration
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Return value
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
|
|
|
commonPipelineEnvironment.setConfigProperties([DEPLOY_HOST: 'deploy-host.com', DEPLOY_ACCOUNT: 'deploy-account'])
|
|
|
|
```
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
|
|
|
|
### getConfigProperty(property)
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Description
|
|
|
|
Gets a specific value from the configuration property.
|
|
|
|
|
|
|
|
#### Parameters
|
2017-11-24 16:59:34 +02:00
|
|
|
* `property` - The key of the property.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Return value
|
2017-11-24 16:59:34 +02:00
|
|
|
* The value associated with key `property`. `null` is returned in case the property does not exist.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
|
|
|
commonPipelineEnvironment.getConfigProperty('DEPLOY_HOST')
|
|
|
|
```
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
|
|
|
|
### setConfigProperty(property, value)
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Description
|
2017-11-24 16:59:34 +02:00
|
|
|
Sets property `property` with value `value`. Any existing property with key `property` is overwritten.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Parameters
|
2017-11-24 16:59:34 +02:00
|
|
|
* `property` - The key of the property.
|
|
|
|
* `value` - The value of the property.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Return value
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
|
|
|
commonPipelineEnvironment.setConfigProperty('DEPLOY_HOST', 'my-deploy-host.com')
|
|
|
|
```
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
### getMtarFileName()
|
|
|
|
|
|
|
|
#### Description
|
2017-11-24 16:59:34 +02:00
|
|
|
Returns the path of the mtar archive file.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
none
|
|
|
|
|
2017-11-24 16:59:34 +02:00
|
|
|
#### Return value
|
|
|
|
The path of the mtar archive file.
|
|
|
|
|
2017-07-11 15:12:03 +02:00
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
|
|
|
commonPipelineEnvironment.getMtarFileName()
|
|
|
|
```
|
|
|
|
|
|
|
|
### setMtarFileName(name)
|
|
|
|
|
|
|
|
#### Description
|
2017-11-24 16:59:34 +02:00
|
|
|
Sets the path of the mtar archive file. Any old value is discarded.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Parameters
|
2017-11-24 16:59:34 +02:00
|
|
|
* `mtarFilePath` - The path of the mtar archive file name.
|
2017-07-11 15:12:03 +02:00
|
|
|
|
|
|
|
#### Side effects
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Exceptions
|
|
|
|
none
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
```groovy
|
2017-11-24 16:59:34 +02:00
|
|
|
commonPipelineEnvironment.setMtarFileName('path/to/foo.mtar')
|
2017-07-11 15:12:03 +02:00
|
|
|
```
|