bamboo
bamboo copied to clipboard
Should use portDefinitions instead of servicePorts
Bamboo exposes to templates $apps.ServicePorts
, taken from Marathon API.
The thing is, /v2/apps?embed=apps.tasks
does not have (anymore?) a servicePorts
field, but a portDefinitions
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.