fixes
parent
e14aea2c63
commit
2fd53ec129
|
@ -5483,6 +5483,7 @@ const cloud_runner_query_override_1 = __importDefault(__nccwpck_require__(31011)
|
|||
const cloud_runner_options_reader_1 = __importDefault(__nccwpck_require__(3343));
|
||||
const build_parameters_1 = __importDefault(__nccwpck_require__(80787));
|
||||
const cloud_runner_options_1 = __importDefault(__nccwpck_require__(96552));
|
||||
const cloud_runner_system_1 = __nccwpck_require__(99393);
|
||||
class TaskParameterSerializer {
|
||||
static createCloudRunnerEnvironmentVariables(buildParameters) {
|
||||
const result = this.uniqBy([
|
||||
|
@ -5596,8 +5597,11 @@ class TaskParameterSerializer {
|
|||
}
|
||||
static async exportAllCiVariablesWithoutPrefix() {
|
||||
for (const variable of Object.entries(process.env)) {
|
||||
process.env[variable[0].replace(`CI_`, ``)] = variable[1] || ``;
|
||||
if (variable[0].includes(`CI_`)) {
|
||||
await cloud_runner_system_1.CloudRunnerSystem.Run(`export ${variable[0].replace(`CI_`, ``)}="${variable[1] || ``}"`);
|
||||
}
|
||||
}
|
||||
await cloud_runner_system_1.CloudRunnerSystem.Run(`printenv`);
|
||||
}
|
||||
}
|
||||
exports.TaskParameterSerializer = TaskParameterSerializer;
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -6,6 +6,7 @@ import CloudRunnerQueryOverride from './cloud-runner-query-override';
|
|||
import CloudRunnerOptionsReader from './cloud-runner-options-reader';
|
||||
import BuildParameters from '../../build-parameters';
|
||||
import CloudRunnerOptions from '../cloud-runner-options';
|
||||
import { CloudRunnerSystem } from './cloud-runner-system';
|
||||
|
||||
export class TaskParameterSerializer {
|
||||
static readonly blocked = new Set(['0', 'length', 'prototype', '', 'unityVersion']);
|
||||
|
@ -155,7 +156,10 @@ export class TaskParameterSerializer {
|
|||
}
|
||||
public static async exportAllCiVariablesWithoutPrefix() {
|
||||
for (const variable of Object.entries(process.env)) {
|
||||
process.env[variable[0].replace(`CI_`, ``)] = variable[1] || ``;
|
||||
if (variable[0].includes(`CI_`)) {
|
||||
await CloudRunnerSystem.Run(`export ${variable[0].replace(`CI_`, ``)}="${variable[1] || ``}"`);
|
||||
}
|
||||
}
|
||||
await CloudRunnerSystem.Run(`printenv`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue