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

Alternate settings file cannot be located

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • maven-plugin
    • None
    • Platform: PC, OS: Linux

    Description

      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').

      Attachments

        Issue Links

          Activity

            pleursoft 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 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 pleursoft added a comment -

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

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

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

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: