From 4b67e4d87d788ca5ec84328da91fc0a7ca875c39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20L=C3=BChne?= Date: Fri, 12 Oct 2018 17:49:30 +0200 Subject: [PATCH] Add Git remote URL to benchmark jobs --- examples/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/test.rs b/examples/test.rs index ded0885..10250f6 100644 --- a/examples/test.rs +++ b/examples/test.rs @@ -4,6 +4,7 @@ extern crate yaml_rust; use benchmark_repository::BenchmarkRepository; +use std::fs; use std::path::Path; use std::process::Command; @@ -49,6 +50,7 @@ fn main() Command::new("sbatch") .args(&["/home/pluehne/test-job.sh"]) .env("JOB_BRANCH_NAME", &branch_name) + .env("GIT_REMOTE_URL", &format!("file://{}", fs::canonicalize(&Path::new("storage")).unwrap().display())) .output() .expect("Could not execute command");