log file path
parent
a6ec38049b
commit
a86e483861
|
@ -204,7 +204,7 @@ const versioning_1 = __importDefault(__nccwpck_require__(93901));
|
|||
const git_repo_1 = __nccwpck_require__(24271);
|
||||
const github_cli_1 = __nccwpck_require__(44990);
|
||||
const cli_1 = __nccwpck_require__(55651);
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(66965));
|
||||
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||
class BuildParameters {
|
||||
|
@ -493,7 +493,7 @@ const caching_1 = __nccwpck_require__(32885);
|
|||
const lfs_hashing_1 = __nccwpck_require__(16785);
|
||||
const remote_client_1 = __nccwpck_require__(48135);
|
||||
const cloud_runner_options_reader_1 = __importDefault(__nccwpck_require__(96879));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
class Cli {
|
||||
static get isCliMode() {
|
||||
return Cli.options !== undefined && Cli.options.mode !== undefined && Cli.options.mode !== '';
|
||||
|
@ -683,7 +683,7 @@ const core = __importStar(__nccwpck_require__(42186));
|
|||
const test_1 = __importDefault(__nccwpck_require__(63007));
|
||||
const local_1 = __importDefault(__nccwpck_require__(66575));
|
||||
const docker_1 = __importDefault(__nccwpck_require__(42802));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const shared_workspace_locking_1 = __importDefault(__nccwpck_require__(71372));
|
||||
const follow_log_stream_service_1 = __nccwpck_require__(40266);
|
||||
class CloudRunner {
|
||||
|
@ -1038,7 +1038,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
const cli_1 = __nccwpck_require__(55651);
|
||||
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(52207));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
class CloudRunnerOptions {
|
||||
// ### ### ###
|
||||
|
@ -1800,7 +1800,7 @@ const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
|||
const command_hook_service_1 = __nccwpck_require__(96159);
|
||||
const follow_log_stream_service_1 = __nccwpck_require__(40266);
|
||||
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(66965));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
class AWSTaskRunner {
|
||||
static async runTask(taskDef, environment, commands) {
|
||||
const cluster = taskDef.baseResources?.find((x) => x.LogicalResourceId === 'ECSCluster')?.PhysicalResourceId || '';
|
||||
|
@ -3749,7 +3749,7 @@ const async_wait_until_1 = __importDefault(__nccwpck_require__(41299));
|
|||
const core = __importStar(__nccwpck_require__(42186));
|
||||
const k8s = __importStar(__nccwpck_require__(89679));
|
||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
class KubernetesStorage {
|
||||
static async createPersistentVolumeClaim(buildParameters, pvcName, kubeClient, namespace) {
|
||||
if (buildParameters.kubeVolume !== ``) {
|
||||
|
@ -4292,7 +4292,7 @@ const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
|||
const cli_functions_repository_1 = __nccwpck_require__(85301);
|
||||
const cloud_runner_system_1 = __nccwpck_require__(4197);
|
||||
const yaml_1 = __importDefault(__nccwpck_require__(44603));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const build_parameters_1 = __importDefault(__nccwpck_require__(80787));
|
||||
class RemoteClient {
|
||||
static async runRemoteClientJob() {
|
||||
|
@ -4457,6 +4457,7 @@ exports.RemoteClientLogger = void 0;
|
|||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
||||
const node_fs_1 = __importDefault(__nccwpck_require__(87561));
|
||||
const node_path_1 = __importDefault(__nccwpck_require__(49411));
|
||||
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||
class RemoteClientLogger {
|
||||
static get LogFilePath() {
|
||||
return node_path_1.default.join(`/home`, `job-log.txt`);
|
||||
|
@ -4476,7 +4477,9 @@ class RemoteClientLogger {
|
|||
cloud_runner_logger_1.default.logWarning(message);
|
||||
}
|
||||
static appendToFile(message) {
|
||||
node_fs_1.default.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
||||
if (cloud_runner_1.default.isCloudRunnerEnvironment) {
|
||||
node_fs_1.default.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
||||
}
|
||||
}
|
||||
static printCollectedLogs() {
|
||||
cloud_runner_logger_1.default.log(`Collected Logs`);
|
||||
|
@ -4644,7 +4647,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.FollowLogStreamService = void 0;
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||
const cloud_runner_statics_1 = __nccwpck_require__(29053);
|
||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(42864));
|
||||
|
@ -5950,7 +5953,7 @@ exports.execWithErrorCheck = execWithErrorCheck;
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 83654:
|
||||
/***/ 39789:
|
||||
/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) {
|
||||
|
||||
"use strict";
|
||||
|
@ -6659,7 +6662,7 @@ const node_path_1 = __importDefault(__nccwpck_require__(49411));
|
|||
const cli_1 = __nccwpck_require__(55651);
|
||||
const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(52207));
|
||||
const platform_1 = __importDefault(__nccwpck_require__(9707));
|
||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||
const github_1 = __importDefault(__nccwpck_require__(39789));
|
||||
const core = __importStar(__nccwpck_require__(42186));
|
||||
/**
|
||||
* Input variables specified in workflows using "with" prop.
|
||||
|
@ -185096,7 +185099,7 @@ Object.defineProperty(apiLoader.services['cloudfront'], '2016-11-25', {
|
|||
Object.defineProperty(apiLoader.services['cloudfront'], '2017-03-25', {
|
||||
get: function get() {
|
||||
var model = __nccwpck_require__(76944);
|
||||
model.paginators = (__nccwpck_require__(34974)/* .pagination */ .o);
|
||||
model.paginators = (__nccwpck_require__(83654)/* .pagination */ .o);
|
||||
model.waiters = (__nccwpck_require__(83406)/* .waiters */ .V);
|
||||
return model;
|
||||
},
|
||||
|
@ -310557,7 +310560,7 @@ module.exports = JSON.parse('{"version":"2.0","metadata":{"apiVersion":"2017-03-
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 34974:
|
||||
/***/ 83654:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,6 +1,7 @@
|
|||
import CloudRunnerLogger from '../services/core/cloud-runner-logger';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import CloudRunner from '../cloud-runner';
|
||||
|
||||
export class RemoteClientLogger {
|
||||
private static get LogFilePath() {
|
||||
|
@ -26,7 +27,9 @@ export class RemoteClientLogger {
|
|||
}
|
||||
|
||||
public static appendToFile(message: string) {
|
||||
fs.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
||||
if (CloudRunner.isCloudRunnerEnvironment) {
|
||||
fs.appendFileSync(RemoteClientLogger.LogFilePath, message);
|
||||
}
|
||||
}
|
||||
|
||||
public static printCollectedLogs() {
|
||||
|
|
Loading…
Reference in New Issue