• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: PC, OS: Linux

      When alternate settings.xml files are located in the workspace, they should be
      referable via the 'Alternate settings file' options. However when we enter the
      path as: "sccm-conf/sccm-conf/settings-snapshot.xml" we get a message that this
      file cannot be found.
      When we do a run we get a message:
      "sccm/var/db/hudson/jobs/SCCM-demo-applicatie/workspace/trunk/sccm-conf/sccm-conf/settings-snapshot.xml"
      which is indeed the wrong path. The 'trunk' part should not be there.
      This seems to be inherited from the SVN URL that we use (we checkout 2 projects
      and the first one ends in 'trunk').

          [JENKINS-4938] Alternate settings file cannot be located

          pleursoft added a comment -

          Trying to alter the location of the settings.xml by adding ../ in front results
          in
          "/sccm/var/db/hudson/jobs/SCCM-demo-applicatie/workspace/../sccm-conf/sccm-conf/settings-snapshot.xml"
          (basically, Hudson is also removing the 'trunk' part and the '..' of the path is
          added as well).
          Add "../workspace/" adds 'trunk' again so this seems like a cycle we cannot break.

          pleursoft added a comment - Trying to alter the location of the settings.xml by adding ../ in front results in "/sccm/var/db/hudson/jobs/SCCM-demo-applicatie/workspace/../sccm-conf/sccm-conf/settings-snapshot.xml" (basically, Hudson is also removing the 'trunk' part and the '..' of the path is added as well). Add "../workspace/" adds 'trunk' again so this seems like a cycle we cannot break.

          pleursoft added a comment -

          Using '-s ${WORKSPACE}/sccm-conf/sccm-conf/settings-snapshot.xml' as a Maven
          option works.

          pleursoft added a comment - Using '-s ${WORKSPACE}/sccm-conf/sccm-conf/settings-snapshot.xml' as a Maven option works.

          pleursoft added a comment -

          Duplicate of #4693 (how can the submitted correct this??)

          pleursoft added a comment - Duplicate of #4693 (how can the submitted correct this??)

            Unassigned Unassigned
            pleursoft pleursoft
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: