How to build Drupal project

4 views
Skip to first unread message

Alessio Frabotta

unread,
Sep 19, 2018, 1:18:53 AM9/19/18
to Jenkins Users
On my ubuntu machine I want to copy drupal to the public_html folder of my apache installation.
On jenkins I have the following configuration:

#!/bin/bash


echo
""
echo
"Switching to project docroot."
cd
/var/www/html/example.com/public_html
echo
""
echo
"Pulling down the latest code."
git pull origin master
echo
""
echo
"Clearing drush caches."
drush cache
-clear drush
echo
""
echo
"Running database updates."
drush updb
-y
echo
""
echo
"Importing configuration."
drush config
-import -y
echo
""
echo
"Clearing caches."
drush cr
echo
""
echo
"Deployment complete."

When I launch the build on Jenkins I get the following error:

Pulling down the latest code.
fatal: Not a git repository (or any of the parent directories): .git

What operations should I do to resolve this error?

Reply all
Reply to author
Forward
0 new messages