Serialize BuildParams to json obj in env var
parent
3a39995b22
commit
099834f484
|
|
@ -1966,13 +1966,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.RemoteClientCli = void 0;
|
||||
const __1 = __webpack_require__(41359);
|
||||
const cloud_runner_state_1 = __webpack_require__(70912);
|
||||
const download_repository_1 = __webpack_require__(20477);
|
||||
class RemoteClientCli {
|
||||
static RunRemoteClient(options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const buildParameter = yield __1.BuildParameters.create();
|
||||
const buildParameter = JSON.parse(process.env.buildParameters || '{}');
|
||||
cloud_runner_state_1.CloudRunnerState.setup(buildParameter);
|
||||
switch (options.remoteClientState) {
|
||||
default:
|
||||
|
|
@ -2326,6 +2325,7 @@ class CloudRunnerState {
|
|||
value: `${CloudRunnerState.buildParams[element]}`,
|
||||
});
|
||||
}
|
||||
array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) });
|
||||
const input = Object.getOwnPropertyNames(__1.Input);
|
||||
for (const element of input) {
|
||||
array.push({
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -1,10 +1,9 @@
|
|||
import { BuildParameters } from '../..';
|
||||
import { CloudRunnerState } from '../state/cloud-runner-state';
|
||||
import { DownloadRepository } from './remote-steps/download-repository';
|
||||
|
||||
export class RemoteClientCli {
|
||||
static async RunRemoteClient(options) {
|
||||
const buildParameter = await BuildParameters.create();
|
||||
const buildParameter = JSON.parse(process.env.buildParameters || '{}');
|
||||
CloudRunnerState.setup(buildParameter);
|
||||
switch (options.remoteClientState) {
|
||||
default:
|
||||
|
|
|
|||
|
|
@ -137,6 +137,7 @@ export class CloudRunnerState {
|
|||
value: `${CloudRunnerState.buildParams[element]}`,
|
||||
});
|
||||
}
|
||||
array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) });
|
||||
const input = Object.getOwnPropertyNames(Input);
|
||||
for (const element of input) {
|
||||
array.push({
|
||||
|
|
|
|||
Loading…
Reference in New Issue