Update Jenkinsfile

This commit is contained in:
Benjamin Tan 2025-12-15 17:39:15 +00:00
parent 95e99f1c1d
commit 547c27e564

13
Jenkinsfile vendored
View file

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