From 52f9df8b2acc46def52c267fb2982fce618795b9 Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 10 Jul 2021 13:22:11 +0200 Subject: [PATCH] Jenkinsfile to build a snapshot --- Jenkinsfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..44dadca --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,21 @@ +pipeline { + agent any + + stages { + stage('sync') { + steps { + sh 'git pull' + sh 'git checkout develop' + } + } + + stage('migration') { + sh 'pipenv run makemigrations' + } + + stage('build') { + sh 'cd django_lostplaces' + sh 'python setup.py bdist_wheel --universal' + } + } +} \ No newline at end of file