-
Bug
-
Resolution: Unresolved
-
Major
-
maven-pipeline-plugin 2.5
This doesn't work:
withCredentials([string(credentialsId: 'mvnrepo-keystore-pass', variable: 'JENKINSPASS')]) { withMaven( mavenOpts: '-Djavax.net.ssl.keyStore=effaced.p12 -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStorePassword=${JENKINSPASS}', mavenSettingsConfig: 'my-maven-settings') { sh 'mvn help:effective-settings -U' } }
This does work:
withCredentials([string(credentialsId: 'mvnrepo-keystore-pass', variable: 'JENKINSPASS')]) { withMaven( mavenSettingsConfig: 'my-maven-settings') { sh 'MAVEN_OPTS="-Djavax.net.ssl.keyStore=effaced.p12 -Djavax.net.ssl.keyStoreType=pkcs12 -Djavax.net.ssl.keyStorePassword=${JENKINSPASS}" mvn help:effective-settings -U' } }
- is related to
-
JENKINS-43470 mvn perform:release fails because settings using -D are ignored
- Closed