<commit_before>---
- job:
    name: elastic+elasticsearch+%BRANCH%+periodic+release-tests
    workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+periodic+release-tests
    display-name: "elastic / elasticsearch # %BRANCH% - release tests"
    description: "Release version tests for the Elasticsearch %BRANCH% branch.\n"
    node: "general-purpose && docker"
    builders:
      - inject:
          properties-file: '.ci/java-versions.properties'
          properties-content: |
            JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA
            RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA
            JAVA15_HOME=$HOME/.java/openjdk15
      - shell: |
          #!/usr/local/bin/runbld --redirect-stderr
          $WORKSPACE/.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dbuild.snapshot=false \
            -Dtests.jvm.argline=-Dbuild.snapshot=false -Dlicense.key=${WORKSPACE}/x-pack/license-tools/src/test/resources/public.key build<commit_msg>Pull down beats artifacts when performing release tests<commit_after>---
- job:
    name: elastic+elasticsearch+%BRANCH%+periodic+release-tests
    workspace: /dev/shm/elastic+elasticsearch+%BRANCH%+periodic+release-tests
    display-name: "elastic / elasticsearch # %BRANCH% - release tests"
    description: "Release version tests for the Elasticsearch %BRANCH% branch.\n"
    node: "general-purpose && docker"
    builders:
      - inject:
          properties-file: '.ci/java-versions.properties'
          properties-content: |
            JAVA_HOME=$HOME/.java/$ES_BUILD_JAVA
            RUNTIME_JAVA_HOME=$HOME/.java/$ES_RUNTIME_JAVA
            JAVA15_HOME=$HOME/.java/openjdk15
      - shell: |
          #!/usr/local/bin/runbld --redirect-stderr

          # Fetch beats artifacts
          export ES_VERSION=$(grep 'elasticsearch' build-tools-internal/version.properties | awk '{print $3}')
          export BEATS_DIR=$(pwd)/distribution/docker/build/artifacts/beats

          mkdir -p ${BEATS_DIR}
          curl -o "${BEATS_DIR}/metricbeat-${ES_VERSION}-linux-x86_64.tar.gz" https://snapshots-no-kpi.elastic.co/downloads/beats/metricbeat/metricbeat-${ES_VERSION}-SNAPSHOT-linux-x86_64.tar.gz
          curl -o "${BEATS_DIR}/filebeat-${ES_VERSION}-linux-x86_64.tar.gz" https://snapshots-no-kpi.elastic.co/downloads/beats/filebeat/filebeat-${ES_VERSION}-SNAPSHOT-linux-x86_64.tar.gz

          $WORKSPACE/.ci/scripts/run-gradle.sh -Dbwc.checkout.align=true -Dbuild.snapshot=false \
            -Dtests.jvm.argline=-Dbuild.snapshot=false -Dlicense.key=${WORKSPACE}/x-pack/license-tools/src/test/resources/public.key -Dbuild.id=deadbeef build
{'fraction_non_alphanumeric': 0.13873943120676402, 'fraction_numerical': 0.009607993850883935, 'mean_word_length': 3.086342229199372, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4439181', 'n_tokens_mistral': 887, 'n_tokens_neox': 850, 'n_words': 112}