Compare commits
20 Commits
messege_et
...
4a8cbf02b9
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a8cbf02b9 | |||
| 798784a163 | |||
| 86ad99de76 | |||
| 5680677865 | |||
| 886c3246af | |||
| 7b66250832 | |||
| 80b3573674 | |||
| efadd66483 | |||
| c9431063de | |||
| 15c33efc14 | |||
| 5257901e75 | |||
| b3294a823e | |||
| 2a182830a6 | |||
| 14631c3744 | |||
| f0894bb66f | |||
| 75285a140a | |||
| 3cc8e292b3 | |||
| 34d1464391 | |||
| 6c12131fab | |||
| 19e4675f32 |
32
Jenkinsfile
vendored
Normal file
32
Jenkinsfile
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
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"
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user