This repository provides an example of deploying Maven-based projects using Jenkins.
To import and use this shared library in your Jenkins pipeline:
@Library('jenkins-pipeline') _
MvnPipeline(
branch: 'master',
gitUrl: 'git url',
type: 'mvn',
deployType: '',
email: '',
serverPort: '8080',
developmentServer: 'server1',
stagingServer: 'server2',
productionServer: 'server3',
appName: '',
deployInDev: true,
deployInStage: false,
deployInProduction: false
)