mirror of
https://github.com/SAP/jenkins-library.git
synced 2024-12-14 11:03:09 +02:00
Merge pull request #297 from marcusholl/pr/returnTypeVoid
Pipeline steps are expected not to return a return value
This commit is contained in:
commit
c63e6e88c0
4
.github/CONTRIBUTING.md
vendored
4
.github/CONTRIBUTING.md
vendored
@ -25,6 +25,10 @@ All pipeline library coding _must_ come with automated unit tests.
|
||||
The contract of functionality exposed by a library functionality needs to be documented, so it can be properly used.
|
||||
Implementation of a functionality and its documentation shall happen within the same commit(s).
|
||||
|
||||
### Coding pattern
|
||||
|
||||
Pipeline steps must not make use of return values. The pattern for sharing parameters between pipeline steps or between a pipeline step and a pipeline script is sharing values via the [`commonPipelineEnvironment`](../vars/commonPipelineEnvironment.groovy). Since there is no return value from a pipeline step the return value of a pipeline step is already `void` rather than `def`.
|
||||
|
||||
### Code Style
|
||||
The code should follow any stylistic and architectural guidelines prescribed by the project. In the absence of guidelines, mimic the styles and patterns in the existing code-base.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user