I get the following error output while running the Maven release plugin prepare step i.e. mvn release:prepare --batch-mode -DreleaseVersion=1.1.2 -DdevelopmentVersion=
I am using a Jenkins Team Project with a Multibranch Project Setup.
I previously used checkout scm command.
Now I am using the following code:
checkout([
$class: 'GitSCM',
branches: scm.branches,
extensions: scm.extensions + [[$class: 'CleanCheckout'], [$class: 'LocalBranch', localBranch: 'new']],
userRemoteConfigs: scm.userRemoteConfigs
])