Created
June 30, 2020 18:18
-
-
Save titenkov/944dc5f1551c1ff704f068a6bdaa9be4 to your computer and use it in GitHub Desktop.
Gradle: wait for container to be up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
task waitForAlfresco() { | |
description = 'Wait for Alfresco' | |
group = 'verification' | |
doFirst{ | |
println "Waiting for Alfresco to come up" | |
ant.waitfor( | |
maxwait: '5', maxwaitunit: 'minute', | |
checkevery: '10', checkeveryunit: 'second' | |
) { | |
socket(server: 'localhost', port: 8080) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment