MCPcopy
hub / github.com/firecow/gitlab-ci-local / copyIn

Method copyIn

src/job.ts:1381–1387  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

1379 }
1380
1381 copyIn (source: string) {
1382 const safeJobName = this.safeJobName;
1383 if (!this.imageName(this._variables) && this.argv.shellIsolation) {
1384 return Utils.spawn(["rsync", "-a", `${source}/.`, `${this.argv.cwd}/${this.argv.stateDir}/builds/${safeJobName}`]);
1385 }
1386 return Utils.spawn([this.argv.containerExecutable, "cp", `${source}/.`, `${this._containerId}:${this.ciProjectDir}`]);
1387 }
1388
1389 private async copyCacheOut (writeStreams: WriteStreams, expanded: {[key: string]: string}) {
1390 if (this.argv.mountCache && this.imageName(expanded)) return;

Callers 2

copyCacheInMethod · 0.95
copyArtifactsInMethod · 0.95

Calls 2

imageNameMethod · 0.95
spawnMethod · 0.80

Tested by

no test coverage detected