Jenkinsfile 619 B

12345678910111213141516171819202122232425
  1. pipeline {
  2. agent any
  3. stages {
  4. stage('Build') {
  5. steps {
  6. echo 'Building...'
  7. sh 'python3.7 -m poetry install --develop .'
  8. sh 'python3.7 -m poetry install'
  9. }
  10. }
  11. stage('Test') {
  12. steps {
  13. echo 'Testing...'
  14. sh 'PYTHONDONTWRITEBYTECODE=1 python3.7 -m poetry run tox'
  15. }
  16. }
  17. stage('Deploy') {
  18. steps {
  19. echo 'Deploying....'
  20. sh 'ansible-playbook -i dockerbox, ansible_playbook.yaml'
  21. }
  22. }
  23. }
  24. }