Unfortunately our blueprints do not support variable interpolation. One workaround you could try is to do this as part of the startCommand, for example:
Thank you for your response Hieu:
so, startCommand fires before buildCommand then, correct?
( I ask because there is a difference in the UI - build is first in order on the screen )
buildCommand is run first in order to build your service. If you need the interpolation to happen at build time, you can put the snippet MAIN_TEST_PUBLIC_URL="http://$MAIN_TEST_HOST_PORT/slughere" in your buildCommand instead.