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

Cannot relativize '...' relatively to '...' in pipeline maven plugin 3.0.1

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Hi,

      I'm using pipeline-maven-plugin 3.0.1, with Jenkins (CLI I think) 2.85. For Freestyle jobs, when using Invoke top-level Maven targets, it's successful without any error/issue came up. However, when using withMaven in Declarative Pipeline, the issue of java.lang.IllegalArgumentException: Cannot relativize 'path' relatively to 'another_path' occurred. 

      I tried to use either -f 'path_to_pom.xml_file'**, or dir("${WORKSPACE}"), the issue was resolved in release:prepare step. Then in release:perform step, the artifacts/packages were uploaded to Nexus, and the build was successful, but the errors still occurred.

        Attachments

          Issue Links

            Activity

            nhocvipnhat123 Nhan Hoang Nguyen created issue -
            nhocvipnhat123 Nhan Hoang Nguyen made changes -
            Field Original Value New Value
            Description Hi,

            I'm using pipeline-maven-plugin 3.0.1, with Jenkins (CLI I think) 2.85. For Freestyle jobs, when using *Invoker top-level Maven targets*, it's successful without any error/issue came up. However, when using withMaven in Declarative Pipeline, the issue of java.lang.IllegalArgumentException: Cannot relativize 'path' relatively to 'another_path' occurred. 

            I tried to use either _-f 'path_to_pom.xml_file'**_, or _dir("${WORKSPACE}")_, the issue was resolved in release:prepare step. Then in release:perform step, the artifacts/packages were uploaded to Nexus, and the build was successful, but the errors still occurred.
            Hi,

            I'm using pipeline-maven-plugin 3.0.1, with Jenkins (CLI I think) 2.85. For Freestyle jobs, when using *Invoke top-level Maven targets*, it's successful without any error/issue came up. However, when using withMaven in Declarative Pipeline, the issue of java.lang.IllegalArgumentException: Cannot relativize 'path' relatively to 'another_path' occurred. 

            I tried to use either _-f 'path_to_pom.xml_file'**_, or _dir("${WORKSPACE}")_, the issue was resolved in release:prepare step. Then in release:perform step, the artifacts/packages were uploaded to Nexus, and the build was successful, but the errors still occurred.
            aheritier Arnaud Héritier made changes -
            Link This issue relates to JENKINS-46084 [ JENKINS-46084 ]
            aheritier Arnaud Héritier made changes -
            Assignee Arnaud Héritier [ aheritier ]

              People

              Assignee:
              aheritier Arnaud Héritier
              Reporter:
              nhocvipnhat123 Nhan Hoang Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: