<commit_before>---
- job:
    name: integration-router-data-deploy
    display-name: integration-router-data-deploy
    project-type: freestyle
    description: "Kicks off a router-data deploy in the Integration environment"
    builders:
      - shell: |
          JSON="{\"parameter\": [{\"name\": \"TAG\", \"value\": \"$TAG\"}], \"\": \"\"}"

          # Deploy to integration environment
          echo curl -f -XPOST https://<%= @jenkins_integration_api_user %>:<%= @jenkins_integration_api_password %>@deploy.<EMAIL>.uk/job/deploy_router_data/build --data-urlencode json="$JSON"
    wrappers:
        - ansicolor:
            colormap: xterm
    parameters:
        - string:
            name: TAG
            description: 'Git tag/committish to deploy.'
            default: 'release'
    publishers:
        - email:
            recipients: <EMAIL>
            send-to-individuals: true<commit_msg>Make the integration_router_data_deploy job actually do something<commit_after>---
- job:
    name: integration-router-data-deploy
    display-name: integration-router-data-deploy
    project-type: freestyle
    description: "Kicks off a router-data deploy in the Integration environment"
    builders:
      - shell: |
          JSON="{\"parameter\": [{\"name\": \"TAG\", \"value\": \"$TAG\"}], \"\": \"\"}"

          # Deploy to integration environment
          CRUMB=$(curl https://<%= @jenkins_integration_api_user %>:<%= @jenkins_integration_api_password %>@deploy.<EMAIL>.uk/crumbIssuer/api/json | jq --raw-output '. | .crumb')
          curl -f -H "Jenkins-Crumb:$CRUMB" -XPOST https://<%= @jenkins_integration_api_user %>:<%= @jenkins_integration_api_password %>@deploy.integration.publishing.service.gov.uk/job/deploy_router_data/build --data-urlencode json="$JSON"
    wrappers:
        - ansicolor:
            colormap: xterm
    parameters:
        - string:
            name: TAG
            description: 'Git tag/committish to deploy.'
            default: 'release'
    publishers:
        - email:
            recipients: <EMAIL>
            send-to-individuals: true
{'fraction_non_alphanumeric': 0.14531548757170173, 'fraction_numerical': 0.0, 'mean_word_length': 2.4367816091954024, 'pattern_counts': {'":': 8, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 3, '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': '7592438', 'n_tokens_mistral': 646, 'n_tokens_neox': 611, 'n_words': 134}