<commit_before>- job-template:
    name: 'weirdo-{openstack_release}-promote-{playbook}'
    defaults: 'weirdo-promote-defaults'
    description: |
        <p>Managed by Jenkins Job Builder. Do not edit via web.</p>
        <br>
        <p>This job runs <a href="https://github.com/redhat-openstack/weirdo" target="_blank">WeIRDO</a>.</p>
        <p>It runs the playbook <a href="https://github.com/redhat-openstack/weirdo/blob/master/playbooks/{playbook}.yml" target="_blank">{playbook}.yml</a></p>
        <br>
        This is what this job runs:
        <pre>
        if [[ "{openstack_release}" != "master" ]]; then
            version="stable/{openstack_release}"
        else
            version="{openstack_release}"
        fi

        # Use variables provided by a job earlier in the pipeline, if available
        delorean_hash=${{delorean_current_hash:-current}}
        delorean_url="http://trunk.rdoproject.org/centos7-{openstack_release}/${{delorean_hash}}/delorean.repo"

        # Use WeIRDO provided by jenkins scm
        cd weirdo
        git log -n 5 --oneline
        tox -e ansible-playbook -- -vv -i hosts playbooks/remove-firewalld-networkmanager.yml
        tox -e ansible-playbook -- -vv -i hosts playbooks/{playbook}.yml \
          -e ci_environment=ci-centos \
          -e delorean_url=$delorean_url \
          -e openstack_release={openstack_release} \
          -e version=$version
        </pre>

    scm:
        - weirdo-core-master-repository
    builders:
        - weirdo-generate-log-redirection
        - weirdo-get-node
        - weirdo-promote-ansible-playbook-builder:
            openstack_release: '{openstack_release}'
            playbook: '{playbook}'
    properties:
        - ownership:
            owner: <EMAIL>
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
        - weirdo-release-node

- job-template:
    name: 'weirdo-generic-{playbook}'
    defaults: 'weirdo-defaults'
    description: |
        <p>Managed by Jenkins Job Builder. Do not edit via web.</p>
        <br>
        <p>This job runs <a href="https://github.com/redhat-openstack/weirdo" target="_blank">WeIRDO</a>.</p>
        <p>It runs the playbook <a href="https://github.com/redhat-openstack/weirdo/blob/master/playbooks/{playbook}.yml" target="_blank">{playbook}.yml</a></p>
        <br>
        This is a <strong>parameterized</strong> job that requires two variables: delorean_url and delorean_deps_url.
        This is what this job runs:
        <pre>
        # If a properties file is specified, it should overwrite and have priority over other parameters
        if [[ -n "${{properties}}" ]]; then
          curl -s -O "${{properties}}"
          source "./$(basename ${{properties}})"
        fi

        # Use WeIRDO provided by jenkins scm
        cd weirdo
        git log -n 5 --oneline

        tox -e ansible-playbook -- -vv -i hosts playbooks/remove-firewalld-networkmanager.yml
        tox -e ansible-playbook -- -vv -i hosts playbooks/{playbook}.yml \
          -e delorean_url=${{delorean_url}} \
          -e delorean_deps_url=${{delorean_deps_url}} \
          -e openstack_release=${{openstack_release}} \
          -e version=${{version}} \
          -e stable_repositories=${{stable_repositories}}
        </pre>
    parameters:
        - string:
            name: properties
            default:
            description: The URL to a properties file to be sourced prior to the build
        - string:
            name: delorean_url
            default: http://trunk.rdoproject.org/centos7-master/current-passed-ci/delorean.repo
            description: The URL of the delorean .repo file tested against
        - string:
            name: delorean_deps_url
            default: http://trunk.rdoproject.org/centos7-master/delorean-deps.repo
            description: The URL of the delorean-deps .repo file tested against
        - string:
            name: openstack_release
            default: master
            description: The name of the OpenStack release to use (master, newton, mitaka, etc.)
        - string:
            name: version
            default: master
            description: The version of integration tests to use (master, stable/newton, stable/mitaka, etc.)
        - string:
            name: stable_repositories
            description: Comma separated list of release packages or RPMs (can be an URL) to test against. Has precedence if trunk repositories are specified.
    scm:
        - weirdo-core-master-repository
    builders:
        - weirdo-generate-log-redirection<commit_msg>Allow weirdo generic jobs to run concurrently<commit_after>- job-template:
    name: 'weirdo-{openstack_release}-promote-{playbook}'
    defaults: 'weirdo-promote-defaults'
    description: |
        <p>Managed by Jenkins Job Builder. Do not edit via web.</p>
        <br>
        <p>This job runs <a href="https://github.com/redhat-openstack/weirdo" target="_blank">WeIRDO</a>.</p>
        <p>It runs the playbook <a href="https://github.com/redhat-openstack/weirdo/blob/master/playbooks/{playbook}.yml" target="_blank">{playbook}.yml</a></p>
        <br>
        This is what this job runs:
        <pre>
        if [[ "{openstack_release}" != "master" ]]; then
            version="stable/{openstack_release}"
        else
            version="{openstack_release}"
        fi

        # Use variables provided by a job earlier in the pipeline, if available
        delorean_hash=${{delorean_current_hash:-current}}
        delorean_url="http://trunk.rdoproject.org/centos7-{openstack_release}/${{delorean_hash}}/delorean.repo"

        # Use WeIRDO provided by jenkins scm
        cd weirdo
        git log -n 5 --oneline
        tox -e ansible-playbook -- -vv -i hosts playbooks/remove-firewalld-networkmanager.yml
        tox -e ansible-playbook -- -vv -i hosts playbooks/{playbook}.yml \
          -e ci_environment=ci-centos \
          -e delorean_url=$delorean_url \
          -e openstack_release={openstack_release} \
          -e version=$version
        </pre>

    scm:
        - weirdo-core-master-repository
    builders:
        - weirdo-generate-log-redirection
        - weirdo-get-node
        - weirdo-promote-ansible-playbook-builder:
            openstack_release: '{openstack_release}'
            playbook: '{playbook}'
    properties:
        - ownership:
            owner: <EMAIL>
    publishers:
        - weirdo-email-cores
        - weirdo-archive-logs
        - weirdo-release-node

- job-template:
    name: 'weirdo-generic-{playbook}'
    defaults: 'weirdo-defaults'
    description: |
        <p>Managed by Jenkins Job Builder. Do not edit via web.</p>
        <br>
        <p>This job runs <a href="https://github.com/redhat-openstack/weirdo" target="_blank">WeIRDO</a>.</p>
        <p>It runs the playbook <a href="https://github.com/redhat-openstack/weirdo/blob/master/playbooks/{playbook}.yml" target="_blank">{playbook}.yml</a></p>
        <br>
        This is a <strong>parameterized</strong> job that requires two variables: delorean_url and delorean_deps_url.
        This is what this job runs:
        <pre>
        # If a properties file is specified, it should overwrite and have priority over other parameters
        if [[ -n "${{properties}}" ]]; then
          curl -s -O "${{properties}}"
          source "./$(basename ${{properties}})"
        fi

        # Use WeIRDO provided by jenkins scm
        cd weirdo
        git log -n 5 --oneline

        tox -e ansible-playbook -- -vv -i hosts playbooks/remove-firewalld-networkmanager.yml
        tox -e ansible-playbook -- -vv -i hosts playbooks/{playbook}.yml \
          -e delorean_url=${{delorean_url}} \
          -e delorean_deps_url=${{delorean_deps_url}} \
          -e openstack_release=${{openstack_release}} \
          -e version=${{version}} \
          -e stable_repositories=${{stable_repositories}}
        </pre>
    concurrent: true
    parameters:
        - string:
            name: properties
            default:
            description: The URL to a properties file to be sourced prior to the build
        - string:
            name: delorean_url
            default: http://trunk.rdoproject.org/centos7-master/current-passed-ci/delorean.repo
            description: The URL of the delorean .repo file tested against
        - string:
            name: delorean_deps_url
            default: http://trunk.rdoproject.org/centos7-master/delorean-deps.repo
            description: The URL of the delorean-deps .repo file tested against
        - string:
            name: openstack_release
            default: master
            description: The name of the OpenStack release to use (master, newton, mitaka, etc.)
        - string:
            name: version
            default: master
            description: The version of integration tests to use (master, stable/newton, stable/mitaka, etc.)
        - string:
            name: stable_repositories
            description: Comma separated list of release packages or RPMs (can be an URL) to test against. Has precedence if trunk repositories are specified.
    scm:
        - weirdo-core-master-repository
    builders:
        - weirdo-generate-log-redirection
{'fraction_non_alphanumeric': 0.11212219694507637, 'fraction_numerical': 0.0010833062506770664, 'mean_word_length': 2.1779690189328744, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 8, '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': '7037879', 'n_tokens_mistral': 2786, 'n_tokens_neox': 2660, 'n_words': 695}