build results: pass the attempt ID back in the BuildResult

This commit is contained in:
Graham Christensen 2018-01-31 11:42:28 -05:00
parent 4aaab0644a
commit 031156dc30
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C
2 changed files with 3 additions and 1 deletions

View file

@ -6,5 +6,6 @@ pub struct BuildResult {
pub pr: Pr,
pub system: String,
pub output: Vec<String>,
pub attempt_id: Option<String>,
pub success: bool,
}

View file

@ -111,7 +111,7 @@ impl<'a, 'b> JobActions<'a, 'b> {
pr: self.job.pr.clone(),
system: self.system.clone(),
output: vec![String::from("Merge failed")],
attempt_id: Some(self.attempt_id.clone()),
success: false,
};
@ -171,6 +171,7 @@ impl<'a, 'b> JobActions<'a, 'b> {
pr: self.job.pr.clone(),
system: self.system.clone(),
output: lines,
attempt_id: Some(self.attempt_id.clone()),
success: success,
};