1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2026-11-02 00:29:32 +00:00

expose lArchive

This commit is contained in:
Oliver Giles
2015-09-19 13:40:00 +02:00
parent 2147346493
commit cf10d5c795
2 changed files with 9 additions and 1 deletions

View File

@@ -432,12 +432,19 @@ void Laminar::assignNewJobs() {
run->lastResult = RunState(result);
});
// create a working directory (different to a workspace!)
fs::path wd = fs::path(homeDir)/"run"/run->name/std::to_string(run->build);
if(!fs::is_directory(wd) && !fs::create_directory(wd)) {
if(!fs::create_directory(wd)) {
KJ_LOG(ERROR, "Could not create working directory", wd.string());
break;
}
run->wd = wd.string();
// create an archive directory
fs::path archive = fs::path(homeDir)/"archive"/run->name/std::to_string(run->build);
if(!fs::create_directories(archive)) {
KJ_LOG(ERROR, "Could not create archive directory", archive.string());
break;
}
// add scripts
fs::path cfgDir = fs::path(homeDir)/"cfg";