Allow failure for build.

main
Tom Alexander 2 weeks ago
parent 2c7389201b
commit 32ce3d989b
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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();

Loading…
Cancel
Save