Caching cleanup
							parent
							
								
									19edffc7a0
								
							
						
					
					
						commit
						3cf63d5ffa
					
				|  | @ -811,6 +811,8 @@ const lfs_hashing_1 = __webpack_require__(47011); | |||
| const cloud_runner_agent_system_1 = __webpack_require__(87685); | ||||
| const __1 = __webpack_require__(41359); | ||||
| const remote_client_logger_1 = __webpack_require__(68972); | ||||
| const console_1 = __webpack_require__(57082); | ||||
| const path_1 = __importDefault(__webpack_require__(85622)); | ||||
| class SetupCloudRunnerRepository { | ||||
|     static run() { | ||||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|  | @ -837,11 +839,12 @@ class SetupCloudRunnerRepository { | |||
|         return __awaiter(this, void 0, void 0, function* () { | ||||
|             try { | ||||
|                 remote_client_logger_1.RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`); | ||||
|                 process.chdir(cloud_runner_state_1.CloudRunnerState.repoPathFull); | ||||
|                 process.chdir(path_1.default.join(cloud_runner_state_1.CloudRunnerState.repoPathFull, `..`)); | ||||
|                 yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`git config --global advice.detachedHead false`); | ||||
|                 remote_client_logger_1.RemoteClientLogger.log(`Cloning the repository being built:`); | ||||
|                 yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`git lfs install --skip-smudge`); | ||||
|                 yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`git clone ${cloud_runner_state_1.CloudRunnerState.targetBuildRepoUrl} ${cloud_runner_state_1.CloudRunnerState.repoPathFull}`); | ||||
|                 console_1.assert(!fs_1.default.existsSync(cloud_runner_state_1.CloudRunnerState.repoPathFull)); | ||||
|                 yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`git clone ${cloud_runner_state_1.CloudRunnerState.targetBuildRepoUrl} ${path_1.default.basename(cloud_runner_state_1.CloudRunnerState.repoPathFull)}`); | ||||
|                 if (__1.Input.cloudRunnerTests) { | ||||
|                     yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`ls -lh`); | ||||
|                     yield cloud_runner_agent_system_1.CloudRunnerAgentSystem.Run(`tree`); | ||||
|  |  | |||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -5,6 +5,8 @@ import { LFSHashing } from './lfs-hashing'; | |||
| import { CloudRunnerAgentSystem } from './cloud-runner-agent-system'; | ||||
| import { Input } from '../..'; | ||||
| import { RemoteClientLogger } from './remote-client-logger'; | ||||
| import { assert } from 'console'; | ||||
| import path from 'path'; | ||||
| 
 | ||||
| export class SetupCloudRunnerRepository { | ||||
|   public static async run() { | ||||
|  | @ -38,12 +40,13 @@ export class SetupCloudRunnerRepository { | |||
|   private static async cloneRepoWithoutLFSFiles() { | ||||
|     try { | ||||
|       RemoteClientLogger.log(`Initializing source repository for cloning with caching of LFS files`); | ||||
|       process.chdir(CloudRunnerState.repoPathFull); | ||||
|       process.chdir(path.join(CloudRunnerState.repoPathFull, `..`)); | ||||
|       await CloudRunnerAgentSystem.Run(`git config --global advice.detachedHead false`); | ||||
|       RemoteClientLogger.log(`Cloning the repository being built:`); | ||||
|       await CloudRunnerAgentSystem.Run(`git lfs install --skip-smudge`); | ||||
|       assert(!fs.existsSync(CloudRunnerState.repoPathFull)); | ||||
|       await CloudRunnerAgentSystem.Run( | ||||
|         `git clone ${CloudRunnerState.targetBuildRepoUrl} ${CloudRunnerState.repoPathFull}`, | ||||
|         `git clone ${CloudRunnerState.targetBuildRepoUrl} ${path.basename(CloudRunnerState.repoPathFull)}`, | ||||
|       ); | ||||
|       if (Input.cloudRunnerTests) { | ||||
|         await CloudRunnerAgentSystem.Run(`ls -lh`); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue