---
- job:
    name: search_reindex_with_new_schema
    display-name: Search reindex with new schema
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @environment == 'integration' %>
    triggers:
        - timed: '12 * * * 1'  # Every monday
<% end %>
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/rummager && govuk_setenv rummager CONFIRM_INDEX_MIGRATION_START=1 bundle exec rake rummager:migrate_schema"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

---
- job:
    name: search_reindex_with_new_schema
    display-name: Search reindex with new schema
    project-type: freestyle
    description: |
      Rebuild new search indexes with up to date settings and mappings, and reindex all content from the existing indexes.
    logrotate:
      numToKeep: 10
<% if @environment == 'integration' %>
    triggers:
        - timed: '0 12 * * 1'  # Every monday at midday
<% end %>
    builders:
        - shell: ssh deploy@$(govuk_node_list -c search --single-node) "cd /var/apps/rummager && govuk_setenv rummager CONFIRM_INDEX_MIGRATION_START=1 bundle exec rake rummager:migrate_schema"
    wrappers:
      - ansicolor:
          colormap: xterm
      - timestamps

Update run time to be when the environment is running
Update run time to be when the environment is running
