mirror of
https://seed.radicle.dev/rad:z3qg5TKmN83afz2fj9z3fQjU8vaYE.git
synced 2026-11-29 06:20:29 +08:00
+6
-1
@@ -66,6 +66,8 @@ impl Engine {
|
||||
let mut success = false;
|
||||
match req {
|
||||
Request::Trigger { repo, commit } => {
|
||||
self.run_info_builder.repo(repo);
|
||||
self.run_info_builder.commit(commit);
|
||||
match self.run_helper(repo, commit) {
|
||||
Ok(true) => success = true,
|
||||
Ok(false) => (),
|
||||
@@ -146,6 +148,9 @@ impl Engine {
|
||||
|
||||
// Set the file where the run info should be written, now that
|
||||
// we have the run directory.
|
||||
let run_log_filename = run_dir.join("log.html");
|
||||
self.run_info_builder
|
||||
.log(&self.config.state, run_log_filename.clone());
|
||||
self.run_info_builder.run_info(run_dir.join("run.yaml"));
|
||||
|
||||
// Get node git storage. We do this before responding to the
|
||||
@@ -158,7 +163,7 @@ impl Engine {
|
||||
write_triggered(&run_id)?;
|
||||
|
||||
// Create and set up the run.
|
||||
let mut run = Run::new(&run_dir, run_id)?;
|
||||
let mut run = Run::new(&run_dir, &run_log_filename)?;
|
||||
run.set_repository(rid);
|
||||
run.set_commit(commit);
|
||||
run.set_storage(storage);
|
||||
|
||||
Reference in New Issue
Block a user