Allow failure for build.
This commit is contained in:
parent
2c7389201b
commit
32ce3d989b
@ -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…
x
Reference in New Issue
Block a user