Phing Issues

319 views
Skip to first unread message

Carl Parrish

unread,
May 31, 2011, 8:33:48 PM5/31/11
to Jenkins Users
https://issues.jenkins-ci.org/browse/JENKINS-8549
This bug is listed as being closed, but I think I'm seeing the same
results. I'm using the phing plugin version 0.7.
When I try to explicitly set the PHING_HOME I get the same issues
listed here. http://wiki.hudson-ci.org/display/HUDSON/Phing+Plugin.
Namely that '/usr/local/zend/bin/php doesn't exists.' or /usr/local/
zend/share/pear/phing doesn't look like a Phing Directory. Anyone have
any insight as to what I'm doing wrong?

Seiji Sogabe

unread,
Jun 1, 2011, 6:34:37 AM6/1/11
to jenkins...@googlegroups.com
Hi,

If your phing is in path, you don't have to configure Phing
configuration on System configuration page,
By default, Phing Plugin uses phing in your path.

Thanks,
Seiji Sogabe

Carl Parrish

unread,
Jun 1, 2011, 7:55:48 PM6/1/11
to jenkins...@googlegroups.com
Seiji,
Phing is in the path how ever I get the following error message.

looking for '/var/lib/jenkins/jobs/cparrish/workspace/cparrish/trunk/build.xml' ... 
[trunk] $ phing -buildfile build.xml phpDoc -logger phing.listener.DefaultLogger
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Phing installations?
java.io.IOException: Cannot run program "phing" (in directory "/var/lib/jenkins/jobs/cparrish/workspace/cparrish/trunk"): java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:475)
at hudson.Proc$LocalProc.<init>(Proc.java:244)
at hudson.Proc$LocalProc.<init>(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:698)
at hudson.Launcher$ProcStarter.start(Launcher.java:329)
at hudson.Launcher$ProcStarter.join(Launcher.java:336)
at hudson.plugins.phing.PhingBuilder.perform(PhingBuilder.java:156)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:662)
at hudson.model.Build$RunnerImpl.build(Build.java:177)
at hudson.model.Build$RunnerImpl.doRun(Build.java:139)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:429)
at hudson.model.Run.run(Run.java:1374)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(UNIXProcess.java:164)
at java.lang.ProcessImpl.start(ProcessImpl.java:81)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:468)
... 15 more
[CHECKSTYLE] Skipping publisher since build result is FAILURE
[DRY] Skipping publisher since build result is FAILURE
Recording fingerprints
From the command line I'm able to run 'phing -buildfile build.xml phpDoc -logger phing.listener.DefaultLogger' as myself and as jenkins (when I give it a shell to run in)
--
PCL Design & Consulting Inc.
60 Rio Salado Parkway Suite 900
Tempe AZ 85281
http://www.pcl-consulting.com

Carl Parrish

unread,
Jun 2, 2011, 12:22:49 PM6/2/11
to jenkins...@googlegroups.com
I'm starting to think this may have been a selinux issue. I created a symbol link in /usr/bin to phing and now everything works.

Unnikrishnan B

unread,
Jul 7, 2016, 9:14:45 AM7/7/16
to Jenkins Users
I am also facing the same issue, I can access ping in command line also I am using the same use to run junkins.

Unnikrishnan B

unread,
Jul 7, 2016, 10:14:52 AM7/7/16
to Jenkins Users
From the following error message

Caused by: java.io.IOException: error=2, No such file or directory
    at java.lang.UNIXProcess.forkAndExec(Native Method)
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:248)
    at java.lang.ProcessImpl.start(ProcessImpl.java:134)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)


It seems like ProcessBuilder doesn't use the env variable PATH, so it can't find phing

What I did is I removed Invoke Phing targets and added the Build as Execute Shell, and in Command I added /usr/local/bin/phing. and that is working for me.
Reply all
Reply to author
Forward
0 new messages