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