diff options
authorMatthias Beyer <>2021-05-31 11:55:48 +0200
committerMatthias Beyer <>2021-05-31 11:55:48 +0200
commitccf323bb0812638ca551f88e0adc71e166ea979f (patch)
parentfb162232e0c093afc76210ce2bdcde03aa8fd9b0 (diff)
Fix: git commit hash/author information passing
This fixes the git commit hash and author information passing. The changes in 2d72cbed2495517dba84ec4d46e5f521ff46412b did not add the environment variables to the `find_artifact()` call when searching for replacement artifacts. Thus, calling the same build twice, with the staging directory from the first call added in the second call, resulted in a full rebuild, although the artifacts from the first call could be resused. With this patch applied, this issue is fixed by adding the environment variables to the environment passed to the `find_artifacts()` call. Fixes: 2d72cbed2495517dba84ec4d46e5f521ff46412b ("Add feature to pass git author and git commit information to container") Signed-off-by: Matthias Beyer <> Tested-by: Matthias Beyer <>
1 files changed, 2 insertions, 0 deletions
diff --git a/src/orchestrator/ b/src/orchestrator/
index b118ed1..dd1322d 100644
--- a/src/orchestrator/
+++ b/src/orchestrator/
@@ -571,6 +571,8 @@ impl<'a> JobTask<'a> {
.map(|(k, v)| (k.clone(), v.clone()))
+ .chain(self.git_author_env.cloned().into_iter())
+ .chain(self.git_commit_env.cloned().into_iter())
let replacement_artifacts = crate::db::find_artifacts(