Add Git remote URL to benchmark jobs
This commit is contained in:
parent
c953e724cc
commit
4b67e4d87d
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user