<commit_before>- job:
    name: 'openstack-devstack'
    project-type: matrix
    triggers:
      - timed: 'H 5 * * *'
    axes:
      - axis:
          type: user-defined
          name: image
          values:
            - openSUSE-Leap-42.2
      - axis:
          type: slave
          name: slave
          values:
            - cloud-cleanvm
    execution-strategy:
      combination-filter: |
        slave == "cloud-cleanvm"
      sequential: true
    builders:
      - update-automation
      - shell: |
          sudo /usr/local/sbin/freshvm cleanvm $image
          sleep 100

          set -u
          set +ex

          scp ~/github.com/SUSE-Cloud/automation/scripts/jenkins/qa_devstack.sh root@cleanvm:
          ssh root@cleanvm "bash -x ~/qa_devstack.sh"
          ret=$?
          if [ "$ret" != 0 ] ; then
              virsh shutdown cleanvm
              # wait for clean shutdown
              n=20 ; while [[ $n > 0 ]] && virsh list |grep cleanvm.*running ; do sleep 2 ; n=$(($n-1)) ; done
              virsh destroy cleanvm
              # cleanup old images
              find /mnt/cleanvmbackup -mtime +5 -type f | xargs --no-run-if-empty rm
              # backup /dev/vg0/cleanvm disk image
              file=/mnt/cleanvmbackup/${BUILD_NUMBER}-${openstack_version}-${image}.raw.gz
              time gzip -c1 /dev/vg0/cleanvm > $file
              du $file
              exit 1
          fi

    wrappers:
      - timestamps<commit_msg>Fix use of undefined variable on backup handling<commit_after>- job:
    name: 'openstack-devstack'
    project-type: matrix
    triggers:
      - timed: 'H 5 * * *'
    axes:
      - axis:
          type: user-defined
          name: image
          values:
            - openSUSE-Leap-42.2
      - axis:
          type: slave
          name: slave
          values:
            - cloud-cleanvm
    execution-strategy:
      combination-filter: |
        slave == "cloud-cleanvm"
      sequential: true
    builders:
      - update-automation
      - shell: |
          sudo /usr/local/sbin/freshvm cleanvm $image
          sleep 100

          set -u
          set +ex

          scp ~/github.com/SUSE-Cloud/automation/scripts/jenkins/qa_devstack.sh root@cleanvm:
          ssh root@cleanvm "bash -x ~/qa_devstack.sh"
          ret=$?
          if [ "$ret" != 0 ] ; then
              virsh shutdown cleanvm
              # wait for clean shutdown
              n=20 ; while [[ $n > 0 ]] && virsh list |grep cleanvm.*running ; do sleep 2 ; n=$(($n-1)) ; done
              virsh destroy cleanvm
              find /mnt/cleanvmbackup -mtime +5 -type f | xargs --no-run-if-empty rm
              # backup /dev/vg0/cleanvm disk image
              file=/mnt/cleanvmbackup/${BUILD_NUMBER}-devstack-${image}.raw.gz
              time gzip -c1 /dev/vg0/cleanvm > $file
              du $file
              exit 1
          fi

    wrappers:
      - timestamps
{'fraction_non_alphanumeric': 0.10677618069815195, 'fraction_numerical': 0.012320328542094456, 'mean_word_length': 1.3919803600654665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, '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': '6605987', 'n_tokens_mistral': 925, 'n_tokens_neox': 888, 'n_words': 221}