Add Git remote URL to benchmark jobs

This commit is contained in:
2018-10-12 17:49:30 +02:00
parent c953e724cc
commit 4b67e4d87d

View File

@@ -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");