diff --git a/Jenkinsfile b/Jenkinsfile index 3e11acb..726ecc5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,22 +23,19 @@ pipeline { sh 'echo Docker Push Image......' } } - - stage('Run-and-test') { - steps { - sh 'python app.py &' - sh + parallel { + stage('Run-and-test') + { + steps { + sh 'gunicorn --bind 0.0.0.0:3001 app:app' + } } + stage('Integration Testing') { + steps { + sh "sleep 10s" + sh 'curl localhost:3001' + } + } } - - stage('Integration Testing') { - steps { - sh "sleep 10s" - sh 'echo Testing using cURL commands......' - } - } - } - tools { - maven 'M398' } }