|
|
|
@ -38,7 +38,7 @@ pub(crate) fn build(
|
|
|
|
|
))
|
|
|
|
|
.status()?
|
|
|
|
|
.exit_ok()?;
|
|
|
|
|
Command::new("poudriere")
|
|
|
|
|
let status = Command::new("poudriere")
|
|
|
|
|
.arg("bulk")
|
|
|
|
|
.arg("-J")
|
|
|
|
|
.arg(ACTION_BUILD_JOBS.to_string())
|
|
|
|
@ -55,8 +55,15 @@ pub(crate) fn build(
|
|
|
|
|
action.tree.as_str(),
|
|
|
|
|
action.set_name.as_str()
|
|
|
|
|
))
|
|
|
|
|
.status()?
|
|
|
|
|
.exit_ok()?;
|
|
|
|
|
.status()?;
|
|
|
|
|
if !status.success() {
|
|
|
|
|
println!(
|
|
|
|
|
"Build failed for jail {} tree {} set {}.",
|
|
|
|
|
action.jail_name.as_str(),
|
|
|
|
|
action.tree.as_str(),
|
|
|
|
|
action.set_name.as_str()
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
let next_run = (SystemTime::now() + Duration::from_secs(ACTION_BUILD_INTERVAL))
|
|
|
|
|
.duration_since(SystemTime::UNIX_EPOCH)?
|
|
|
|
|
.as_secs();
|
|
|
|
|