---
- job:
    name: deploy-emergency-banner
    display-name: Deploy the emergency banner
    project-type: freestyle
    description: "Deploy the emergency banner on GOV.UK."
    builders:
      # The argument to `-c` is in this case `frontend` but the value is used by both `static` and `frontend` applications
      - shell: ssh deploy@$(govuk_node_list -c frontend --single-node) "cd /var/apps/static && govuk_setenv static bundle exec rake emergency_banner:deploy[\"$CAMPAIGN_CLASS\",\"$HEADING\",\"$SHORT_DESCRIPTION\",\"$LINK\"]"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - choice:
          name: CAMPAIGN_CLASS
          description: Choose the type of banner to deploy
          choices:
            - notable-death
            - national-emergency
            - local-emergency
      - string:
          name: HEADING
          description: The title of the banner
      - string:
          name: SHORT_DESCRIPTION
          description: The text that appears under the title
      - string:
          name: LINK
          description: The more information link

---
- job:
    name: deploy-emergency-banner
    display-name: Deploy the emergency banner
    project-type: freestyle
    description: "Deploy the emergency banner on GOV.UK."
    builders:
      # The argument to `-c` is in this case `frontend` but the value is used by both `static` and `frontend` applications
      - shell: ssh deploy@$(govuk_node_list -c frontend --single-node) "cd /var/apps/static && govuk_setenv static bundle exec rake emergency_banner:deploy[\"$CAMPAIGN_CLASS\",\"$HEADING\",\"$SHORT_DESCRIPTION\",\"$LINK\",\"$LINK_TEXT\"]"
    wrappers:
      - ansicolor:
          colormap: xterm
    parameters:
      - choice:
          name: CAMPAIGN_CLASS
          description: Choose the type of banner to deploy
          choices:
            - notable-death
            - national-emergency
            - local-emergency
      - string:
          name: HEADING
          description: The title of the banner
      - string:
          name: SHORT_DESCRIPTION
          description: The text that appears under the title
      - string:
          name: LINK
          description: The more information link
      - string:
          name: LINK_TEXT
          description: The anchor text for the more information link

Add link_text to deploy emergency banner task
Add link_text to deploy emergency banner task
