<commit_before>---
- scm:
    name: env-sync-and-backup_Copy_Whitehall_DB_to_preview
    scm:
        - git:
            url: <EMAIL>:gds/env-sync-and-backup.git
            branches:
              - master

- job:
    name: Copy_Whitehall_DB_to_preview
    display-name: Copy_Whitehall_DB_to_preview
    project-type: freestyle
    description: "This job copies the sanitised whitehall_production MySQL Database dump file from Production to Preview."
    properties:
        - github:
            url: https://github.gds/gds/env-sync-and-backup/
    scm:
      - env-sync-and-backup_Copy_Whitehall_DB_to_preview
    logrotate:
        artifactNumToKeep: 10
    triggers:
        - timed: '15 5 * * 1-5'
    builders:
        - shell: |
            cd "$WORKSPACE/whitehall/"
            echo "Sanitising Whitehall DB"
            ./sanitise-db.sh "<%= @whitehall_mysql_password %>"
    wrappers:
        - ansicolor:
            colormap: xterm<commit_msg>Pass jumpbox hostname to Whitehall data sync<commit_after>---
- scm:
    name: env-sync-and-backup_Copy_Whitehall_DB_to_preview
    scm:
        - git:
            url: <EMAIL>:gds/env-sync-and-backup.git
            branches:
              - master

- job:
    name: Copy_Whitehall_DB_to_preview
    display-name: Copy_Whitehall_DB_to_preview
    project-type: freestyle
    description: "This job copies the sanitised whitehall_production MySQL Database dump file from Production to Preview."
    properties:
        - github:
            url: https://github.gds/gds/env-sync-and-backup/
    scm:
      - env-sync-and-backup_Copy_Whitehall_DB_to_preview
    logrotate:
        artifactNumToKeep: 10
    triggers:
        - timed: '15 5 * * 1-5'
    builders:
        - shell: |
            cd "$WORKSPACE/whitehall/"
            echo "Sanitising Whitehall DB"
            ./sanitise-db.sh "<%= @whitehall_mysql_password %>" "jumpbox.preview.alphagov.co.uk"
    wrappers:
        - ansicolor:
            colormap: xterm
{'fraction_non_alphanumeric': 0.09706774519716886, 'fraction_numerical': 0.007077856420626896, 'mean_word_length': 2.0729813664596275, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5741585', 'n_tokens_mistral': 655, 'n_tokens_neox': 635, 'n_words': 126}