diff --git a/vars/drafter.groovy b/vars/drafter.groovy index 131d5bf..ea44c63 100644 --- a/vars/drafter.groovy +++ b/vars/drafter.groovy @@ -79,6 +79,16 @@ waitForJob( "${baseUrl}${job['finished-job']}" as String, credentials, job['restart-id'] as String) + def cacheClearResponse = httpRequest(acceptType: 'APPLICATION_JSON', + httpMode: 'PUT', + credentials: '57e63e26-4dea-4679-ab47-840dc199e133', + url: "http://gss-data.org.uk/_clear_cache") + echo readJSON(text: cacheClearResponse.content)['message'] + def syncSearchResponse = httpRequest(acceptType: 'APPLICATION_JSON', + httpMode: 'PUT', + credentials: '57e63e26-4dea-4679-ab47-840dc199e133', + url: "http://gss-data.org.uk/_sync_search") + echo readJSON(text: syncSearchResponse.content)['message'] } else { error "Problem publishing draftset ${response.status} : ${response.content}" }