Some checks failed
Organisation/sirh/pipeline/pr-main There was a failure building this commit
24 lines
626 B
Groovy
24 lines
626 B
Groovy
pipeline
|
|
{
|
|
agent any
|
|
|
|
stages
|
|
{
|
|
stage ( 'checkout' ){ steps {sh 'echo "Debut du pipeline"' } }
|
|
stage ( 'checkout' ){ steps { 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"
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
} |