Prise en charge de la photo de profil
All checks were successful
Organisation/sirh/pipeline/head This commit looks good

This commit is contained in:
2026-05-06 11:19:30 +00:00
parent f0e8b025a4
commit 34a261a4af
2 changed files with 9 additions and 16 deletions

7
Jenkinsfile vendored
View File

@@ -29,12 +29,17 @@ pipeline
sh '''
cd /var/www/sirh
echo $SUDO_PASSWORD | sudo -S chown -R jenkins:jenkins /var/www/sirh
git pull origin main
git fetch origin main
git reset --hard origin/main
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
python manage.py makemigrations
python manage.py migrate
echo $SUDO_PASSWORD | sudo -S chown -R www-data:www-data /var/www/sirh
echo "Deploiement reussi"
echo $SUDO_PASSWORD | sudo -S supervisorctl restart sirh