Skip to content
Snippets Groups Projects
Commit 777dc920 authored by Lucas Hedding's avatar Lucas Hedding Committed by Fran Garcia-Linares
Browse files

Issue #3502879 by grimreaper, heddn, fjgarlin, jonathan1055: Build task fails...

Issue #3502879 by grimreaper, heddn, fjgarlin, jonathan1055: Build task fails on project without composer.json file
parent 24c52165
No related branches found
No related tags found
1 merge request!323Edit include.drupalci.main-d7.yml
Pipeline #409040 passed
......@@ -359,8 +359,8 @@ stages:
- echo -e "\e[0Ksection_end:`date +%s`:symlink_output\r\e[0K"
# Delete the current composer.json, and then restore from backup if one was made earlier.
- |
rm $_WEB_ROOT/sites/all/modules/custom/$CI_PROJECT_NAME/composer.json
if [[ -f composer.json.backup ]]; then
rm $_WEB_ROOT/sites/all/modules/custom/$CI_PROJECT_NAME/composer.json
echo "Restoring composer.json.backup to $_WEB_ROOT/sites/all/modules/custom/$CI_PROJECT_NAME/composer.json"
mv composer.json.backup $_WEB_ROOT/sites/all/modules/custom/$CI_PROJECT_NAME/composer.json
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment