%PATH% mismatch - from job to actual path | for the C:\Git\cmd;C:\Git\bin;C:\Git\usr\bin;

18 views
Skip to first unread message

LnT

unread,
Sep 5, 2017, 8:20:58 AM9/5/17
to Jenkins Users
Hi ,

in my Jenkins master machine - out of the command prompt is like below

C:\Documents and Settings\adm_jenkins>path
PATH=C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath;C
:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python27;C:\Python27\S
cripts;C:\Python27\Lib;C:\apache-maven-3.3.3\bin;;C:\Git\cmd;C:\Git\bin;C:\Git\usr\bin;


Where as same command is executed in Jenkins - console output is

Started by user LnT
Building in workspace C:\Documents and Settings\jenkins\.jenkins\workspace\Setup
[Setup] $ cmd /c call C:\DOCUME~1\ADM_JE~1\LOCALS~1\Temp\jenkins6225536741578519895.bat

C:\Documents and Settings\jenkins\.jenkins\workspace\Setup>path
PATH=C:\Documents and Settings\All Users\Application Data\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\msysgit\msysgit\cmd;C:\msysgit\msysgit\bin;c:\Python27;C:\Python27\Scripts;C:\Python27\Lib;C:\apache-maven-3.3.3\bin;C:\msysgit\msysgit\bin;

C:\Documents and Settings\adm_jenkins\.jenkins\workspace\Setup>exit 0
Finished: SUCCESS


Issue is : I have updated C:\Git\cmd;C:\Git\bin;C:\Git\usr\bin; in machine %PATH% this is not being taken from Jenkins job

Please help

Regards,
LnT

Victor Martinez

unread,
Sep 5, 2017, 9:38:06 AM9/5/17
to Jenkins Users
off the top of my head, did you restart the Jenkins service to pick up the new environment variable changes?

LnT

unread,
Sep 7, 2017, 1:22:14 PM9/7/17
to jenkins...@googlegroups.com
Msdos prompt had to close and reopened for Jenkins restart

On Sep 5, 2017 7:08 PM, "Victor Martinez" <victormar...@gmail.com> wrote:
off the top of my head, did you restart the Jenkins service to pick up the new environment variable changes?

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/J-6lEEnN9JU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5adc6e3e-c128-4677-938b-2b2dd693e380%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages