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

URGENT - m2 release plugin couldn't recognize assembly file with parameterized name

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: m2release-plugin
    • Labels:
      None
    • Environment:
      Windows 2008 server
    • Similar Issues:

      Description

      In my POM.xml file, I am using assembly plug in. I want the build to assemble things based on the assembly file, whose name is parametrized. The build works fine. However, if I use m2 release plug in using perform release action in jenkins, the release plugin could not substitute the value for $env and pick up the assembly.xml file. I get the following exception. I have attached the log and POM file.

      Thanks!

        Attachments

        1. log
          644 kB
        2. pom.xml
          4 kB

          Activity

          Hide
          teilo James Nord added a comment -

          The maven release plugin has not been configured to pass this argument down, so this is the expected behavior.

          It is bad firm maven to make a release dependant on any environment as the build would not be easily reproducible.

          Also using env as the variable name looks iffy as environment is the qualifier in maven to direct it to resolve the variable from the process environment.

          Show
          teilo James Nord added a comment - The maven release plugin has not been configured to pass this argument down, so this is the expected behavior. It is bad firm maven to make a release dependant on any environment as the build would not be easily reproducible. Also using env as the variable name looks iffy as environment is the qualifier in maven to direct it to resolve the variable from the process environment.
          Hide
          teilo James Nord added a comment -

          Seehttp://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html

          Show
          teilo James Nord added a comment - Seehttp://maven.apache.org/maven-release/maven-release-plugin/perform-mojo.html

            People

            • Assignee:
              teilo James Nord
              Reporter:
              satom2000 Sathiyan B
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: