<commit_before>- defaults:
    name: 'weirdo-defaults'
    description: |
        Managed by Jenkins Job Builder. Do not edit via web.
    concurrent: false
    node: 'rdo-virtualized'
    logrotate:
        daysToKeep: 31
        artifactDaysToKeep: 31
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
    wrappers:
        - ansicolor
        - timestamps
        - workspace-cleanup
        - timeout:
            type: absolute
            timeout: 120
            fail: true
    tempest_version: ''
    tempest_from_source: ''

- defaults:
    name: 'weirdo-promote-defaults'
    description: |
        Managed by Jenkins Job Builder. Do not edit via web.
    concurrent: false
    node: 'rdo-promote-virtualized'
    logrotate:
        daysToKeep: 31
        artifactDaysToKeep: 31
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
    wrappers:
        - ansicolor
        - timestamps
        - workspace-cleanup
        - timeout:
            type: absolute
            timeout: 120
            fail: true

- publisher:
    name: 'weirdo-email-cores'
    publishers:
        - email:
            recipients: '<EMAIL>'

- publisher:
    name: 'weirdo-archive-logs'
    publishers:
        - archive:
            artifacts: 'properties,logs.html'
            allow-empty: true

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-release-node'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script:
                !include-raw:
                    - scripts/weirdo-collect-logs.sh
                    - scripts/cico-node-done-from-ansible.sh

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-destroy-vm'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script:
                !include-raw:
                    - scripts/weirdo-vm-vars.sh
                    - scripts/destroy-vm.sh

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-report-dlrn-api'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script: |
                # Use variables provided by a job earlier in the pipeline, if available
                delorean_hash=${{delorean_current_hash:-current}}
                delorean_commit_url="https://trunk-primary.rdoproject.org/centos7-${{RDO_VERSION_DIR}}/${{delorean_hash}}/commit.yaml"
                if [[ "${{RDO_VERSION_DIR}}" == "master" ]]; then
                    api_worker="api-centos-master-uc"
                else
                    api_worker="api-centos-${{RDO_VERSION_DIR}}"
                fi
                mkdir ${{WORKSPACE}}/${{BUILD_ID}}
                echo export DLRNAPI_URL="https://trunk-primary.rdoproject.org/$api_worker" > ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
                echo export COMMIT_HASH=$(echo $delorean_hash | awk -F/ '{{print $3}}' |awk -F_ '{{print $1}}') >> ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
                echo export DISTRO_HASH=`curl $delorean_commit_url | grep distro_hash |  awk -F: '{{print $2}}' |xargs echo` >> ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
                echo export INFO_URL="https://ci.centos.org/artifacts/rdo/${{JOB_NAME}}/${{BUILD_NUMBER}}" >> ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
        - post-tasks:
            - matches:
                - log-text: marked build as failure
              script: |
                . ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
                rm -rf ${{WORKSPACE}}/${{BUILD_ID}}
                export JOB_SUCCESS="false"
                # Report
                # DLRNAPI_USER and DLRNAPI_PASSWD are set as part of JJB / jenkins config
                tox -e ansible-playbook -- -i ${{WORKSPACE}}/hosts playbooks/dlrn-api-report.yml
        - post-tasks:
            - matches:
                - log-text: congratulations
              script: |
                . ${{WORKSPACE}}/${{BUILD_ID}}/dlrnapi-varfile
                rm -rf ${{WORKSPACE}}/${{BUILD_ID}}
                export JOB_SUCCESS="true"
                # Report
                # DLRNAPI_USER and DLRNAPI_PASSWD are set as part of JJB / jenkins config
                tox -e ansible-playbook -- -i ${{WORKSPACE}}/hosts playbooks/dlrn-api-report.yml<commit_msg>Fix curly braces in DLRN API publisher<commit_after>- defaults:
    name: 'weirdo-defaults'
    description: |
        Managed by Jenkins Job Builder. Do not edit via web.
    concurrent: false
    node: 'rdo-virtualized'
    logrotate:
        daysToKeep: 31
        artifactDaysToKeep: 31
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
    wrappers:
        - ansicolor
        - timestamps
        - workspace-cleanup
        - timeout:
            type: absolute
            timeout: 120
            fail: true
    tempest_version: ''
    tempest_from_source: ''

