Jenkins shared library for use with pipeline-as-code
Jenkins shared library for use with pipeline-as-code. You can use (parts of) this library in you Jenkinsfile
.
Constants.groovy
file and supply your specific configuration parameters (e.g. GitLab url, SonarQube url).pipeline-library
.Jenkinsfile
:
@Library('pipeline-library')
import politie.jenkins.*
def builder = new JenkinsPipelineBootstrap().createBuilder()
String serviceName = 'my-service'
String gitBranch = 'master'
builder.mavenApplicationPipeline(serviceName, gitBranch)
Note: if you just want to take advantage of our custom step definitions, take a look at JenkinsPipelineSteps.groovy