<commit_before>- job:
    name: 3scale-cookbook
    project-type: freestyle
    description: 'verify that the 3scale-cookbook is in a state to push'
    properties:
      - github:
          url: https://github.com/3scale/chef-3scale.git
    scm:
      - git:
         url: https://github.com/3scale/chef-3scale.git
         wipe-workspace: false
         clean: true
    builders:
        - check-markdown-files-are-there
        - shell: |
            #!/bin/bash
            cp /home/jenkins/kitchens/3scale.kitchen.yml .kitchen.azure.yml

            chef exec rubocop .
            chef exec foodcritic .
            chef exec rspec spec
            KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen test
    wrappers:
      - workspace-cleanup
      - release:
          keep-forever: false
      - ansicolor
    triggers:
      - timed: "@midnight"
    publishers:
      - slack:
          team-domain: 'chefio'
          auth-token: '<PASSWORD>'
          build-server-url: 'https://jenkins-01.eastus.cloudapp.azure.com/'
          room: '#cookbook-partner-prog'
      - post-tasks:
        - matches:
          - log-text: "Class: Kitchen::ActionFailed"
          script: |
              #!/bin/bash
              KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen list
              KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen destroy<commit_msg>Changed the Shell commands into separate stages so that if one fails the build fails<commit_after>- job:
    name: 3scale-cookbook
    project-type: freestyle
    description: 'verify that the 3scale-cookbook is in a state to push'
    properties:
      - github:
          url: https://github.com/3scale/chef-3scale.git
    scm:
      - git:
         url: https://github.com/3scale/chef-3scale.git
         wipe-workspace: false
         clean: true
    builders:
        - check-markdown-files-are-there
        - shell: |
            #!/bin/bash
            chef exec rubocop .
        - shell: |
            #!/bin/bash
            chef exec foodcritic .
        - shell: |
            #!/bin/bash
            chef exec rspec spec
        - shell: |
            #!/bin/bash                        
            cp /home/jenkins/kitchens/3scale.kitchen.yml .kitchen.azure.yml
            KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen test
    wrappers:
      - workspace-cleanup
      - release:
          keep-forever: false
      - ansicolor
    triggers:
      - timed: "@midnight"
    publishers:
      - slack:
          team-domain: 'chefio'
          auth-token: '<PASSWORD>'
          build-server-url: 'https://jenkins-01.eastus.cloudapp.azure.com/'
          room: '#cookbook-partner-prog'
      - post-tasks:
        - matches:
          - log-text: "Class: Kitchen::ActionFailed"
          script: |
              #!/bin/bash
              KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen list
              KITCHEN_YAML=".kitchen.azure.yml" chef exec kitchen destroy
{'fraction_non_alphanumeric': 0.10720324653364897, 'fraction_numerical': 0.00608725059181603, 'mean_word_length': 1.6015831134564644, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4591992', 'n_tokens_mistral': 929, 'n_tokens_neox': 886, 'n_words': 193}