reload/phing-drupal-template — Issue #6: Impossible to build Drupal using Drush Make
Author: Polzme
Created: 2012-01-03 19:25:10+00:00
State: open

Hello,

I'm trying to setup a new Drupal project using your template and it seems that building Drupal with Drush make is not working.

I tried to put the makefile at differents places and it's still not working.
Here is the jenkins log:

```
Started by user anonymous
Checkout:workspace / /var/lib/jenkins/jobs/Drupal/workspace - hudson.remoting.LocalChannel@12c734c
Using strategy: Default
Last Built Revision: Revision e6a6293fae4a6b3d86e27b024e4e354638c2ce02 (origin/HEAD, origin/master)
Checkout:workspace / /var/lib/jenkins/jobs/Drupal/workspace - hudson.remoting.LocalChannel@12c734c
Fetching changes from 1 remote Git repository
Fetching upstream changes from git://localhost/myrepo
Seen branch in repository origin/HEAD
Seen branch in repository origin/master
Commencing build of Revision 80211da165b76d1e7d2d3db5e0ecd8cc659460f8 (origin/HEAD, origin/master)
Checking out Revision 80211da165b76d1e7d2d3db5e0ecd8cc659460f8 (origin/HEAD, origin/master)
Warning : There are multiple branch changesets here
looking for '/var/lib/jenkins/jobs/Drupal/workspace/build/build.xml' ...
[build] $ phing -buildfile build.xml -logger phing.listener.DefaultLogger
Buildfile: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml

phing-drupal > load-properties:

[php] Calling PHP function: dirname()
[property] Loading /var/lib/jenkins/jobs/Drupal/workspace/build/build.default.properties
[property] Loading /var/lib/jenkins/jobs/Drupal/workspace/build/build.properties

phing-drupal > setup-dirs:

phing-drupal > setup-phing-drush:

[phingcall] Calling Buildfile '/var/lib/jenkins/jobs/Drupal/workspace/build/build.xml' with target 'setup-git-repo'

phing-drupal > setup-git-repo:

phing-drupal > make:

[drush] Executing 'drush --nocolor --root=/var/lib/jenkins/jobs/Drupal/workspace/build/lesite --yes make d7.make lesite'...
The drush command 'make d7.make lesite' could not be found. [error]
The directory /var/lib/jenkins/jobs/Drupal/workspace/build/lesite [error]
does not contain a valid Drupal installation
[if] Error in IfTask
[if] Error in IfTask
Execution of target "make" failed for the following reason: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:912:8: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:924:12: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:956:34: Drush exited with code 1

BUILD FAILED
/var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:912:8: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:924:12: /var/lib/jenkins/jobs/Drupal/workspace/build/build.xml:956:34: Drush exited with code 1
Total time: 12.6521 seconds

Build step 'Invoke Phing targets' marked build as failure
[CHECKSTYLE] Skipping publisher since build result is FAILURE
[PMD] Skipping publisher since build result is FAILURE
[DRY] Skipping publisher since build result is FAILURE
[ANALYSIS-COLLECTOR] Skipping publisher since build result is FAILURE
Recording plot data
Recording test results
Finished: FAILURE
```

I can build Drupal using the command line:

```
linux@qs10:~/myrepo$ cd /var/lib/jenkins/jobs/Drupal/workspace/build

linux@qs10:/var/lib/jenkins/jobs/Drupal/workspace/build$ ls
build build.default.properties build.properties build.xml d7.make site

quickstart@qs10:/var/lib/jenkins/jobs/Drupal/workspace/build$ drush --nocolor --root=/var/lib/jenkins/jobs/Drupal/workspace/build/lesite --yes make d7.make lesite
Project information for drupal retrieved. [ok]
Project information for ctools retrieved. [ok]
Project information for devel retrieved. [ok]
Project information for ds retrieved. [ok]
Project information for features retrieved. [ok]
...
```
I tried to find the problem but I can't... maybe it's too late, I don't know but if you could help it would be great :-)