If the root path contains spaces, it won't work.
phing-drupal > make:
[delete] Directory /opt/jenkins/.jenkins/jobs/Company Intranet/workspace/www does not exist or is not a directory.
[echo] /opt/jenkins/.jenkins/jobs/Company Intranet/workspace/build-companyintranet.make
[reflexive] Applying reflexive processing to 3 files.
[drush] Executing 'drush --nocolor --root=/opt/jenkins/.jenkins/jobs/Company Intranet/workspace/www --yes make /opt/jenkins/.jenkins/jobs/Company Intranet/workspace/build-companyintranet.make www'...
The drush command 'Intranet/workspace/www make [error]
/opt/jenkins/.jenkins/jobs/Company
Intranet/workspace/build-companyintranet.make www' could not be found.
Run `drush cache-clear drush` to clear the commandfile cache if you have installed new extensions.
A Drupal installation directory could not be found [error]
Execution of target "make" failed for the following reason: /home/jenkins/.jenkins/jobs/Company Intranet/workspace/build/build.xml:908:8: /home/jenkins/.jenkins/jobs/Company Intranet/workspace/build/build.xml:933:12: /home/jenkins/.jenkins/jobs/Company Intranet/workspace/build/build.xml:963:34: Drush exited with code 1
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 2418619.patch | 635 bytes | pol |
| #4 | 2418619.patch | 371 bytes | pol |
| #3 | 2418619.patch | 371 bytes | pol |
Comments
Comment #1
pbuyle commentedIn
DrushOption::toString(), the value of the option should be escaped withescapeshellarg().Comment #2
polVoila.
Comment #3
polComment #4
polThis is the good patch.
Comment #5
polComment #6
polI finally confirm that it works with the patch.
Here is the build.xml example file that I used:
Comment #7
polComment #9
pfrenssen