Add Git remote URL to benchmark jobs

This commit is contained in:
Patrick Lühne 2018-10-12 17:49:30 +02:00
parent c953e724cc
commit 4b67e4d87d
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
1 changed files with 2 additions and 0 deletions

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