mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-20 05:19:40 +02:00
Merge branch 'master' into whitesource-step
This commit is contained in:
commit
dfa47ac4c7
@ -26,3 +26,30 @@ handlePipelineStepErrors (stepName: 'executeHealthCheck', stepParameters: parame
|
|||||||
error "Health Check failed: ${statusCode}"
|
error "Health Check failed: ${statusCode}"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example console output
|
||||||
|
|
||||||
|
If `echoDetails` is set to true the following information will be output to the console:
|
||||||
|
|
||||||
|
1. Step beginning: `--- Begin library step: ${stepName}.groovy ---`
|
||||||
|
1. Step end: `--- End library step: ${stepName}.groovy ---`
|
||||||
|
1. Step errors:
|
||||||
|
|
||||||
|
```log
|
||||||
|
----------------------------------------------------------
|
||||||
|
--- An error occurred in the library step: ${stepName}
|
||||||
|
----------------------------------------------------------
|
||||||
|
The following parameters were available to the step:
|
||||||
|
***
|
||||||
|
${stepParameters}
|
||||||
|
***
|
||||||
|
The error was:
|
||||||
|
***
|
||||||
|
${err}
|
||||||
|
***
|
||||||
|
Further information:
|
||||||
|
* Documentation of step ${stepName}: .../${stepName}/
|
||||||
|
* Pipeline documentation: https://...
|
||||||
|
* GitHub repository for pipeline steps: https://...
|
||||||
|
----------------------------------------------------------
|
||||||
|
```
|
||||||
|
@ -12,29 +12,7 @@ import groovy.transform.Field
|
|||||||
@Field Set STEP_CONFIG_KEYS = []
|
@Field Set STEP_CONFIG_KEYS = []
|
||||||
@Field Set PARAMETER_KEYS = [
|
@Field Set PARAMETER_KEYS = [
|
||||||
/**
|
/**
|
||||||
* If set to true the following will be output to the console:
|
* If it is set to true details will be output to the console. See example below.
|
||||||
* 1. Step beginning: `--- Begin library step: ${stepName}.groovy ---`
|
|
||||||
* 2. Step end: `--- End library step: ${stepName}.groovy ---`
|
|
||||||
* 3. Step errors:
|
|
||||||
*
|
|
||||||
* ```log
|
|
||||||
* ----------------------------------------------------------
|
|
||||||
* --- An error occurred in the library step: ${stepName}
|
|
||||||
* ----------------------------------------------------------
|
|
||||||
* The following parameters were available to the step:
|
|
||||||
* ***
|
|
||||||
* ${stepParameters}
|
|
||||||
* ***
|
|
||||||
* The error was:
|
|
||||||
* ***
|
|
||||||
* ${err}
|
|
||||||
* ***
|
|
||||||
* Further information:
|
|
||||||
* * Documentation of step ${stepName}: .../${stepName}/
|
|
||||||
* * Pipeline documentation: https://...
|
|
||||||
* * GitHub repository for pipeline steps: https://...
|
|
||||||
* ----------------------------------------------------------
|
|
||||||
* ```
|
|
||||||
* @possibleValues `true`, `false`
|
* @possibleValues `true`, `false`
|
||||||
*/
|
*/
|
||||||
'echoDetails',
|
'echoDetails',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user