Problem
The parent procedure, Proc-A, calls the sub-procedure, Proc-B. VM_Mappings/Nested_VM is a Nested Property Sheet in the Custom Procedure Parameters in the called procedure, Proc-B.
How do you reference the parent nested property sheet in the child procedure?
Solution
To use a /myProcedure call in a sub-procedure, you can use the following commands.
-
To reference the nested property sheet in Proc-B, use this command:
echo $[/myProcedure/VM_Mappings/Nested_VM]
-
To directly reference the nested property sheet, use this ectool command:
ectool getProperty "/myProject/procedures/Proc-B/VM_Mappings/Nested_VM"
However, if the procedure names are not available or change because of the implementation, you can access the nested property sheet with these more generic commands:
*
``` echo $[/projects/$[/myParent/projectName]/procedures/$[ec:procedureName]/VM_Mappings/Nested_VM] ```
*
``` ectool getProperty /projects/$[/myParent/projectName]/procedures/$[ec:procedureName]/VM_Mappings/Nested_VM ```
This article is part of our Knowledge Base and is provided for guidance-based purposes only. The solutions or workarounds described here are not officially supported by CloudBees and may not be applicable in all environments. Use at your own discretion, and test changes in a safe environment before applying them to production systems.