<commit_before>- builder:
    name: tripleo-quickstart-checkout
    builders:
      - shell: |
          #!/bin/bash -xe
          CLONEMAP=`mktemp`
          function cleanup {
              rm -f $CLONEMAP
          }
          trap cleanup EXIT
          cat > $CLONEMAP << EOF
          clonemap:
            - name: openstack/tripleo-quickstart
              dest: .
          EOF
          /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
              git://git.openstack.org openstack/tripleo-quickstart

- builder:
    name: python-tripleoclient-buildimage-checkout
    builders:
      - shell: |
          #!/bin/bash -xe
          CLONEMAP=`mktemp`
          function cleanup {
              rm -f $CLONEMAP
          }
          trap cleanup EXIT
          cat > $CLONEMAP << EOF
          clonemap:
            - name: 'openstack/(.*)'
              dest: '\1'
          EOF
          /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \
            --cache-dir /opt/git \
            git://git.openstack.org \
            openstack/heat-templates \
            openstack/instack-undercloud \
            openstack/python-tripleoclient \
            openstack/tripleo-image-elements \
            openstack/tripleo-puppet-elements

- job-template:
    name: '{pipeline}-tripleo-quickstart-{scenario}-{node}{job-suffix}'
    node: '{node}'

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - tripleo-quickstart-checkout
      - install-distro-packages
      - shell: |
          # Allow Jenkins user to ssh into localhost
          ssh-keygen -f ~/.ssh/id_rsa -N ""
          cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
          ssh-keyscan localhost >> ~/.ssh/known_hosts
          ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
      - tox:
          envlist: "{scenario}"

    publishers:
      - console-log

- job-template:
    name: 'gate-tripleo-buildimage-{image-name}-{node}{suffix}'
    node: '{node}'

    builders:
      - link-logs
      - net-info
      - python-tripleoclient-buildimage-checkout
      - install-distro-packages
      - shell: |
          #!/bin/bash -xe<commit_msg>Manually run install-distro-packages for tripleoclient job<commit_after>- builder:
    name: tripleo-quickstart-checkout
    builders:
      - shell: |
          #!/bin/bash -xe
          CLONEMAP=`mktemp`
          function cleanup {
              rm -f $CLONEMAP
          }
          trap cleanup EXIT
          cat > $CLONEMAP << EOF
          clonemap:
            - name: openstack/tripleo-quickstart
              dest: .
          EOF
          /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP --cache-dir /opt/git \
              git://git.openstack.org openstack/tripleo-quickstart

- builder:
    name: python-tripleoclient-buildimage-checkout
    builders:
      - shell: |
          #!/bin/bash -xe
          CLONEMAP=`mktemp`
          function cleanup {
              rm -f $CLONEMAP
          }
          trap cleanup EXIT
          cat > $CLONEMAP << EOF
          clonemap:
            - name: 'openstack/(.*)'
              dest: '\1'
          EOF
          /usr/zuul-env/bin/zuul-cloner -m $CLONEMAP \
            --cache-dir /opt/git \
            git://git.openstack.org \
            openstack/heat-templates \
            openstack/instack-undercloud \
            openstack/python-tripleoclient \
            openstack/tripleo-image-elements \
            openstack/tripleo-puppet-elements

- job-template:
    name: '{pipeline}-tripleo-quickstart-{scenario}-{node}{job-suffix}'
    node: '{node}'

    builders:
      - print-template-name:
          template-name: "{template-name}"
      - tripleo-quickstart-checkout
      - install-distro-packages
      - shell: |
          # Allow Jenkins user to ssh into localhost
          ssh-keygen -f ~/.ssh/id_rsa -N ""
          cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
          ssh-keyscan localhost >> ~/.ssh/known_hosts
          ssh-keyscan 127.0.0.1 >> ~/.ssh/known_hosts
      - tox:
          envlist: "{scenario}"

    publishers:
      - console-log

- job-template:
    name: 'gate-tripleo-buildimage-{image-name}-{node}{suffix}'
    node: '{node}'

    builders:
      - link-logs
      - net-info
      - python-tripleoclient-buildimage-checkout
      - shell: |
          #!/bin/bash -xe
          cd python-tripleoclient
          /usr/local/jenkins/slave_scripts/install-distro-packages.sh
      - shell: |
          #!/bin/bash -xe
{'fraction_non_alphanumeric': 0.12304948729380294, 'fraction_numerical': 0.003120820329915292, 'mean_word_length': 1.4900110987791344, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '630828', 'n_tokens_mistral': 1481, 'n_tokens_neox': 1424, 'n_words': 245}