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

path problem when running as a service

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • ant-plugin
    • None
    • Platform: PC, OS: All

      Hi,

      env : Windows Server 2003, SP 2, Java 1.5 mvn 2.0.9 ant. 1.6.5
      hudson is runnig as a service under my account not as a local system

      I expecience this problem.
      During maven execution invoking ANT script which want to read env.path variable.

      Works fine when hudson not running as a service.

      wrap.build.xml source

      <if>
      <os family="windows" />
      <then>
      <property name="envpath" value="${env.Path}" />
      <echo>PATH : ${envpath}</echo>
      <echo>PATH : ${env.Path}</echo>
      <echo>PATH : ${env.PATH}</echo>

      execution

      [INFO] [wrap:wrap

      {execution: wrap}

      ]
      wrap:
      [echo] !!!!!!!!!!!!!!!!!!aaaa
      [echo] Wrapping PL/SQL for project "Planning Engine DBServer"
      [mkdir] Created dir: C:\hudson\hm\jobs\PE-sn\workspace\db-
      server\target\generated-sources\wrap
      [copy] Copied 31 empty directories to 24 empty directories under
      C:\hudson\hm\jobs\PE-sn\workspace\db-server\target\generated-sources\wrap
      [echo] PATH : c:\Java\jdk1.5.0_16\bin;C:\oracle\product\10.2.0\db_1
      \bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
      Files\Perforce\;c:\Program Files\ATI Technologies\ATI.ACE\;c:\apache-maven-2.0.9
      \bin;c:\apache-ant-1.6.5\bin;c:\Java\jdk1.5.0_16\bin
      [echo] PATH : c:\Java\jdk1.5.0_16\bin;C:\oracle\product\10.2.0\db_1
      \bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
      Files\Perforce\;c:\Program Files\ATI Technologies\ATI.ACE\;c:\apache-maven-2.0.9
      \bin;c:\apache-ant-1.6.5\bin;c:\Java\jdk1.5.0_16\bin

      when running as a service :

      wrap:
      [echo] !!!!!!!!!!!!!!!!!!aaaa
      [echo] Wrapping PL/SQL for project "Planning Engine DBServer"
      [mkdir] Created dir: C:\hudson\hm\jobs\PE-sn\workspace\db-
      server\target\generated-sources\wrap
      [copy] Copied 31 empty directories to 24 empty directories under
      C:\hudson\hm\jobs\PE-sn\workspace\db-server\target\generated-sources\wrap
      [echo] PATH : ${env.Path}
      [echo] PATH : ${env.Path}
      [echo] PATH : ${env.PATH}
      [echo] File to execute : ${env.Path}/sqlplus.exe

      Is this an hudson issue or win environment ?

      Thanks guys

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

              Created:
              Updated: