Do not serialize custom job parameter
parent
d64a7f5929
commit
6170f2320a
|
|
@ -3561,25 +3561,6 @@ exports["default"] = KubernetesTaskRunner;
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
||||||
if (k2 === undefined) k2 = k;
|
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
||||||
}) : (function(o, m, k, k2) {
|
|
||||||
if (k2 === undefined) k2 = k;
|
|
||||||
o[k2] = m[k];
|
|
||||||
}));
|
|
||||||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
||||||
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
||||||
}) : function(o, v) {
|
|
||||||
o["default"] = v;
|
|
||||||
});
|
|
||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
|
||||||
if (mod && mod.__esModule) return mod;
|
|
||||||
var result = {};
|
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
||||||
__setModuleDefault(result, mod);
|
|
||||||
return result;
|
|
||||||
};
|
|
||||||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
||||||
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
||||||
return new (P || (P = Promise))(function (resolve, reject) {
|
return new (P || (P = Promise))(function (resolve, reject) {
|
||||||
|
|
@ -3596,8 +3577,8 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||||
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
const cloud_runner_logger_1 = __importDefault(__nccwpck_require__(22855));
|
||||||
const docker_1 = __importDefault(__nccwpck_require__(16934));
|
const docker_1 = __importDefault(__nccwpck_require__(16934));
|
||||||
const model_1 = __nccwpck_require__(41359);
|
const model_1 = __nccwpck_require__(41359);
|
||||||
const core = __importStar(__nccwpck_require__(42186));
|
|
||||||
const fs_1 = __nccwpck_require__(57147);
|
const fs_1 = __nccwpck_require__(57147);
|
||||||
|
// import * as core from '@actions/core';
|
||||||
class LocalDockerCloudRunner {
|
class LocalDockerCloudRunner {
|
||||||
inspect() {
|
inspect() {
|
||||||
throw new Error('Method not implemented.');
|
throw new Error('Method not implemented.');
|
||||||
|
|
@ -3632,7 +3613,6 @@ class LocalDockerCloudRunner {
|
||||||
this.buildParameters = buildParameters;
|
this.buildParameters = buildParameters;
|
||||||
}
|
}
|
||||||
runTask(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
|
runTask(buildGuid, image, commands, mountdir, workingdir, environment, secrets) {
|
||||||
var _a;
|
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
cloud_runner_logger_1.default.log(buildGuid);
|
cloud_runner_logger_1.default.log(buildGuid);
|
||||||
cloud_runner_logger_1.default.log(commands);
|
cloud_runner_logger_1.default.log(commands);
|
||||||
|
|
@ -3644,11 +3624,11 @@ class LocalDockerCloudRunner {
|
||||||
for (const x of environment) {
|
for (const x of environment) {
|
||||||
content.push({ name: x.name, value: x.value });
|
content.push({ name: x.name, value: x.value });
|
||||||
}
|
}
|
||||||
if ((_a = this.buildParameters) === null || _a === void 0 ? void 0 : _a.cloudRunnerIntegrationTests) {
|
// if (this.buildParameters?.cloudRunnerIntegrationTests) {
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
// core.info(JSON.stringify(content, undefined, 4));
|
||||||
core.info(JSON.stringify(secrets, undefined, 4));
|
// core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
core.info(JSON.stringify(environment, undefined, 4));
|
// core.info(JSON.stringify(environment, undefined, 4));
|
||||||
}
|
// }
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
if (content[index] === undefined) {
|
if (content[index] === undefined) {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -5,9 +5,10 @@ import { ProviderInterface } from '../provider-interface';
|
||||||
import CloudRunnerSecret from '../../services/cloud-runner-secret';
|
import CloudRunnerSecret from '../../services/cloud-runner-secret';
|
||||||
import Docker from '../../../docker';
|
import Docker from '../../../docker';
|
||||||
import { Action } from '../../../../model';
|
import { Action } from '../../../../model';
|
||||||
import * as core from '@actions/core';
|
|
||||||
import { writeFileSync } from 'fs';
|
import { writeFileSync } from 'fs';
|
||||||
|
|
||||||
|
// import * as core from '@actions/core';
|
||||||
|
|
||||||
class LocalDockerCloudRunner implements ProviderInterface {
|
class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
public buildParameters: BuildParameters | undefined;
|
public buildParameters: BuildParameters | undefined;
|
||||||
|
|
||||||
|
|
@ -69,11 +70,12 @@ class LocalDockerCloudRunner implements ProviderInterface {
|
||||||
for (const x of environment) {
|
for (const x of environment) {
|
||||||
content.push({ name: x.name, value: x.value });
|
content.push({ name: x.name, value: x.value });
|
||||||
}
|
}
|
||||||
if (this.buildParameters?.cloudRunnerIntegrationTests) {
|
|
||||||
core.info(JSON.stringify(content, undefined, 4));
|
// if (this.buildParameters?.cloudRunnerIntegrationTests) {
|
||||||
core.info(JSON.stringify(secrets, undefined, 4));
|
// core.info(JSON.stringify(content, undefined, 4));
|
||||||
core.info(JSON.stringify(environment, undefined, 4));
|
// core.info(JSON.stringify(secrets, undefined, 4));
|
||||||
}
|
// core.info(JSON.stringify(environment, undefined, 4));
|
||||||
|
// }
|
||||||
|
|
||||||
// eslint-disable-next-line unicorn/no-for-loop
|
// eslint-disable-next-line unicorn/no-for-loop
|
||||||
for (let index = 0; index < content.length; index++) {
|
for (let index = 0; index < content.length; index++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue