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

          bcygan created issue -
          bcygan made changes -
          Description Original: Settings through the command line like "-DaltDeploymentRepository," " -- DaltSnapshotDeploymentRepository" and "-DaltReleaseDeploymentRepository" are ignored and the values from the pom.xml are used instead.

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

           

          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 made changes -
          Assignee Original: Alvaro Lobato [ alobato ] New: Cyrille Le Clerc [ cleclerc ]

          Cyrille Le Clerc added a comment - FYI JENKINS-43491 will help to diagnose See https://github.com/jenkinsci/pipeline-maven-plugin/pull/38
          Cyrille Le Clerc made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          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
          Cyrille Le Clerc made changes -
          Link New: This issue is related to JENKINS-45335 [ JENKINS-45335 ]

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

              Created:
              Updated:
              Resolved: