(working_root_dir: &str, execution_id: &str)
| 135 | } |
| 136 | |
| 137 | pub fn create_workspace_archive(working_root_dir: &str, execution_id: &str) -> Result<PathBuf, Error> { |
| 138 | info!("archive workspace directory in progress"); |
| 139 | |
| 140 | match archive_workspace_directory(working_root_dir, execution_id) { |
| 141 | Err(err) => { |
| 142 | error!("archive workspace directory error: {:?}", err); |
| 143 | Err(err) |
| 144 | } |
| 145 | Ok(file) => { |
| 146 | info!("workspace directory is archived"); |
| 147 | cleanup_workspace_directory(working_root_dir, execution_id)?; |
| 148 | Ok(file) |
| 149 | } |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | pub fn create_yaml_backup_file<P>( |
| 154 | working_root_dir: P, |
no test coverage detected