Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43470

mvn perform:release fails because settings using -D are ignored

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • pipeline-maven-plugin
    • None
    • Jenkins 2.32.2.7-rolling
      pipeline-maven-integration 2.0

      Settings through the command line like "-DaltDeploymentRepository," " -DaltSnapshotDeploymentRepository" and "-DaltReleaseDeploymentRepository" are ignored and the values from the pom.xml are used instead.

       

          [JENKINS-43470] mvn perform:release fails because settings using -D are ignored

          Cyrille Le Clerc added a comment - - edited

          Hello bcygan this is weird.

          Could you please try to reproduce with

          and then share the logs with us?

          Cyrille Le Clerc added a comment - - edited Hello bcygan this is weird. Could you please try to reproduce with the latest maven-release-plugin (there are bugs in the older ones) a dumb github project (maybe cloning https://github.com/cyrille-leclerc/my-spring-boot-app ) enabling "-X": "mvn -X release:prepare release:perform" and then share the logs with us?

          Cyrille Le Clerc added a comment - FYI JENKINS-43491 will help to diagnose See https://github.com/jenkinsci/pipeline-maven-plugin/pull/38

          bcygan could you please provide more details? Can you collect the maven event spy logs as described in https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-HowdoIcapturethelogfilegeneratedbytheJenkinsMavenEventSpy ?

          Cyrille Le Clerc added a comment - bcygan could you please provide more details? Can you collect the maven event spy logs as described in https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Maven+Plugin#PipelineMavenPlugin-HowdoIcapturethelogfilegeneratedbytheJenkinsMavenEventSpy ?

          bcygan added a comment -

          It's not forgotten, I just need some time to reproduce it. I don't have easy access to that environment right now.

          bcygan added a comment - It's not forgotten, I just need some time to reproduce it. I don't have easy access to that environment right now.

          Thanks bcygan

          Cyrille Le Clerc added a comment - Thanks bcygan

          bcygan can you please provide a code snippet? Do you pass these arguments as part of the "sh" command" or do you passe those in the "mavenOpts" attribute?

          Cyrille Le Clerc added a comment - bcygan can you please provide a code snippet? Do you pass these arguments as part of the "sh" command" or do you passe those in the "mavenOpts" attribute?

          Close as cannot reproduce. Please reopen an issue if the problem is still there.

          Cyrille Le Clerc added a comment - Close as cannot reproduce. Please reopen an issue if the problem is still there.

            cleclerc Cyrille Le Clerc
            bcygan bcygan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: