Update spring jenkins module

This commit is contained in:
Dassi Orleando 2017-12-13 04:59:11 +01:00
parent 9eb7a54316
commit c194284ddd
1 changed files with 0 additions and 5 deletions

View File

@ -75,13 +75,8 @@ node {
withEnv(['JENKINS_NODE_COOKIE=dontkill']) { withEnv(['JENKINS_NODE_COOKIE=dontkill']) {
if (isUnix()) { if (isUnix()) {
sh 'nohup ./mvnw spring-boot:run -Dserver.port=8989 &' sh 'nohup ./mvnw spring-boot:run -Dserver.port=8989 &'
sh "while ! httping -qc1 http://localhost:8989 ; do sleep 1 ; done"
sh "curl http://localhost:8989"
} else { } else {
bat 'start ./mvnw.cmd spring-boot:run -Dserver.port=8989' bat 'start ./mvnw.cmd spring-boot:run -Dserver.port=8989'
// Here we need to check(loop) if localhost:8989 is up
// Once it's we continue de script
bat "curl.exe http://localhost:8989"
} }
} }
} }