Adding branch reader and tests
							parent
							
								
									1cfac08875
								
							
						
					
					
						commit
						4e93a74861
					
				|  | @ -2685,8 +2685,13 @@ class TaskParameterSerializer { | ||||||
|         ]; |         ]; | ||||||
|     } |     } | ||||||
|     static get serializeBuildParamsAndInput() { |     static get serializeBuildParamsAndInput() { | ||||||
|  |         let array = new Array(); | ||||||
|  |         array = TaskParameterSerializer.readBuildParameters(array); | ||||||
|  |         TaskParameterSerializer.readInput(array); | ||||||
|  |         return array; | ||||||
|  |     } | ||||||
|  |     static readBuildParameters(array) { | ||||||
|         const keys = Object.keys(cloud_runner_state_1.CloudRunnerState.buildParams); |         const keys = Object.keys(cloud_runner_state_1.CloudRunnerState.buildParams); | ||||||
|         const array = new Array(); |  | ||||||
|         for (const element of keys) { |         for (const element of keys) { | ||||||
|             array.push({ |             array.push({ | ||||||
|                 name: element, |                 name: element, | ||||||
|  | @ -2694,9 +2699,12 @@ class TaskParameterSerializer { | ||||||
|             }); |             }); | ||||||
|         } |         } | ||||||
|         array.push({ name: 'buildParameters', value: JSON.stringify(cloud_runner_state_1.CloudRunnerState.buildParams) }); |         array.push({ name: 'buildParameters', value: JSON.stringify(cloud_runner_state_1.CloudRunnerState.buildParams) }); | ||||||
|  |         return 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.push({ |                 array.push({ | ||||||
|                     name: element, |                     name: element, | ||||||
|                     value: `${__1.Input[element]}`, |                     value: `${__1.Input[element]}`, | ||||||
|  |  | ||||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							|  | @ -62,8 +62,14 @@ export class TaskParameterSerializer { | ||||||
|     ]; |     ]; | ||||||
|   } |   } | ||||||
|   private static get serializeBuildParamsAndInput() { |   private static get serializeBuildParamsAndInput() { | ||||||
|  |     let array = new Array(); | ||||||
|  |     array = TaskParameterSerializer.readBuildParameters(array); | ||||||
|  |     TaskParameterSerializer.readInput(array); | ||||||
|  |     return array; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   private static readBuildParameters(array: any[]) { | ||||||
|     const keys = Object.keys(CloudRunnerState.buildParams); |     const keys = Object.keys(CloudRunnerState.buildParams); | ||||||
|     const array = new Array(); |  | ||||||
|     for (const element of keys) { |     for (const element of keys) { | ||||||
|       array.push({ |       array.push({ | ||||||
|         name: element, |         name: element, | ||||||
|  | @ -71,9 +77,13 @@ export class TaskParameterSerializer { | ||||||
|       }); |       }); | ||||||
|     } |     } | ||||||
|     array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) }); |     array.push({ name: 'buildParameters', value: JSON.stringify(CloudRunnerState.buildParams) }); | ||||||
|  |     return array; | ||||||
|  |   } | ||||||
|  | 
 | ||||||
|  |   private static readInput(array: any[]) { | ||||||
|     const input = Object.getOwnPropertyNames(Input); |     const input = Object.getOwnPropertyNames(Input); | ||||||
|     for (const element of input) { |     for (const element of input) { | ||||||
|       if (typeof Input[element] != 'function') { |       if (typeof Input[element] !== 'function') { | ||||||
|         array.push({ |         array.push({ | ||||||
|           name: element, |           name: element, | ||||||
|           value: `${Input[element]}`, |           value: `${Input[element]}`, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue