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
topdir="${WORKSPACE}/rpmbuild" | |
rpmdir="${topdir}/RPMS/$(uname -m)" | |
echo "%_topdir ${topdir}" > "${HOME}/.rpmmacros" | |
case "${TARGET}" in | |
*/httpd-*) | |
# patch for httpd-2.4.3 | |
tarball="${TARGET##*/}" | |
module="${tarball%.tar.*}" | |
curl -O "${TARGET}" |
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
// requires classpath 'org.codehaus.groovy.modules.http-builder:http-builder:0.6' | |
/** | |
* Wait until the resource is ready state. | |
*/ | |
def waitUntilResourceIsReady(String resource) { | |
def http = new groovyx.net.http.HTTPBuilder(resource) | |
def check = { | |
try { | |
http.get(contentType: groovyx.net.http.ContentType.TEXT) |