Hey Sami, So here is my system config
Home Directory :: /Users/Shared/Jenkins/Home Under Global Properties Tool locations for Ant as follows: /usr/local/apache-ant-1.8.2 JDK installations :: /Library/Java/Home Git installations :: git Ant installations :: /usr/local/apache-ant-1.8.2 SSH Server set to random No password SSH private key and I have a Github web hook set up that verifies perfectly. With all of the above I am still getting the following: Started by an SCM change Building in workspace /Users/Shared/Jenkins/Home/jobs/SocorroCSS/workspace Checkout:workspace / /Users/Shared/Jenkins/Home/jobs/SocorroCSS/workspace - hudson.remoting.LocalChannel@6a5d5a2c Using strategy: Default Checkout:workspace / /Users/Shared/Jenkins/Home/jobs/SocorroCSS/workspace - hudson.remoting.LocalChannel@6a5d5a2c Fetching changes from 1 remote Git repository Fetching upstream changes from /Users/sneethling/mozilla/projects/socorro/ Commencing build of Revision 6da056d198dfb68c68c97234aaf7da54e28be622 (origin/add-csslint-ant-task) Checking out Revision 6da056d198dfb68c68c97234aaf7da54e28be622 (origin/add-csslint-ant-task) No change to record in branch origin/add-csslint-ant-task [workspace] $ ant csslint Buildfile: /Users/Shared/Jenkins/Home/jobs/SocorroCSS/workspace/build.xml csslint: BUILD FAILED /Users/Shared/Jenkins/Home/jobs/SocorroCSS/workspace/build.xml:9: Execute failed: java.io.IOException: Cannot run program "csslint": error=2, No such file or directory Thanks, Schalk ----- Original Message ----- From: "Sami Tikka" <sjti...@gmail.com> To: jenkinsci-users@googlegroups.com Sent: Sunday, March 11, 2012 12:56:23 AM Subject: Re: Execution context from within an jenkins build Did you configure ant location in the Manage Jenkins / Configure System / Tool locations? -- Sami Schalk Neethling <sneethl...@mozilla.com> kirjoitti 10.3.2012 kello 22.12: > Hey all, > > Quick question regarding ant and Jenkins. So, I am getting the following > error : "Execute failed: java.io.IOException: Cannot run program" at the > first step in my Ant build step. When I run the same Ant target via the > terminal as the jenkins user it executes without a problem. This leads me to > believe that there is a difference between running Ant directly via the > terminal and running Ant from within a Jenkins build. > > What is different between executing from the terminal directly and having the > Ant target executed from a jenkins build? Is there some config I might be > missing? > > Thanks, > Schalk