github.com/jaylevin/jenkins-library@v1.230.4/documentation/docs/stages/examples.md (about) 1 # Example Configurations 2 3 This page shows you some pipeline configuration examples. 4 5 As `Jenkinsfile` only following code is required: 6 7 ``` 8 @Library('piper-lib') _ 9 10 piperPipeline script: this 11 ``` 12 13 ## Pure Pull-Request Voting 14 15 .pipeline/config.yml: 16 17 ``` YAML 18 general: 19 buildTool: 'npm' 20 ``` 21 22 ## Using custom defaults 23 24 It is possible to use custom defaults as indicated on the section about [Configuration](../configuration.md). 25 26 In order to use a custom defaults only a simple extension to the `Jenkinsfile` is required: 27 28 ``` 29 @Library(['piper-lib-os', 'myCustomLibrary']) _ 30 31 piperPipeline script: this, customDefaults: ['myCustomDefaults.yml'] 32 ``` 33 34 ## more examples to come