()
| 1272 | const platformArgs = imagePlatform ? ["--platform", imagePlatform] : []; |
| 1273 | const platformSuffix = imagePlatform ? ` (${imagePlatform})` : ""; |
| 1274 | const actualPull = async () => { |
| 1275 | await this.validateCiDependencyProxyServerAuthentication(imageToPull); |
| 1276 | const time = process.hrtime(); |
| 1277 | await Utils.spawn([this.argv.containerExecutable, "pull", imageToPull, ...platformArgs]); |
| 1278 | const endTime = process.hrtime(time); |
| 1279 | writeStreams.stdout(chalk`${this.formattedJobName} {magentaBright pulled} ${imageToPull}${platformSuffix} in {magenta ${prettyHrtime(endTime)}}\n`); |
| 1280 | this.refreshLongRunningSilentTimeout(writeStreams); |
| 1281 | }; |
| 1282 | |
| 1283 | if (pullPolicy === "always") { |
| 1284 | await actualPull(); |
nothing calls this directly
no test coverage detected