From 547c27e5647fb87edd655185a817cea982c6394e Mon Sep 17 00:00:00 2001 From: devops Date: Mon, 15 Dec 2025 17:39:15 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) 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' } }