| 123456789101112131415161718192021222324 |
- pipeline {
- agent any
- stages {
- stage('Build') {
- steps {
- echo 'Building...'
- sh 'python3.7 -m poetry install --develop .'
- sh 'python3.7 -m poetry install'
- }
- }
- stage('Test') {
- steps {
- sh 'poetry run tox'
- }
- }
- stage('Deploy') {
- steps {
- echo 'Deploying....'
- sh 'ansible-playbook -i dockerbox, ansible_playbook.yaml'
- }
- }
- }
- }
|