Files
sirh/Jenkinsfile
Soriba SYLLA 798784a163
Some checks are pending
Organisation/sirh/pipeline/pr-main Build queued...
Organisation/sirh/pipeline/head This commit looks good
pipeline 5
2026-04-30 15:21:02 +00:00

32 lines
793 B
Groovy

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