31 lines
388 B
Groovy
31 lines
388 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
stages {
|
|
stage('sync') {
|
|
steps {
|
|
script {
|
|
sh 'git pull'
|
|
sh 'git checkout develop'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('migration') {
|
|
steps {
|
|
script {
|
|
sh 'pipenv run makemigrations'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('build') {
|
|
steps {
|
|
script {
|
|
sh 'cd django_lostplaces'
|
|
sh 'python setup.py bdist_wheel --universal'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |