fix
parent
9708808254
commit
3102287676
|
|
@ -2567,12 +2567,7 @@ class TaskParameterSerializer {
|
||||||
static readBuildParameters(array) {
|
static readBuildParameters(array) {
|
||||||
const keys = Object.keys(cloud_runner_state_1.CloudRunnerState.buildParams);
|
const keys = Object.keys(cloud_runner_state_1.CloudRunnerState.buildParams);
|
||||||
for (const element of keys) {
|
for (const element of keys) {
|
||||||
array.push(
|
array.push({
|
||||||
//{
|
|
||||||
// name: element,
|
|
||||||
// value: `${CloudRunnerState.buildParams[element]}`,
|
|
||||||
//},
|
|
||||||
{
|
|
||||||
name: element,
|
name: element,
|
||||||
value: cloud_runner_state_1.CloudRunnerState.buildParams[element],
|
value: cloud_runner_state_1.CloudRunnerState.buildParams[element],
|
||||||
});
|
});
|
||||||
|
|
@ -2586,7 +2581,8 @@ class TaskParameterSerializer {
|
||||||
static readInput(array) {
|
static readInput(array) {
|
||||||
const input = Object.getOwnPropertyNames(__1.Input);
|
const input = Object.getOwnPropertyNames(__1.Input);
|
||||||
for (const element of input) {
|
for (const element of input) {
|
||||||
if (typeof __1.Input[element] !== 'function') {
|
if (typeof __1.Input[element] !== 'function' &&
|
||||||
|
array.filter((x) => x.name === element).length === 0) {
|
||||||
array.push(
|
array.push(
|
||||||
//{
|
//{
|
||||||
// name: element,
|
// name: element,
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -34,6 +34,8 @@ describe('Cloud Runner', () => {
|
||||||
const newLinePurgedFile = file
|
const newLinePurgedFile = file
|
||||||
.replace(/\s+/g, '')
|
.replace(/\s+/g, '')
|
||||||
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
|
.replace(new RegExp(`\\[${CloudRunnerStatics.logPrefix}\\]`, 'g'), '');
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
|
console.log(JSON.stringify(environmentVariables, undefined, 4));
|
||||||
for (const element of environmentVariables) {
|
for (const element of environmentVariables) {
|
||||||
if (element.value !== undefined && typeof element.value !== 'function') {
|
if (element.value !== undefined && typeof element.value !== 'function') {
|
||||||
if (typeof element.value === `string`) {
|
if (typeof element.value === `string`) {
|
||||||
|
|
|
||||||
|
|
@ -39,16 +39,11 @@ export class TaskParameterSerializer {
|
||||||
private static readBuildParameters(array: any[]) {
|
private static readBuildParameters(array: any[]) {
|
||||||
const keys = Object.keys(CloudRunnerState.buildParams);
|
const keys = Object.keys(CloudRunnerState.buildParams);
|
||||||
for (const element of keys) {
|
for (const element of keys) {
|
||||||
array.push(
|
if (array.filter((x) => x.name === element).length === 0)
|
||||||
//{
|
array.push({
|
||||||
// name: element,
|
|
||||||
// value: `${CloudRunnerState.buildParams[element]}`,
|
|
||||||
//},
|
|
||||||
{
|
|
||||||
name: element,
|
name: element,
|
||||||
value: CloudRunnerState.buildParams[element],
|
value: CloudRunnerState.buildParams[element],
|
||||||
},
|
});
|
||||||
);
|
|
||||||
}
|
}
|
||||||
array.push(
|
array.push(
|
||||||
{ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) },
|
{ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) },
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue