Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View Phing on the plugin site for more information.

Phing Plugin

This plugin allows you to use Phing to build PHP projects.


System Configuration

If you have multiple Phing installations, you can configure Jenkins to allow that each project will select the installation that will use.

If phing is in the path, you don't have to configure phing.

You can use environment variables in PHING_HOME like $WORKSPACE, $HOME etc.

Composer users

For composer users, if you have phing installed in $HOME/vendor/bin/phing, then specify ''$HOME/vendor/'' or ''$HOME/vendor/bin'' as PHING_HOME.

PEAR users

For PEAR users, if you have phing installed in /usr/bin/phing, then specify ''/usr'' or ''/usr/bin'' as PHING_HOME.

Do not specify "Subdirectory of extracted archive".

Project Configuration

This plugin works as other builders like Ant builder or Gant builder.


Version 0.13.2 (Mar 22, 2015)
  • sone fixes.
Version 0.13.1 (Apr 20, 2013)
  • Windows phing is broken, jenkins tries to execute phing.bat with php.exe (JENKINS-17668).
Version 0.13 (Apr 6, 2013)
  • Support Phing auto installer.
Version 0.12 (Mar 18, 2013)
Version 0.11 (Mar 19, 2012)
  • Specifying custom phing build file does not work (JENKINS-12995).
Version 0.10 (Mar 2, 2012)
  • Fixed that 'Use ModuleRoot as working directory' checkbox is not checked correctly.
Version 0.9 (Dec 21, 2011)
  • added "Use ModuleRoot as working dire 'Use ModuleRoot as working directory' checkbox is not checked correctly. ctory" checkbox on project configuration page. (JENKINS-12078)
Version 0.8 (Jun 3, 2011)
  • Jenkins
  • Fixed the description of Phing on system configuration page.
Version 0.7 (Jan. 21, 2011)
  • Support Environment variables in the "Build file" field such as "$WORKSPACE/build.xml". (JENKINS-8549)
Version 0.6.1 (Dec. 8, 2010)
  • Fixed Information of certain Phing tasks does not display in console output of the build. (JENKINS-8097)
Version 0.6 (Oct. 8, 2010)
  • Supported ConsoleNoteAnnotator.
  • Added "Executed Phing Target".
Version 0.5
  • Fixed NotSerializableException using Phing plugin with slaves. Thanks mdillon. (JENKINS-6615)
Version 0.4
Version 0.3
Version 0.2
  • Fixed NPE when no targets are specified.
Version 0.1
  • First Version


  1. Unknown User (djafaka)

    The plugin has still some display problem in the Hudson console.

    In fact when we want to configure in the Hudson console the Phing plugin, we are unable to configure the Phing installation(name, PHING_HOME directory).
    After registring the configuration in Hudson we have all the fields empty and the following messages:
    PHING_HOME is required.

    Have someone experienced this problem ?

    Thanks for the response. (smile)

  2. Unknown User (junping.lehmann-you@swisscom.com)

    Hi, I've got exactly the same problem. i.e. after configuring the "PHING_HOME" and "PHP_Command" via the Hudson console, save them. All the three fields under "Phing installation" stays empty. Could anyone help me?  Thanks a lot !

    1. Unknown User (sogabe)

      What version do you use? ver 0.3?
      I can not reprodeuce it.

      1. Unknown User (junping.lehmann-you@swisscom.com)

        Hi Seiji,  I'm very glad that you do not have the problem. I see the chance of fixing the problem, with your help, of course.

        We are using "Hudson Ver 1.215" and "phing-2.3.3".      

  3. Unknown User (brichard)


    on windows, whatever i set in Phing_Home field of Hudson configuration, it always displays me the folowing error : "C:\Zend\ZendServer\bin\PEAR doesn't look like a Phing Directory".

    Phing has been installed with pear command. I tried to set the parameter to C:\Zend\ZendServer\bin\phing.bat, C:\Zend\ZendServer\bin\PEAR or C:\Zend\ZendServer\bin\PEAR\phing but it always display the error message.



  4. Unknown User (bob999)

    Hi there,

    This problem is still evident. It's all over the net and I've spent the free time of 2 days looking for some solution without success. Can we PLEASE get some action on this and get it resolved? It obviously doesn't happen to everyone so it needs investigating carefully.

    I'm trying to set up Phing with Hudson 1.383 without success. I can't get Hudson to accept any directory in the PHING_HOME field. In my case no directory I enter that has any relation to Phing is accepted. It always reports "doesn't look like a Phing directory". I'm using a clean installation of Fedora 12. Phing is installed via PEAR. The binary is in /usr/bin/ and everything else appears to be in /usr/share/pear/phing and /var/lib/hudson/plugins/phing.

    Please advise which directory the plugin is looking for i.e. what SHOULD work. Please also let me know what else I can try or what other info. I can provide to help you sort this out.


    1. Unknown User (sogabe)

      You don't have to configure phing on system configuration screen if you install phing with PEAR.

  5. Unknown User (arzala)

    If Phing tasks are "phpdepend" and "phpcodesniffer" then this plugin neither displays names of the related targets on left panel of console output of the particular build nor displays information about those targets in console output itself. Although build works as expected.

    1. Unknown User (gigapromoters)

      Are you able to use phpdepend without any issues?

  6. Unknown User (gigapromoters)

    This should also generate interactive reports about how much time a target took and if it was successful or not. It'll be a great feature because right now checking this from 'Console output' is pain in a**

  7. Unknown User (vitaly_il)

    Is it possible to receive exit code from Phing build in Jenkins?

    If yes, how?


    TIA, Vitaly