Instance Startup Scripts for Elastic Agents do not respect Exit Codes

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Elastic Bamboo
    • None
    • 1
    • 4

      Problem Definition

      If a user-provided instance startup script errors out, Bamboo continues on to start the elastic agent rather than terminate the instance.

      An agent that starts and becomes part of the agent pool, but which has incomplete or broken setup, is worse than useless to us. It costs us time in failed builds and debugging which would be avoided if the agent simply never joined the pool.

      Suggested Solution

      If the user-provided startup script fails, or returns an error. Fail the instance startup, with a message in the Bamboo Local logs.

      Workaround

      If an instance startup script fails, you need to check the logs on the EC2 instance itself to learn why.

              Assignee:
              Unassigned
              Reporter:
              Robert W (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: