1

I require php extension of cruisecontrol which I want to use for code quality analysis upon jenkins build.

How can I achieve this?

If in case this cannot be achieved then what can be other possible way by which I can carry code quality analysis compatible to cruisecontrol on my jenkins build (analysis that includes codesniffer, pmd, psr-1, psr-2).

G. Ann - SonarSource Team
  • 21,458
  • 4
  • 36
  • 65
YATIN GUPTA
  • 807
  • 8
  • 16

1 Answers1

0

As seen here, you can use phpcs (code sniffer).

See jenkins-php.org for a complete list of php ant task.
Those ant tasks can be run within a maven pom.xml as seen in this example, using the maven-antrun-plugin.

The idea remain: if you can script it or integrate it to maven, and run it from command line, then it is trivial to make the same call from a Jenkins job.
Test the script or ant or maven call of those php analysis tools locally first.
Then create a Jenkins job.

VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755