Assign the variable before getting its value.
Publish epc port.
Publish icco ports.
Publish env port.