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

Wrongly set user.home system property for multi-config build tasks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • matrix-project-plugin
    • windows slave, jenkins v1.477

      I have created a sample matrix job with following details to reproduce the problem.

      • Configuration Matrix section contains "Slave" axes with couple of windows slave nodes selected. The job should run once on ALL of the configured slave nodes.
      • Build section runs an ant file with following content,
        <project default='run'>
          <target name='run'>
            <echo message='${user.home}'/>
          </target>
        </project>
        

      On running this job I get user.home printed as %HOMESHARE%

      run:
           [echo] %HOMESHARE%
      

      This is creating problem because I want to create a config-distribution task as matrix job which runs on all my windows slaves. The config distribution in my case needs to install (copy) few files to the actual user.home for other (non-matrix) jobs to access.

            Unassigned Unassigned
            ankurbadola Ankur Badola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: