Missing folders from a PHP project in the Hudson release

I had a problem running a PHP project on a Hudson Continuous Integration server. After creating the PHP project, I checked the archived output of the assembly, and some folders were missing. I checked the SVN repository and all the folders that were not in the Hudson output were present in the SVN repository. Can anyone explain why this happened?

Detailed steps

  • I chose free style build
  • Configurable SCM. I use SVN as the source code repository.
  • At the build stage, I did not call ant or phing
  • Proven and configured archive artifact option for PHP

When I try to call ant or phing , it returns an error message stating that there is no build.xml file in the workspace.

I want to know about the relationship between the build.xml file and the build of a PHP project in Hudson?

+4
source share
1 answer

Ant and Phing require build.xml , which defines the rules and actions that are executed when Hudson "builds" the project. For a PHP project, it can be unit tests (using PHPUnit), style / syntax reports (PHP_Codesniffer), or creating PHPDoc.

The Jenkins Jobs template for PHP projects contains an example of how to configure Ant in Jenkins (much like Hudson), using build.xml and some targets required.

Look at the console output for the SVN issue. Also take a look at the Hudson workspace.

0
source

Source: https://habr.com/ru/post/1381484/


All Articles