Update Jenkinsfile
This commit is contained in:
parent
95e99f1c1d
commit
547c27e564
1 changed files with 12 additions and 15 deletions
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
|
@ -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'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue