final Map<JobId, Job> jobs = c.jobs().get();
for (JobId jobId : jobs.keySet()) {
if (!jobId.toString().startsWith(testTag)) {
continue;
}
final JobStatus st = c.jobStatus(jobId).get();
final Set<String> hosts = st.getDeployments().keySet();
for (String host : hosts) {
log.info("Undeploying job " + jobId);
undeploys.add(c.undeploy(jobId, host));
}