---
- job:
    name: run-rake-task
    display-name: Run rake task
    project-type: freestyle
    description: "Run a rake task on an application."
    builders:
      - shell: ssh deploy@$(govuk_node_list -c $MACHINE_CLASS --single-node) "cd /var/apps/$TARGET_APPLICATION && govuk_setenv $TARGET_APPLICATION bundle exec rake $RAKE_TASK"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps
    parameters:
      - choice:
          name: TARGET_APPLICATION
          description: Choose the application to run the rake task in
          choices: <%= ['-- Choose an app'] + @applications.keys %>
      - choice:
          name: MACHINE_CLASS
          description: Choose the machine class this app is running on
          choices:
            - api
            - backend
            - bouncer
            - calculators_frontend
            - content_store
            - draft_cache
            - draft_content_store
            - draft_frontend
            - frontend
            - router_backend
            - publishing_api
            - search
            - whitehall_backend
            - whitehall_frontend
      - string:
          name: RAKE_TASK
          description: Name of rake task to run (try `-T` to print the tasks)

---
- job:
    name: run-rake-task
    display-name: Run rake task
    project-type: freestyle
    description: "Run a rake task on an application."
    builders:
      - shell: ssh deploy@$(govuk_node_list -c $MACHINE_CLASS --single-node) "cd /var/apps/$TARGET_APPLICATION && govuk_setenv $TARGET_APPLICATION bundle exec rake $RAKE_TASK"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps
    parameters:
      - choice:
          name: TARGET_APPLICATION
          description: Choose the application to run the rake task in
          choices: <%= ['-- Choose an app'] + @applications.keys %>
      - choice:
          name: MACHINE_CLASS
          description: Choose the machine class this app is running on
          choices:
            - api
            - backend
            - bouncer
            - calculators_frontend
            - content_store
            - draft_cache
            - draft_content_store
            - draft_frontend
            - email_alert_api
            - frontend
            - router_backend
            - publishing_api
            - search
            - whitehall_backend
            - whitehall_frontend
      - string:
          name: RAKE_TASK
          description: Name of rake task to run (try `-T` to print the tasks)

Add email_alert_api machine class to Jenkins
Add email_alert_api machine class to Jenkins

This commit adds the new `email_alert_api` machine class to the Jenkins job for running rake tasks.