Update Jenkinsfile

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

27
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 { {
sh 'python app.py &' steps {
sh 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'
} }
} }