+ return "http://${http_server_ip}:${port}/"
+}
+
+def check_status_http_server(ip, port) {
+ alive = false
+ timeout(time: 1, unit: 'MINUTES') {
+ while (!alive) {
+ output = sh(
+ returnStatus: true,
+ script: "wget http://${ip}:${port}/release/dists/unstable/Release")
+ alive = (output == 0)
+ if (!alive) {
+ sleep(time: 5, unit: 'SECONDS')
+ }
+ }
+ }
+ println('HTTP server is ready and accepting http connections')
+ return