pipeline { agent any stages { stage ( 'checkout' ) { steps { 'echo "Debut du pipeline"' checkout scm } } stage ( 'Deploiement' ) { when { branch 'main' } steps { sh ''' cd /jenkins_test/ && python3 -m venv venv source venv/bin/activate pip install -r requirements.txt python manage.py makemigrations python manage.py migrate echo "Deploiement reussi" ''' } } } }