Jonathan Manning
04/07/2026, 10:26 AMJim Downie
04/07/2026, 10:29 AMcleanup block for now. Perhaps you could gate it behind an env var that's set on the GH runner so it doesn't run during local testing.
test("-profile test") {
setup {
...
}
when {
...
}
then {
...
}
cleanup {
new File("${launchDir}").deleteDir()
}
}
}Jonathan Manning
04/07/2026, 10:32 AMJonathan Manning
04/07/2026, 10:33 AMJonathan Manning
04/07/2026, 10:35 AMcleanup {
"docker system prune -f".execute()
new File("${launchDir}").deleteDir()
}
... would workJim Downie
04/07/2026, 10:35 AMdef checkm2_db_url = "<https://tolit.cog.sanger.ac.uk/test-data/resources/metagenomeassembly/checkm2_database.tar.gz>"
def checkm2_command = ['bash', '-c', "curl -L --retry 5 ${checkm2_db_url} | tar xzf - -C ${launchDir}"]
def checkm2_proc = checkm2_command.execute()
checkm2_proc.waitFor()
If there's a Docker command you could run to prune images you could execute that in the cleanup?Jonathan Manning
04/07/2026, 10:35 AMNicolas Vannieuwkerke
04/07/2026, 10:53 AMJonathan Manning
04/07/2026, 11:15 AMNicolas Vannieuwkerke
04/07/2026, 11:16 AMJim Downie
04/07/2026, 11:22 AMcleanup block - e.g. to only execute if the task succeededNicolas Vannieuwkerke
04/07/2026, 11:23 AMJonathan Manning
04/07/2026, 11:23 AMJim Downie
04/07/2026, 11:29 AMHave you already made an issue for that?No 🥲
Jim Downie
04/07/2026, 11:31 AMNicolas Vannieuwkerke
04/07/2026, 11:34 AMJonathan Manning
04/07/2026, 11:45 AMJust realised I bumped shards at the same time, have bumped back, will let you know if things still pass due to cleanupStill good
Jonathan Manning
04/24/2026, 8:18 AM