Open turb opened 6 years ago
Bamboo exposes to templates $apps.ServicePorts, taken from Marathon API.
$apps.ServicePorts
The thing is, /v2/apps?embed=apps.tasks does not have (anymore?) a servicePorts field, but a portDefinitions field.
/v2/apps?embed=apps.tasks
servicePorts
portDefinitions
I think Bamboo should expose this one.
Workaround: add a BAMBOO_SERVICE_PORT env var to Marathon and use $app.Env.BAMBOO_SERVICE_PORT in the template.
BAMBOO_SERVICE_PORT
$app.Env.BAMBOO_SERVICE_PORT
Bamboo exposes to templates
$apps.ServicePorts
, taken from Marathon API.The thing is,
/v2/apps?embed=apps.tasks
does not have (anymore?) aservicePorts
field, but aportDefinitions
field.I think Bamboo should expose this one.
Workaround: add a
BAMBOO_SERVICE_PORT
env var to Marathon and use$app.Env.BAMBOO_SERVICE_PORT
in the template.