- defaults:
    name: 'weirdo-promote-defaults'
    description: |
        Managed by Jenkins Job Builder. Do not edit via web.
    concurrent: false
    node: 'rdo-promote-virtualized'
    logrotate:
        daysToKeep: 31
        artifactDaysToKeep: 31
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
    wrappers:
        - ansicolor
        - timestamps
        - workspace-cleanup
        - timeout:
            type: absolute
            timeout: 120
            fail: true

- publisher:
    name: 'weirdo-email-cores'
    publishers:
        - email:
            recipients: '<EMAIL>'

- publisher:
    name: 'weirdo-archive-logs'
    publishers:
        - archive:
            artifacts: 'properties,logs.html'
            allow-empty: true

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-release-node'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script:
                !include-raw:
                    - scripts/weirdo-collect-logs.sh
                    - scripts/cico-node-done-from-ansible.sh

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-destroy-vm'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script:
                !include-raw:
                    - scripts/weirdo-vm-vars.sh
                    - scripts/destroy-vm.sh

# "Building remotely" should always be in the build console output
- publisher:
    name: 'weirdo-report-dlrn-api'
    publishers:
        - post-tasks:
            - matches:
                - log-text: Building remotely
              script: |
                # Use variables provided by a job earlier in the pipeline, if available
                delorean_hash=${delorean_current_hash:-current}
                delorean_commit_url="https://trunk-primary.rdoproject.org/centos7-${RDO_VERSION_DIR}/${delorean_hash}/commit.yaml"
                if [[ "${RDO_VERSION_DIR}" == "master" ]]; then
                    api_worker="api-centos-master-uc"
                else
                    api_worker="api-centos-${RDO_VERSION_DIR}"
                fi
                mkdir ${WORKSPACE}/${BUILD_ID}
                echo export DLRNAPI_URL="https://trunk-primary.rdoproject.org/$api_worker" > ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
                echo export COMMIT_HASH=$(echo $delorean_hash | awk -F/ '{print $3}' |awk -F_ '{print $1}') >> ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
                echo export DISTRO_HASH=`curl $delorean_commit_url | grep distro_hash |  awk -F: '{print $2}' |xargs echo` >> ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
                echo export INFO_URL="https://ci.centos.org/artifacts/rdo/${JOB_NAME}/${BUILD_NUMBER}" >> ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
        - post-tasks:
            - matches:
                - log-text: marked build as failure
              script: |
                . ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
                rm -rf ${WORKSPACE}/${BUILD_ID}
                export JOB_SUCCESS="false"
                # Report
                # DLRNAPI_USER and DLRNAPI_PASSWD are set as part of JJB / jenkins config
                tox -e ansible-playbook -- -i ${WORKSPACE}/hosts playbooks/dlrn-api-report.yml
        - post-tasks:
            - matches:
                - log-text: congratulations
              script: |
                . ${WORKSPACE}/${BUILD_ID}/dlrnapi-varfile
                rm -rf ${WORKSPACE}/${BUILD_ID}
                export JOB_SUCCESS="true"
                # Report
                # DLRNAPI_USER and DLRNAPI_PASSWD are set as part of JJB / jenkins config
                tox -e ansible-playbook -- -i ${WORKSPACE}/hosts playbooks/dlrn-api-report.yml
{'fraction_non_alphanumeric': 0.11030640668523677, 'fraction_numerical': 0.004011142061281337, 'mean_word_length': 1.6674591381872215, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, 'https://': 6, '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': '7637396', 'n_tokens_mistral': 2761, 'n_tokens_neox': 2558, 'n_words': 561}