---
- scm:
    name: smokey_Smokey
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    publishers:
      <% if @enable_slack_notifications %>
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @environment_variables['SECOND_LINE_SLACK_AUTH_TOKEN']%>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: false
          notify-aborted: true
          notify-notbuilt: true
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: false
          include-test-summary: false
          room: <%= @slack_room %>
          include-custom-message: true
          custom-message: ':govuk-<%= @environment %>:'
      <% end %>

    builders:
        - shell: |
            set +x
            export TARGET_PLATFORM=<%= @environment %>
            export MYTASK=<%= @smokey_task %>
            set -x
            ./jenkins.sh
    wrappers:
        - ansicolor:
            colormap: xterm

---
- scm:
    name: smokey_Smokey
    scm:
        - git:
            url: git@github.com:alphagov/smokey.git
            branches:
              - master

- job:
    name: Smokey
    display-name: Smokey
    project-type: freestyle
    scm:
      - smokey_Smokey
    properties:
      - build-discarder:
          days-to-keep: 30
          artifact-num-to-keep: 5
    <% if @enable_slack_notifications %>
    publishers:
      - slack:
          team-domain: <%= @slack_team_domain %>
          auth-token: <%= @environment_variables['SECOND_LINE_SLACK_AUTH_TOKEN']%>
          build-server-url: <%= @slack_build_server_url %>
          notify-start: false
          notify-success: false
          notify-aborted: true
          notify-notbuilt: true
          notify-unstable: false
          notify-failure: true
          notify-backtonormal: true
          notify-repeatedfailure: false
          include-test-summary: false
          room: <%= @slack_room %>
          include-custom-message: true
          custom-message: ':govuk-<%= @environment %>:'
    <% end %>

    builders:
        - shell: |
            set +x
            export TARGET_PLATFORM=<%= @environment %>
            export MYTASK=<%= @smokey_task %>
            set -x
            ./jenkins.sh
    wrappers:
        - ansicolor:
            colormap: xterm

Fix None publishers array for Smokey job
Fix None publishers array for Smokey job

This is causing a failure on jenkins as the 'publishers' key exists but
the value is None.
