Commit e6278391 by François C.

deploiement minor change

parent eab9fccb
Pipeline #3145 failed with stage
in 1 minute 5 seconds
#!/bin/bash
# $1 : project name
# $2 : prod or preprod (only preprod is supported for now)
# $2 : instance (prod not supported for now)
ci_dir="/home/django/third-party/scripts/src"
ci_data_dir="/home/django/third-party/scripts/data"
......@@ -26,4 +26,6 @@ echo "START PROCESS" "${1}" "${2}" "${repo}" "${now}"
update_code "${1}" "${2}" "${repo}" "${now}" || exit 1
echo "DONE"
python3 "${ci_dir}/send_mail.py" "${ci_data_dir}/ci_diff_third-party_${now}.txt" "${ci_data_dir}/ci_diff_Odoo_${now}.txt" "${1}"
\ No newline at end of file
if [[ "${2}" == "preprod" ]]; then
python3 "${ci_dir}/send_mail.py" "${ci_data_dir}/ci_diff_third-party_${now}.txt" "${ci_data_dir}/ci_diff_Odoo_${now}.txt" "${1}"
fi
......@@ -6,7 +6,7 @@ def is_coop_supported(coop):
def is_instance_supported(instance):
return instance == "preprod"# or instance == "prod" ; only preprod is allowed for the moment
return instance == "preprod" or instance == "test" or instance == "dev"
def get_mail(coop):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment